-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #116 from unitedoperations/dev
Dev to master
- Loading branch information
Showing
56 changed files
with
874 additions
and
510 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ Thumbs.db | |
*.log | ||
*.zip | ||
*.7z | ||
.vscode |
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,3 +1,4 @@ | ||
#include "CfgAttributes\EarSettingAttribute.hpp" | ||
#include "CfgAttributes\RadioSelectAttribute.hpp" | ||
#include "CfgAttributes\ChannelSelectAttribute.hpp" | ||
#include "CfgAttributes\AdditionalLanguageAttribute.hpp" |
30 changes: 30 additions & 0 deletions
30
uo_sys_framework/ACREModule/cfgAttributes/AdditionalLanguageAttribute.hpp
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,30 @@ | ||
class EGVAR(ACRE,AdditionalLanguageAttribute): Combo { | ||
//save the lbData from the selected entry upon exit | ||
attributeSave = "\ | ||
private _value = ((_this controlsGroupCtrl 100) lbData lbCurSel (_this controlsGroupCtrl 100));\ | ||
private _unit = ((get3denselected 'object') select 0);\ | ||
private _name = gettext (_config >> 'property');\ | ||
_unit setvariable [_name,_value];\ | ||
_value\ | ||
"; | ||
//_this - config, _value - saved value | ||
attributeLoad="\ | ||
private _control = (_this controlsGroupCtrl 100);\ | ||
private _name = gettext (_config >> 'property');\ | ||
private _unit = ((get3denselected 'object') select 0);\ | ||
private _nameArray = ['None','English','Russian','French','Arabic','Greek','BluforCustomLanguage1','BluforCustomLanguage2','OpforCustomLanguage1','OpforCustomLanguage2','IndforCustomLanguage1','IndforCustomLanguage2','CivCustomLanguage1','CivCustomLanguage2'];\ | ||
{\ | ||
private _index = _control lbadd _x;\ | ||
_control lbsetdata [_index,_x];\ | ||
_control lbsetValue [_index,_foreachIndex];\ | ||
if (_value isEqualto (_control lbData _index)) then {\ | ||
_control lbSetCurSel _index;\ | ||
_unit setvariable [_name,_value];\ | ||
};\ | ||
} foreach _nameArray;\ | ||
"; | ||
class Controls: Controls { | ||
class Title: Title {}; | ||
class Value: Value {}; | ||
}; | ||
}; |
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
Oops, something went wrong.