Changes from PhantorGort: Currently I am developing an OXP (Visas) that allows for complex criteria for the "Visa" equipment. I was intending to update the appropriate mission variables used by the equipment as the player enters the equipment screen. Example scenario: a visa has as one of it's requirements of the player having to have a minimum amount of credits in their account. If you buy or sell goods, etc, I need to update the mission variables. This idea could also apply to requirements based on contracts accepted or other equipment bought or ship bought, etc. As these things can change whilst the player is still in the station being able to update the mission variable before the equipment calculation is crucial.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3078 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
cmdrjames 2010-03-23 20:09:40 +00:00
parent 978adf3b55
commit 8ad9a4ad7b

View File

@ -2932,6 +2932,7 @@ static NSTimeInterval time_last_frame;
if ((gui_screen == GUI_SCREEN_EQUIP_SHIP)&&[dockedStation hasShipyard])
{
[gameView clearKeys];
[self noteGuiChangeFrom:oldScreen to:GUI_SCREEN_SHIPYARD]; //Changes by PhantorGorth 22-02-2010
[self setGuiToShipyardScreen:0];
[gui setSelectedRow:GUI_ROW_SHIPYARD_START];
[self showShipyardInfoForSelection];
@ -2939,11 +2940,12 @@ static NSTimeInterval time_last_frame;
else
{
[gameView clearKeys];
[self noteGuiChangeFrom:oldScreen to:GUI_SCREEN_EQUIP_SHIP]; //Changes by PhantorGorth 22-02-2010
[self setGuiToEquipShipScreen:0];
[gui setSelectedRow:GUI_ROW_EQUIPMENT_START];
}
[self noteGuiChangeFrom:oldScreen to:gui_screen];
//[self noteGuiChangeFrom:oldScreen to:gui_screen]; //Changes by PhantorGorth 22-02-2010
}
switching_equipship_screens = YES;
}