-
Notifications
You must be signed in to change notification settings - Fork 16
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 #66 from jetelain/category-text
Restore model name on the right
- Loading branch information
Showing
4 changed files
with
37 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#include "script_component.hpp" | ||
#include "..\defines.hpp" | ||
|
||
params ["_control"]; | ||
|
||
[_control] call ace_arsenal_fnc_sortPanel; // will erase lbSetTextRight of items (will left them to "") | ||
|
||
if ((ctrlIDC _control) in [IDC_sortRightTab, IDC_sortRightTabDirection]) exitWith {}; | ||
|
||
(call FUNC(leftPanelConfig)) params ["", "", "", "_index", "_classRoot"]; | ||
|
||
if ( _index == -1 ) exitWith {}; | ||
|
||
private _display = ctrlParent _control; | ||
private _ctrlPanel = _display displayCtrl IDC_leftTabContent; | ||
private _size = lbSize _ctrlPanel; | ||
|
||
for "_i" from 0 to (_size -1) do { | ||
private _config = _ctrlPanel lbData _i; | ||
private _model = [_classRoot, _config] call EFUNC(gearinfo,getConfigModel); | ||
if ( _model != "" ) then { | ||
// Set our own lbSetTextRight | ||
_ctrlPanel lbSetTextRight [_i, getText(configFile >> "XtdGearModels" >> _classRoot >> _model >> "label")]; | ||
}; | ||
}; |