use HasClass instead of ControlClasses array
This commit is contained in:
parent
f75a21ca45
commit
669f85345a
@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
#Include "TimeLib" as TiL
|
#Include "TimeLib" as TiL
|
||||||
#Include "MathLib" as ML
|
#Include "MathLib" as ML
|
||||||
|
#Include "TextLib" as TL
|
||||||
|
|
||||||
#Include "Libs/Nadeo/ModeLibs/Common/Utils.Script.txt" as ModeUtils
|
#Include "Libs/Nadeo/ModeLibs/Common/Utils.Script.txt" as ModeUtils
|
||||||
|
|
||||||
@ -729,7 +730,7 @@ Text GetManialink() {
|
|||||||
Last_TabSelected = "quad-leftpanel-logs";
|
Last_TabSelected = "quad-leftpanel-logs";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Event.Control.ControlClasses.exists("leftpanel-button")) {
|
if (Event.Control.HasClass("leftpanel-button")) {
|
||||||
SwitchToTab(Last_TabSelected, Event.Control.ControlId);
|
SwitchToTab(Last_TabSelected, Event.Control.ControlId);
|
||||||
Last_TabSelected = Event.Control.ControlId;
|
Last_TabSelected = Event.Control.ControlId;
|
||||||
}
|
}
|
||||||
@ -770,13 +771,13 @@ Text GetManialink() {
|
|||||||
Quad_Tooltip.Size.X = ComputeBackgroundSize(Label_Tooltip, Event.Control.Parent.ToolTip, 30.) + .5;
|
Quad_Tooltip.Size.X = ComputeBackgroundSize(Label_Tooltip, Event.Control.Parent.ToolTip, 30.) + .5;
|
||||||
Quad_Tooltip.Size.Y = Label_Tooltip.Size.Y + 1.5;
|
Quad_Tooltip.Size.Y = Label_Tooltip.Size.Y + 1.5;
|
||||||
}
|
}
|
||||||
if (Event.Control.ControlClasses.exists("button")) {
|
if (Event.Control.HasClass("button")) {
|
||||||
declare CMlQuad Quad = (Event.Control as CMlQuad);
|
declare CMlQuad Quad = (Event.Control as CMlQuad);
|
||||||
Quad.Opacity = .9;
|
Quad.Opacity = .9;
|
||||||
} else if (Event.Control.ControlClasses.exists("border")) {
|
} else if (Event.Control.HasClass("border")) {
|
||||||
declare CMlQuad Quad = (Event.Control as CMlQuad);
|
declare CMlQuad Quad = (Event.Control as CMlQuad);
|
||||||
Quad.Opacity = 1.;
|
Quad.Opacity = 1.;
|
||||||
} else if (Event.Control.ControlClasses.exists("leftpanel-button")) {
|
} else if (Event.Control.HasClass("leftpanel-button")) {
|
||||||
declare CMlQuad Quad = (Event.Control as CMlQuad);
|
declare CMlQuad Quad = (Event.Control as CMlQuad);
|
||||||
Quad.Opacity = .2;
|
Quad.Opacity = .2;
|
||||||
}
|
}
|
||||||
@ -785,13 +786,13 @@ Text GetManialink() {
|
|||||||
if (Event.Control.Parent.ToolTip != "") {
|
if (Event.Control.Parent.ToolTip != "") {
|
||||||
Frame_Tooltip.Visible = False;
|
Frame_Tooltip.Visible = False;
|
||||||
}
|
}
|
||||||
if (Event.Control.ControlClasses.exists("button")) {
|
if (Event.Control.HasClass("button")) {
|
||||||
declare CMlQuad Quad = (Event.Control as CMlQuad);
|
declare CMlQuad Quad = (Event.Control as CMlQuad);
|
||||||
Quad.Opacity = .7;
|
Quad.Opacity = .7;
|
||||||
} else if (Event.Control.ControlClasses.exists("border")) {
|
} else if (Event.Control.HasClass("border")) {
|
||||||
declare CMlQuad Quad = (Event.Control as CMlQuad);
|
declare CMlQuad Quad = (Event.Control as CMlQuad);
|
||||||
Quad.Opacity = .0;
|
Quad.Opacity = .0;
|
||||||
} else if (Event.Control.ControlClasses.exists("leftpanel-button")) {
|
} else if (Event.Control.HasClass("leftpanel-button")) {
|
||||||
if (Last_TabSelected != Event.Control.ControlId) {
|
if (Last_TabSelected != Event.Control.ControlId) {
|
||||||
declare CMlQuad Quad = (Event.Control as CMlQuad);
|
declare CMlQuad Quad = (Event.Control as CMlQuad);
|
||||||
Quad.Opacity = .0;
|
Quad.Opacity = .0;
|
||||||
|
Loading…
Reference in New Issue
Block a user