Fix plot management buttons color and text alignment

Fixes unintended black on black buttons and left aligned button text.

Plot management uses Zupa's older defines. The only changes for this
button type are the background color and text alignment.

https://github.com/DevZupa/PlotManagement/blob/master/MaintainVersion/plotManagement/defines.hpp#L568

https://github.com/DevZupa/PlotManagement/blob/master/MaintainVersion/plotManagement/defines.hpp#L588
This commit is contained in:
ebaydayz
2016-05-17 22:02:21 -04:00
parent 113dd0618a
commit 9d51fb2736
4 changed files with 21 additions and 10 deletions

View File

@@ -643,7 +643,7 @@ class ZSC_RscToolbox {
sizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 0.8)"; sizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 0.8)";
}; };
class ZSC_RscTextT class ZSC_RscTextT // Used in plot management
{ {
access = 0; access = 0;
type = 0; type = 0;
@@ -660,4 +660,16 @@ class ZSC_RscTextT
shadow = 2; shadow = 2;
font = "Zeppelin32"; font = "Zeppelin32";
SizeEx = 0.03921; SizeEx = 0.03921;
};
class ZSC_RscButtonMenuBlue : ZSC_RscButtonMenu // Used in plot management
{
colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5};
class Attributes
{
font = "Zeppelin32";
color = "#E5E5E5";
align = "center";
shadow = "false";
};
}; };

View File

@@ -25,7 +25,7 @@ class PlotManagement
colorText[] = {1,1,1,1}; colorText[] = {1,1,1,1};
}; };
class RscShortcutButton_7009: ZSC_RscButtonMenu class RscShortcutButton_7009: ZSC_RscButtonMenuBlue
{ {
idc = -1; idc = -1;
text = $STR_EPOCH_DOME; text = $STR_EPOCH_DOME;
@@ -35,7 +35,7 @@ class PlotManagement
onButtonClick = "call PlotPreview;"; onButtonClick = "call PlotPreview;";
}; };
class RscShortcutButton_7010: ZSC_RscButtonMenu class RscShortcutButton_7010: ZSC_RscButtonMenuBlue
{ {
idc = -1; idc = -1;
text = $STR_EPOCH_REFRESH; text = $STR_EPOCH_REFRESH;
@@ -45,7 +45,7 @@ class PlotManagement
onButtonClick = "[""preview""] call MaintainPlot;"; onButtonClick = "[""preview""] call MaintainPlot;";
}; };
class RscShortcutButton_7011: ZSC_RscButtonMenu class RscShortcutButton_7011: ZSC_RscButtonMenuBlue
{ {
idc = -1; idc = -1;
text = $STR_EPOCH_ACTIONS_MAINTAIN; text = $STR_EPOCH_ACTIONS_MAINTAIN;
@@ -133,7 +133,7 @@ class PlotManagement
soundSelect[] = {"",0.1,1}; soundSelect[] = {"",0.1,1};
colorBackground[] = {0.1,0.1,0.1,0.8}; colorBackground[] = {0.1,0.1,0.1,0.8};
}; };
class RscShortcutButton_7004: ZSC_RscButtonMenu class RscShortcutButton_7004: ZSC_RscButtonMenuBlue
{ {
idc = -1; idc = -1;
text = $STR_EPOCH_ADD; text = $STR_EPOCH_ADD;
@@ -142,7 +142,7 @@ class PlotManagement
w = 0.08 * safezoneW; w = 0.08 * safezoneW;
onButtonClick = "[(lbCurSel 7001)] call PlotAddFriend;"; onButtonClick = "[(lbCurSel 7001)] call PlotAddFriend;";
}; };
class RscShortcutButton_7005: ZSC_RscButtonMenu class RscShortcutButton_7005: ZSC_RscButtonMenuBlue
{ {
idc = -1; idc = -1;
text = $STR_EPOCH_DELETE; text = $STR_EPOCH_DELETE;
@@ -151,7 +151,7 @@ class PlotManagement
w = 0.08 * safezoneW; w = 0.08 * safezoneW;
onButtonClick = "[(lbCurSel 7002)] call PlotRemoveFriend;"; onButtonClick = "[(lbCurSel 7002)] call PlotRemoveFriend;";
}; };
class RscShortcutButton_7006: ZSC_RscButtonMenu class RscShortcutButton_7006: ZSC_RscButtonMenuBlue
{ {
idc = -1; idc = -1;
text = $STR_UI_CLOSE; text = $STR_UI_CLOSE;

View File

@@ -5,7 +5,7 @@ _thePlot = _plots select 0;
_friendlies = _thePlot getVariable ["plotfriends", []]; _friendlies = _thePlot getVariable ["plotfriends", []];
{ {
lbAdd [7002, (_x select 1)]; lbAdd [7002, (_x select 1)];
} count _friendlies; } forEach _friendlies; // count causes Error Type Number, expected Bool here

View File

@@ -10,5 +10,4 @@ Humans = [];
Humans = Humans + [[_friendUID,_friendName]] ; Humans = Humans + [[_friendUID,_friendName]] ;
lbAdd [7001, _friendName]; lbAdd [7001, _friendName];
}; };
} count _closePeople; } forEach _closePeople; // count causes Error Type Number, expected Bool here