1
0
mirror of synced 2024-11-24 15:40:22 +01:00

Different color return boxes for onlinelounge song select menu and open encyclopedia submenus

This commit is contained in:
0aubsq 2022-06-27 23:35:36 +02:00
parent d23ad9003a
commit 567fbdec60
14 changed files with 39 additions and 7 deletions

View File

@ -1087,6 +1087,7 @@ namespace TJAPlayer3
OnlineLounge_Side_Menu = TxC(ONLINELOUNGE + @"Side_Menu.png");
OnlineLounge_Context = TxC(ONLINELOUNGE + @"Context.png");
OnlineLounge_Song_Box = TxC(ONLINELOUNGE + @"Song_Box.png");
OnlineLounge_Return_Box = TxC(ONLINELOUNGE + @"Return_Box.png");
#endregion
@ -1099,6 +1100,7 @@ namespace TJAPlayer3
OpenEncyclopedia_Background = TxC(OPENENCYCLOPEDIA + @"Background.png");
OpenEncyclopedia_Context = TxC(OPENENCYCLOPEDIA + @"Context.png");
OpenEncyclopedia_Side_Menu = TxC(OPENENCYCLOPEDIA + @"Side_Menu.png");
OpenEncyclopedia_Return_Box = TxC(OPENENCYCLOPEDIA + @"Return_Box.png");
#endregion
@ -2109,6 +2111,7 @@ namespace TJAPlayer3
OnlineLounge_Center_Menu_Box_Slot,
OnlineLounge_Side_Menu,
OnlineLounge_Context,
OnlineLounge_Return_Box,
OnlineLounge_Song_Box;
#endregion
@ -2121,6 +2124,7 @@ namespace TJAPlayer3
public CTexture OpenEncyclopedia_Background,
OpenEncyclopedia_Context,
OpenEncyclopedia_Return_Box,
OpenEncyclopedia_Side_Menu;
#endregion

View File

@ -219,9 +219,19 @@ namespace TJAPlayer3
tmpTex.color4 = _color;
tmpSubtitle.color4 = _color;
TJAPlayer3.Tx.OnlineLounge_Song_Box?.tUpdateColor4(_color);
if (pos == 0)
{
TJAPlayer3.Tx.OnlineLounge_Return_Box?.tUpdateColor4(_color);
TJAPlayer3.Tx.OnlineLounge_Return_Box?.t2D拡大率考慮上中央基準描画(TJAPlayer3.app.Device, 350, baseY + 100 * i);
}
else
{
TJAPlayer3.Tx.OnlineLounge_Song_Box?.tUpdateColor4(_color);
TJAPlayer3.Tx.OnlineLounge_Song_Box?.t2D拡大率考慮上中央基準描画(TJAPlayer3.app.Device, 350, baseY + 100 * i);
}
tmpTex.t2D拡大率考慮上中央基準描画(TJAPlayer3.app.Device, 350, baseY + 18 + 100 * i);
tmpSubtitle.t2D拡大率考慮上中央基準描画(TJAPlayer3.app.Device, 350, baseY + 46 + 100 * i);

View File

@ -65,7 +65,7 @@ namespace TJAPlayer3
}
catch
{
return "[File fetching failed]";
return "[File not found]";
}
}
@ -101,7 +101,7 @@ namespace TJAPlayer3
Submenus[0].Item1 = -1;
Submenus[0].Item2 = TJAPlayer3.stage選曲.act曲リスト.ResolveTitleTexture(
new TitleTextureKey(CLangManager.LangInstance.GetString(401), _pfEncyclopediaMenu, Color.White, Color.DarkOrange, 1000));
new TitleTextureKey(CLangManager.LangInstance.GetString(401), _pfEncyclopediaMenu, Color.White, Color.Brown, 1000));
for (int i = 1; i < _count; i++)
{
@ -109,7 +109,7 @@ namespace TJAPlayer3
var _menu = _current.Menus[_idx];
Submenus[i].Item1 = _menu.Key;
Submenus[i].Item2 = TJAPlayer3.stage選曲.act曲リスト.ResolveTitleTexture(
new TitleTextureKey(_GetSectionContents(_menu.Key, true), _pfEncyclopediaMenu, Color.White, Color.DarkOrange, 1000));
new TitleTextureKey(_GetSectionContents(_menu.Key, true), _pfEncyclopediaMenu, Color.White, Color.Brown, 1000));
}
}

View File

@ -95,15 +95,20 @@ namespace TJAPlayer3
if (i != 0)
{
TJAPlayer3.Tx.OpenEncyclopedia_Return_Box?.tUpdateColor4(C変換.ColorToColor4(Color.DarkGray));
TJAPlayer3.Tx.OpenEncyclopedia_Side_Menu?.tUpdateColor4(C変換.ColorToColor4(Color.DarkGray));
_menu.Item2?.tUpdateColor4(C変換.ColorToColor4(Color.DarkGray));
}
else
{
TJAPlayer3.Tx.OpenEncyclopedia_Return_Box?.tUpdateColor4(C変換.ColorToColor4(Color.White));
TJAPlayer3.Tx.OpenEncyclopedia_Side_Menu?.tUpdateColor4(C変換.ColorToColor4(Color.White));
_menu.Item2?.tUpdateColor4(C変換.ColorToColor4(Color.White));
}
if (_pos == 0)
TJAPlayer3.Tx.OpenEncyclopedia_Return_Box?.t2D中心基準描画(TJAPlayer3.app.Device, 320, 360 + i * 90);
else
TJAPlayer3.Tx.OpenEncyclopedia_Side_Menu?.t2D中心基準描画(TJAPlayer3.app.Device, 320, 360 + i * 90);
_menu.Item2?.t2D中心基準描画(TJAPlayer3.app.Device, 320, 360 + i * 90);
}
@ -140,7 +145,7 @@ namespace TJAPlayer3
_backToMain = _b2;
if (_b1)
TJAPlayer3.Skin.sound変更.t再生する();
TJAPlayer3.Skin.sound決定.t再生する();
else
TJAPlayer3.Skin.sound取消音.t再生する();
}

View File

@ -0,0 +1 @@
Test1

View File

@ -0,0 +1 @@
Test10

View File

@ -0,0 +1 @@
Test11

View File

@ -0,0 +1 @@
Test2

View File

@ -0,0 +1,3 @@
This is a test page
with the number
100

View File

@ -0,0 +1,3 @@
This is a test page
with the number
101

View File

@ -0,0 +1,3 @@
This is a test page
with the number
102

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 20 KiB