src/game/Editor/PopupMenu.cc
static const ST::string GetPopupMenuString(UINT8 ubIndex)
{
	switch( gPopup.ubPopupMenuID )
	{
		case CHANGETSET_POPUP: //tile sets
			return gTilesets[ ubIndex ].zName;
		case OWNERSHIPGROUP_POPUP: //civilian groups
		case CHANGECIVGROUP_POPUP: //civilian groups
			return gszCivGroupNames[ ubIndex ];
		case SCHEDULEACTION_POPUP: //setting scheduling actions
			return gszScheduleActions[ ubIndex ];
		case ACTIONITEM_POPUP:
			return gszActionItemDesc[ ubIndex ];
		default:
			return ST::null;
	}
}
//Finds the string for any popup menu in JA2 -- the strings are stored
//in different ways in each instance.
Finds the string for any popup menu in JA2 -- the strings are stored
in different ways in each instance.
Finds the string for any popup menu in JA2 -- the strings are stored in different ways in each instance .
static const ST::string GetPopupMenuString(UINT8 ubIndex)
{
	switch( gPopup.ubPopupMenuID )
	{
		case CHANGETSET_POPUP: 
			return gTilesets[ ubIndex ].zName;
		case OWNERSHIPGROUP_POPUP: 
		case CHANGECIVGROUP_POPUP: 
			return gszCivGroupNames[ ubIndex ];
		case SCHEDULEACTION_POPUP: 
			return gszScheduleActions[ ubIndex ];
		case ACTIONITEM_POPUP:
			return gszActionItemDesc[ ubIndex ];
		default:
			return ST::null;
	}
}
static const ST :: string GetPopupMenuString ( UINT8 ubIndex ) { switch ( gPopup . ubPopupMenuID ) { case CHANGETSET_POPUP : return gTilesets [ ubIndex ] . zName ; case OWNERSHIPGROUP_POPUP : case CHANGECIVGROUP_POPUP : return gszCivGroupNames [ ubIndex ] ; case SCHEDULEACTION_POPUP : return gszScheduleActions [ ubIndex ] ; case ACTIONITEM_POPUP : return gszActionItemDesc [ ubIndex ] ; default : return ST :: null ; } }
Finds the string for any popup menu in JA2 -- the strings are stored
in different ways in each instance.
Finds the string for any popup menu in JA2 -- the strings are stored in different ways in each instance .
//tile sets //civilian groups //civilian groups //setting scheduling actions