Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1265,15 +1265,6 @@ void populatePlayerInfo( Player *player, Int pos)
win->winSetEnabledTextColors(color, win->winGetEnabledTextBorderColor());
win->winHide(FALSE);

// set the total BuildingsDestroyed
winName.format("ScoreScreen.wnd:StaticTextBuildingsDestroyed%d", pos);
win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey( winName ) );
DEBUG_ASSERTCRASH(win,("Could not find window %s on the score screen", winName.str()));
winValue.format(L"%d", scoreKpr->getTotalBuildingsDestroyed());
GadgetStaticTextSetText(win, winValue);
win->winSetEnabledTextColors(color, win->winGetEnabledTextBorderColor());
win->winHide(FALSE);

// set the total Resources
winName.format("ScoreScreen.wnd:StaticTextResources%d", pos);
win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey( winName ) );
Expand Down Expand Up @@ -2035,12 +2026,6 @@ void hideWindows( Int pos )
DEBUG_ASSERTCRASH(win,("Could not find window %s on the score screen", winName.str()));
win->winHide(TRUE);

// set the total BuildingsDestroyed
winName.format("ScoreScreen.wnd:StaticTextBuildingsDestroyed%d", i);
win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey( winName ) );
DEBUG_ASSERTCRASH(win,("Could not find window %s on the score screen", winName.str()));
win->winHide(TRUE);

// set the total Resources
winName.format("ScoreScreen.wnd:StaticTextResources%d", i);
win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey( winName ) );
Expand Down Expand Up @@ -2133,12 +2118,6 @@ void setObserverWindows( Player *player, Int i )
DEBUG_ASSERTCRASH(win,("Could not find window %s on the score screen", winName.str()));
win->winHide(TRUE);

// set the total BuildingsDestroyed
winName.format("ScoreScreen.wnd:StaticTextBuildingsDestroyed%d", i);
win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey( winName ) );
DEBUG_ASSERTCRASH(win,("Could not find window %s on the score screen", winName.str()));
win->winHide(TRUE);

// set the total Resources
winName.format("ScoreScreen.wnd:StaticTextResources%d", i);
win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey( winName ) );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1499,15 +1499,6 @@ void populatePlayerInfo( Player *player, Int pos)
win->winSetEnabledTextColors(color, win->winGetEnabledTextBorderColor());
win->winHide(FALSE);

// set the total BuildingsDestroyed
winName.format("ScoreScreen.wnd:StaticTextBuildingsDestroyed%d", pos);
win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey( winName ) );
DEBUG_ASSERTCRASH(win,("Could not find window %s on the score screen", winName.str()));
winValue.format(L"%d", scoreKpr->getTotalBuildingsDestroyed());
GadgetStaticTextSetText(win, winValue);
win->winSetEnabledTextColors(color, win->winGetEnabledTextBorderColor());
win->winHide(FALSE);

// set the total Resources
winName.format("ScoreScreen.wnd:StaticTextResources%d", pos);
win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey( winName ) );
Expand Down Expand Up @@ -2303,12 +2294,6 @@ void hideWindows( Int pos )
DEBUG_ASSERTCRASH(win,("Could not find window %s on the score screen", winName.str()));
win->winHide(TRUE);

// set the total BuildingsDestroyed
winName.format("ScoreScreen.wnd:StaticTextBuildingsDestroyed%d", i);
win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey( winName ) );
DEBUG_ASSERTCRASH(win,("Could not find window %s on the score screen", winName.str()));
win->winHide(TRUE);

// set the total Resources
winName.format("ScoreScreen.wnd:StaticTextResources%d", i);
win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey( winName ) );
Expand Down Expand Up @@ -2401,12 +2386,6 @@ void setObserverWindows( Player *player, Int i )
DEBUG_ASSERTCRASH(win,("Could not find window %s on the score screen", winName.str()));
win->winHide(TRUE);

// set the total BuildingsDestroyed
winName.format("ScoreScreen.wnd:StaticTextBuildingsDestroyed%d", i);
win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey( winName ) );
DEBUG_ASSERTCRASH(win,("Could not find window %s on the score screen", winName.str()));
win->winHide(TRUE);

// set the total Resources
winName.format("ScoreScreen.wnd:StaticTextResources%d", i);
win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey( winName ) );
Expand Down
Loading