-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
69 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,5 +13,6 @@ class wita_setup { | |
class setMoney {}; | ||
class startGame {}; | ||
class teleportSide {}; | ||
class waitScreen {}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#include "component.hpp" | ||
|
||
|
||
|
||
if (missionNamespace getVariable ["WITA_GAMESTARTED",false]) exitWith {}; | ||
player enableSimulationGlobal false; | ||
|
||
"wita_waitScreen" cutRsc ["RscTitleDisplayEmpty","PLAIN",0,false]; | ||
[{!isNull (uiNamespace getVariable ["RscTitleDisplayEmpty",displayNull])}, { | ||
|
||
_display = uiNamespace getVariable ["RscTitleDisplayEmpty",displayNull]; | ||
|
||
_ctrlText = _display ctrlCreate ["RscStructuredText",-1]; | ||
_ctrlText ctrlSetBackgroundColor [0,0,0,1]; | ||
_ctrlText ctrlSetFontHeight 0.05; | ||
_ctrlText ctrlSetPosition [safeZoneX, safeZoneY, safeZoneW, safeZoneH]; | ||
_ctrlText ctrlCommit 0; | ||
|
||
[{ | ||
params ["_ctrlText","_handle"]; | ||
if (missionNamespace getVariable ["WITA_GAMESTARTED",false]) exitWith { | ||
"wita_waitScreen" cutRsc ["RscTitleDisplayEmpty","PLAIN",0,false]; | ||
player enableSimulationGlobal true; | ||
[_handle] call CBA_fnc_removePerFrameHandler; | ||
}; | ||
|
||
private _checkVar = { | ||
params ["_varname"]; | ||
|
||
if (missionNamespace getVariable [_varName,false]) then { | ||
"<t color='#00ff00'>complete!</t>" | ||
} else { | ||
"<t color='#ff0000'>in progress...</t>" | ||
} | ||
}; | ||
|
||
_text = composeText [ | ||
parseText format ["Independent start position: %1",["WITA_SETUP_INDEPENDENTDONE"] call _checkVar], lineBreak, | ||
parseText format ["Blufor start position: %1",["WITA_SETUP_BLUFORDONE"] call _checkVar], lineBreak, | ||
parseText format ["Random cars: %1",["WITA_SETUP_CARSDONE"] call _checkVar], lineBreak, | ||
parseText format ["Random helicopters: %1",["WITA_SETUP_HELISDONE"] call _checkVar], lineBreak, | ||
parseText format ["Random boats: %1",["WITA_SETUP_BOATSDONE"] call _checkVar], lineBreak, | ||
parseText format ["Random caches: %1",["WITA_SETUP_CACHESDONE"] call _checkVar] | ||
]; | ||
_ctrlText ctrlSetStructuredText _text; | ||
} , 0.2, _ctrlText] call CBA_fnc_addPerFrameHandler; | ||
}, []] call CBA_fnc_waitUntilAndExecute; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters