Skip to content

Commit

Permalink
fix minor ui issues with Contact DLC ui modifications (#1186)
Browse files Browse the repository at this point in the history
* fix minor ui issues with Contact DLC ui modifications

* fix another minor ui issue with Contact DLC ui modifications
  • Loading branch information
commy2 committed Jul 27, 2019
1 parent 3227dbb commit b6df6ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addons/settings/fnc_gui_sourceChanged.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ private _selectedAddon = uiNamespace getVariable QGVAR(addon);
// toggle source buttons
{
private _ctrlX = _display displayCtrl _x;
_ctrlX ctrlSetTextColor ([COLOR_BUTTON_ENABLED, COLOR_BUTTON_DISABLED] select (_control == _ctrlX));
_ctrlX ctrlSetTextColor ([COLOR_BUTTON_ENABLED, COLOR_BUTTON_DISABLED] select (_control == _ctrlX && {!isClass (configFile >> "CfgPatches" >> "A3_Data_F_Contact")}));
_ctrlX ctrlSetBackgroundColor ([COLOR_BUTTON_DISABLED, COLOR_BUTTON_ENABLED] select (_control == _ctrlX));
} forEach [IDC_BTN_SERVER, IDC_BTN_MISSION, IDC_BTN_CLIENT];

Expand Down
4 changes: 3 additions & 1 deletion addons/ui/fnc_initDisplayInterrupt.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,13 @@ if (!isMultiplayer && {getNumber (missionConfigFile >> "replaceAbortButton") > 0
];

// --- create custom buttons
private _buttonType = ["RscButtonMenu", "RscButtonMenuLeft"] select isClass (configFile >> "CfgPatches" >> "A3_Data_F_Contact");

{
_offset = _offset + 1.1;
_x params ["_displayName", "_tooltip", "_dialog"];

private _button = _display ctrlCreate ["RscButtonMenu", -1];
private _button = _display ctrlCreate [_buttonType, -1];

_button ctrlSetText toUpper _displayName;
_button ctrlSetTooltip _tooltip;
Expand Down

0 comments on commit b6df6ac

Please sign in to comment.