Obscure achievement descriptions until completed.
This commit is contained in:
parent
2a439cd657
commit
ada2e2fbbe
3 changed files with 4 additions and 4 deletions
|
|
@ -1,3 +1,3 @@
|
|||
[default]
|
||||
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r539 \cu(Mon 3 Oct 20:42:59 CEST 2022)\c-";
|
||||
SWWM_SHORTVER="\cw1.3pre r539 \cu(2022-10-03 20:42:59)\c-";
|
||||
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r540 \cu(Mon 3 Oct 20:49:19 CEST 2022)\c-";
|
||||
SWWM_SHORTVER="\cw1.3pre r540 \cu(2022-10-03 20:49:19)\c-";
|
||||
|
|
|
|||
|
|
@ -746,7 +746,7 @@ Class DemolitionistMenuAchievementItem : DemolitionistMenuListItem
|
|||
for ( int i=0; i<l.Count(); i++ )
|
||||
{
|
||||
str = l.StringAt(i);
|
||||
if ( !completed && !hasprogress && ShouldObscure ) SWWMUtility.ObscureText(str,(Menu.MenuTime()/3)+ypos*2+2+i);
|
||||
if ( !completed && ShouldObscure ) SWWMUtility.ObscureText(str,(Menu.MenuTime()/3)+ypos*2+2+i);
|
||||
Screen.DrawText(master.mTinyFont,completed?Font.CR_WHITE:Font.CR_BLACK,xx+40,yy+oy+14+i*9,str,DTA_VirtualWidthF,master.ss.x,DTA_VirtualHeightF,master.ss.y,DTA_KeepRatio,true);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ Class SWWMAchievementMenu : GenericMenu
|
|||
Screen.DrawText(mSmallFont,completed?Font.CR_GREEN:Font.CR_DARKGRAY,xx,yy,str,DTA_CleanNoMove_1,true);
|
||||
yy += (mSmallFont.GetHeight()+2)*CleanYFac_1;
|
||||
str = a.hasformat?String.Format(StringTable.Localize("$SWWM_ACHIEVEMENT_"..a.basename.."_TXT"),SWWMUtility.ThousandsNum(a.maxval)):StringTable.Localize("$SWWM_ACHIEVEMENT_"..a.basename.."_TXT");
|
||||
if ( !completed && !hasprogress && ShouldObscure ) SWWMUtility.ObscureText(str,(MenuTime()/3)+1);
|
||||
if ( !completed && ShouldObscure ) SWWMUtility.ObscureText(str,(MenuTime()/3)+1);
|
||||
xx = (Screen.GetWidth()-mTinyFont.StringWidth(str)*CleanXFac_1)/2;
|
||||
Screen.DrawText(mTinyFont,completed?Font.CR_WHITE:Font.CR_BLACK,xx,yy,str,DTA_CleanNoMove_1,true);
|
||||
if ( a.maxval && (!ShouldObscure || hasprogress) )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue