-
Notifications
You must be signed in to change notification settings - Fork 11
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
James Kingsley
committed
Mar 15, 2016
1 parent
daf22ea
commit 7e55f91
Showing
6 changed files
with
113 additions
and
100 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,45 @@ | ||
disableSerialization; | ||
sleep 1; | ||
if (f_cam_forcedExit) ExitWith {}; | ||
if (f_cam_forcedExit) exitWith {}; | ||
createDialog "f_spec_dialog"; | ||
|
||
_displayDialog = (findDisplay 9228); | ||
ctrlSetText [2112,(f_cam_sideNames select f_cam_sideButton)]; | ||
if(f_cam_playersOnly) then { ctrlSetText [2111,"Players only"];} | ||
else { ctrlSetText [2111,"All units"];}; | ||
|
||
ctrlSetText [2112, (f_cam_sideNames select f_cam_sideButton)]; | ||
|
||
ctrlSetText [2113, (f_cam_tagsNames select f_cam_tagsButton)]; | ||
|
||
ctrlSetText [2236, (f_cam_tracersNames select f_cam_tracersButton)]; | ||
|
||
if (f_cam_playersOnly) then { | ||
ctrlSetText [2111, "SHOW AI (NO)"]; | ||
} else { | ||
ctrlSetText [2111, "SHOW AI (YES)"]; | ||
}; | ||
|
||
_mapWindow = _displayDialog displayCtrl 1350; | ||
_fullmapWindow = _displayDialog displayCtrl 1360; | ||
_mapWindow ctrlShow false; | ||
_fullmapWindow ctrlShow false; | ||
_fullmapWindow mapCenterOnCamera false; | ||
_mapWindow mapCenterOnCamera false; | ||
_helpWindow ctrlSetStructuredText parseText (f_cam_helptext); | ||
// hide it to stop from being spammed open. | ||
|
||
ctrlShow [1315, !ctrlVisible 1315]; | ||
ctrlShow [1300, !ctrlVisible 1300]; | ||
ctrlShow [1305, !ctrlVisible 1305]; | ||
ctrlShow [1305, !ctrlVisible 1305]; | ||
|
||
// Auto-size controls | ||
_btnWidth = safeZoneW / (count f_cam_menuControls); | ||
_w = 0 * safeZoneW + safeZoneX; | ||
|
||
{ | ||
((findDisplay 9228) displayCtrl _x) ctrlSetPosition [_w, (0 * safeZoneH + safeZoneY), _btnWidth, (0.03 * safeZoneH)]; | ||
((findDisplay 9228) displayCtrl _x) ctrlCommit 0; | ||
_w = _w + _btnWidth; | ||
} forEach f_cam_menuControls; | ||
|
||
if (!(call ARC_fnc_isRespawnEnabled)) then { | ||
((findDisplay 9228) displayCtrl 5532) ctrlSetTooltip "Disabled"; | ||
} else { | ||
((findDisplay 9228) displayCtrl 5532) ctrlSetTooltip "Respawn back into the game"; | ||
}; |