Skill Menu target marker did not refresh correctly

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6559 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2013-11-05 18:18:36 +00:00
parent ee44781fbe
commit 26dfbe9b55
+11 -4
View File
@@ -217,10 +217,7 @@ SkillSelection::Setup( UINT32 aVal )
default:
break;
}
// certain traits have skills whose effects depend on wether eomeone is near to us (squadleader, commissar). We therefore display our radius of effect while this display is open
ToggleTraitRangeView(TRUE);
// cancel option
swprintf( pStr, L"Cancel" );
pOption = new POPUP_OPTION(&std::wstring( pStr ), new popupCallbackFunction<void,UINT32>( &Wrapper_Cancel_SkillSelection, 0 ) );
@@ -322,6 +319,11 @@ ArtillerySector::Setup( UINT32 aVal )
swprintf( pStr, L"Cancel" );
pOption = new POPUP_OPTION(&std::wstring( pStr ), new popupCallbackFunction<void,UINT32>( &Wrapper_Cancel_ArtillerySector, 0 ) );
GetPopup()->addOption( *pOption );
// certain traits have skills whose effects depend on wether someone is near to us (squadleader, commissar). We therefore display our radius of effect while this display is open
SetTraitToDisplay(RADIO_OPERATOR_NT);
SetGridNoForTraitDisplay(sTraitsMenuTargetGridNo);
ToggleTraitRangeView(TRUE);
}
// same y, different x
@@ -386,6 +388,11 @@ ArtilleryTeam::Setup( UINT32 aVal )
swprintf( pStr, L"Cancel" );
pOption = new POPUP_OPTION(&std::wstring( pStr ), new popupCallbackFunction<void,UINT32>( &Wrapper_Cancel_ArtilleryTeam, 0 ) );
GetPopup()->addOption( *pOption );
// certain traits have skills whose effects depend on wether someone is near to us (squadleader, commissar). We therefore display our radius of effect while this display is open
SetTraitToDisplay(RADIO_OPERATOR_NT);
SetGridNoForTraitDisplay(sTraitsMenuTargetGridNo);
ToggleTraitRangeView(TRUE);
}
// same y, different x