diff --git a/TM_DebugMode.Script.txt b/TM_DebugMode.Script.txt index cf5721a..7f0c652 100644 --- a/TM_DebugMode.Script.txt +++ b/TM_DebugMode.Script.txt @@ -13,6 +13,7 @@ #Include "TimeLib" as TiL #Include "MathLib" as ML +#Include "TextLib" as TL #Include "Libs/Nadeo/ModeLibs/Common/Utils.Script.txt" as ModeUtils @@ -729,7 +730,7 @@ Text GetManialink() { Last_TabSelected = "quad-leftpanel-logs"; } } - if (Event.Control.ControlClasses.exists("leftpanel-button")) { + if (Event.Control.HasClass("leftpanel-button")) { SwitchToTab(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.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); Quad.Opacity = .9; - } else if (Event.Control.ControlClasses.exists("border")) { + } else if (Event.Control.HasClass("border")) { declare CMlQuad Quad = (Event.Control as CMlQuad); 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); Quad.Opacity = .2; } @@ -785,13 +786,13 @@ Text GetManialink() { if (Event.Control.Parent.ToolTip != "") { Frame_Tooltip.Visible = False; } - if (Event.Control.ControlClasses.exists("button")) { + if (Event.Control.HasClass("button")) { declare CMlQuad Quad = (Event.Control as CMlQuad); Quad.Opacity = .7; - } else if (Event.Control.ControlClasses.exists("border")) { + } else if (Event.Control.HasClass("border")) { declare CMlQuad Quad = (Event.Control as CMlQuad); Quad.Opacity = .0; - } else if (Event.Control.ControlClasses.exists("leftpanel-button")) { + } else if (Event.Control.HasClass("leftpanel-button")) { if (Last_TabSelected != Event.Control.ControlId) { declare CMlQuad Quad = (Event.Control as CMlQuad); Quad.Opacity = .0;