-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
General - Fix stability issues and add new functionality (#71)
* Various changes. See changelog.md * Add missing changelog entry * Added another missing changelog entry * Fixed syntax errors
- Loading branch information
Showing
73 changed files
with
1,172 additions
and
633 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
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
45 changes: 45 additions & 0 deletions
45
framework/components/common/functions/fn_displayAddInitEvent.sqf
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,45 @@ | ||
#include "script_component.hpp" | ||
/* | ||
* Author: Eric | ||
* Attaches a display / dialog init event | ||
* | ||
* Arguments: | ||
* 0: IDD <NUMBER> | ||
* 1: Callback <CODE> | ||
* 2: Arguments <ANY> | ||
* | ||
* Return Value: | ||
* CBA PerFramehandler Handle <NUMBER> | ||
* | ||
* Example: | ||
* [313, { hint str _this }, ["foo", "bar"]] call cmf_common_fnc_displayAddInitEvent | ||
* | ||
* Public: Yes | ||
*/ | ||
params ["_idd", "_callback", ["_args", []]]; | ||
|
||
private _displayInitEvent = { | ||
params ["_self", "_idd", "_callback", "_args"]; | ||
|
||
[findDisplay _idd, _args] call _callback; | ||
|
||
[ | ||
{ isNull findDisplay (_this select 1) }, | ||
{ | ||
params ["_self"]; | ||
|
||
[ | ||
{ !isNull findDisplay (_this select 1) }, | ||
_self, | ||
_this | ||
] call CBA_fnc_waitUntilAndExecute; | ||
}, | ||
_this | ||
] call CBA_fnc_waitUntilAndExecute; | ||
}; | ||
|
||
[ | ||
{ !isNull findDisplay (_this select 1) }, | ||
_displayInitEvent, | ||
[_displayInitEvent, _idd, _callback, _args] | ||
] 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
#include "script_component.hpp" | ||
|
||
PREP(setLivesModule); | ||
PREP(forceArsenalModule); | ||
PREP(ammoboxModule); | ||
PREP(resetKosherRoleModule); | ||
PREP(kosherForceCloseModule); | ||
PREP(disableFreezeTime); | ||
PREP(toggleSpectatorModule); | ||
PREP(addRallypointModule); | ||
PREP(removeRallypointModule); | ||
PREP(setLives); | ||
PREP(forceArsenal); | ||
PREP(setAmmobox); | ||
PREP(setUnitParameters); | ||
PREP(forceCloseArsenal); | ||
PREP(toggleFreezeTime); | ||
PREP(toggleSpectator); | ||
PREP(enableRallypoints); | ||
PREP(disableRallypoints); | ||
PREP(setPhase); | ||
PREP(addCutoffPhase); | ||
PREP(removeCutoffPhase); | ||
PREP(randomLoadout); | ||
PREP(setCrateLoadout); | ||
PREP(playerInfo); | ||
PREP(safestartPhases); | ||
PREP(safestartCutoffPhases); | ||
PREP(initDisplayCurator); |
Oops, something went wrong.