Skip to content

Commit

Permalink
Properly handle colors without alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
veteran29 committed Jan 11, 2020
1 parent 6c84b7e commit 2be1500
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/settings/gui_createCategory.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ private _lastSubCategory = "$START";
(_settingData param [1, []]) param [_defaultValue, ""]
};
case "COLOR": {
private _template = (["R: %1","%G: %2", "B: %3", "A: %4"] select [0, 4]) joinString "\n";
private _template = (["R: %1","%G: %2", "B: %3", "A: %4"] select [0, count _defaultValue]) joinString "\n";
format ([_template] + _defaultValue)
};
case "TIME": {
Expand Down

0 comments on commit 2be1500

Please sign in to comment.