-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into release-candidate-3-10
- Loading branch information
Showing
30 changed files
with
351 additions
and
559 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 was deleted.
Oops, something went wrong.
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,43 @@ | ||
//#define DEBUG_MODE_FULL | ||
#include "script_component.hpp" | ||
|
||
if (!hasInterface) exitWith {}; | ||
|
||
{ | ||
// create diary, entries added in reverse order | ||
private _unit = player; | ||
_unit createDiarySubject [QGVAR(docs), "CBA"]; | ||
|
||
// add diary for scripted keybinds | ||
private _keys = GVAR(keys); | ||
|
||
private _addons = allVariables EGVAR(keybinding,addons); | ||
_addons sort true; | ||
|
||
{ | ||
(EGVAR(keybinding,addons) getVariable _x) params ["_addon", "_addonActions"]; | ||
|
||
_keys = _keys + format ["%1:<br/>", _addon]; | ||
|
||
{ | ||
(EGVAR(keybinding,actions) getVariable (_addon + "$" + _x)) params ["_displayName", "", "_keybinds"]; | ||
|
||
if (isLocalized _displayName) then { | ||
_displayName = localize _displayName; | ||
}; | ||
|
||
private _keyName = (_keybinds select {_x select 0 > DIK_ESCAPE} apply {_x call CBA_fnc_localizeKey}) joinString " "; | ||
|
||
_keys = _keys + format [" %1: <font color='#c48214'>%2</font><br/>", _displayName, _keyName]; | ||
} forEach _addonActions; | ||
|
||
_keys = _keys + "<br/>"; | ||
} forEach _addons; | ||
|
||
// delete last line breaks | ||
_keys = _keys select [0, count _keys - 10]; | ||
|
||
_unit createDiaryRecord [QGVAR(docs), [localize "STR_CBA_Help_Keys", _keys]]; | ||
_unit createDiaryRecord [QGVAR(docs), [localize "STR_CBA_Credits", call (uiNamespace getVariable QGVAR(credits))]]; | ||
_unit createDiaryRecord [QGVAR(docs), [localize "STR_CBA_Addons", call (uiNamespace getVariable QGVAR(mods))]]; | ||
} call CBA_fnc_execNextFrame; |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
//#define DEBUG_MODE_FULL | ||
#include "script_component.hpp" | ||
|
||
if (!hasInterface) exitWith {}; | ||
|
||
ADDON = false; | ||
|
||
// bwc | ||
FUNC(help) = BIS_fnc_help; | ||
|
||
// keys | ||
private _keys = ""; | ||
|
||
private _config = configFile >> "CfgSettings" >> "CBA" >> "events"; | ||
|
||
{ | ||
private _addon = configName _x; | ||
|
||
_keys = _keys + format ["%1:<br/>", _addon]; | ||
|
||
{ | ||
private _action = configName _x; | ||
|
||
private _keybind = if (isNumber _x) then { | ||
[getNumber _x, false, false, false] | ||
} else { | ||
[ | ||
getNumber (_x >> "key"), | ||
getNumber (_x >> "shift") > 0, | ||
getNumber (_x >> "ctrl") > 0, | ||
getNumber (_x >> "alt") > 0 | ||
] | ||
}; | ||
|
||
private _keyName = _keybind call CBA_fnc_localizeKey; | ||
|
||
_keys = _keys + format [" %1: <font color='#c48214'>%2</font><br/>", _action, _keyName]; | ||
} forEach configProperties [_x, "isNumber _x || isClass _x"]; | ||
|
||
_keys = _keys + "<br/>"; | ||
} forEach ("true" configClasses _config); | ||
|
||
GVAR(keys) = _keys; | ||
|
||
ADDON = true; |
Oops, something went wrong.