Tweak text glow of achievement menu.
This commit is contained in:
parent
d78c941e77
commit
00ff1706db
2 changed files with 8 additions and 4 deletions
|
|
@ -1,3 +1,3 @@
|
|||
[default]
|
||||
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r1081 \cu(Thu 4 Jan 20:14:18 CET 2024)\c-";
|
||||
SWWM_SHORTVER="\cw1.3pre r1081 \cu(2024-01-04 20:14:18)\c-";
|
||||
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r1082 \cu(Thu 4 Jan 22:49:10 CET 2024)\c-";
|
||||
SWWM_SHORTVER="\cw1.3pre r1082 \cu(2024-01-04 22:49:10)\c-";
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ Class SWWMAchievementMenu : GenericMenu
|
|||
int ofs, maxofs; // physical scroll offset, and offset limit
|
||||
int completed, incomplete, total;
|
||||
Font mSmallFont, mTinyFont;
|
||||
int glowcol;
|
||||
|
||||
override void Init( Menu parent )
|
||||
{
|
||||
|
|
@ -48,6 +49,7 @@ Class SWWMAchievementMenu : GenericMenu
|
|||
BaseBox = TexMan.CheckForTexture("graphics/Achievements/NoAchievement.png");
|
||||
mSmallFont = Font.GetFont('TewiFontOutline');
|
||||
mTinyFont = Font.GetFont('MiniwiFontOutline');
|
||||
glowcol = Font.FindFontColor('MiniWhiteFlash');
|
||||
}
|
||||
|
||||
override void Ticker()
|
||||
|
|
@ -119,13 +121,15 @@ Class SWWMAchievementMenu : GenericMenu
|
|||
{
|
||||
str = StringTable.Localize("$SWWM_AC_COMPLETE1");
|
||||
xx = (Screen.GetWidth()-mSmallFont.StringWidth(str)*CleanXFac_1)/2;
|
||||
Screen.DrawText(mSmallFont,Font.CR_FIRE,xx,yy,str,DTA_CleanNoMove_1,true,DTA_ColorOverlay,Color(int(64+64*sin(MSTimeF()/3.6)),255,255,255));
|
||||
Screen.DrawText(mSmallFont,Font.CR_FIRE,xx,yy,str,DTA_CleanNoMove_1,true);
|
||||
Screen.DrawText(mSmallFont,glowcol,xx,yy,str,DTA_CleanNoMove_1,true,DTA_LegacyRenderStyle,STYLE_Add,DTA_Alpha,max(0.,.1+.2*sin(MSTimeF()/3.6)));
|
||||
yy += mSmallFont.GetHeight()*CleanYFac_1;
|
||||
// spanish hotfix needed
|
||||
int gnd = players[consoleplayer].GetGender();
|
||||
str = String.Format(StringTable.Localize("$SWWM_AC_COMPLETE2"),(gnd==1)?"a":"");
|
||||
xx = (Screen.GetWidth()-mSmallFont.StringWidth(str)*CleanXFac_1)/2;
|
||||
Screen.DrawText(mSmallFont,Font.CR_FIRE,xx,yy,str,DTA_CleanNoMove_1,true,DTA_ColorOverlay,Color(int(64+64*sin(MSTimeF()/3.6)),255,255,255));
|
||||
Screen.DrawText(mSmallFont,Font.CR_FIRE,xx,yy,str,DTA_CleanNoMove_1,true);
|
||||
Screen.DrawText(mSmallFont,glowcol,xx,yy,str,DTA_CleanNoMove_1,true,DTA_LegacyRenderStyle,STYLE_Add,DTA_Alpha,max(0.,.1+.2*sin(MSTimeF()/3.6)));
|
||||
return;
|
||||
}
|
||||
String str1 = StringTable.Localize("$SWWM_AC_UNLOCKED");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue