Skip to content

Commit e2666ec

Browse files
committed
#1713 More Skyriding tweaks for ConsolePort
1 parent c23243c commit e2666ec

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

GSE/API/Events.lua

+9-3
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,10 @@ local function overrideActionButton(savedBind, force)
132132
string.sub(Button, 1, 4) == "CPB_" and "" or
133133
"1"
134134

135-
if (string.sub(Button, 1, 3) == "BT4") and not GSEOptions.DisableExperimentalLAB then
135+
if
136+
(string.sub(Button, 1, 3) == "BT4") or
137+
(string.sub(Button, 1, 3) == "CPB_" and not GSEOptions.DisableExperimentalLAB)
138+
then
136139
if _G[Button] and _G[Button].SetState then
137140
_G[Button]:SetAttribute("gse-button", Sequence)
138141
_G[Button]:SetState(
@@ -154,7 +157,8 @@ local function overrideActionButton(savedBind, force)
154157
_G[Button]:SetAttribute("clickbutton", _G[Sequence])
155158
end
156159
elseif
157-
string.sub(Button, 1, 5) == "ElvUI" or string.sub(Button, 1, 4) == "CPB_" or GSEOptions.DisableExperimentalLAB
160+
string.sub(Button, 1, 5) == "ElvUI" or (string.sub(Button, 1, 3) == "BT4") or string.sub(Button, 1, 4) == "CPB_" or
161+
GSEOptions.DisableExperimentalLAB
158162
then
159163
if _G[Button] and _G[Button].SetState then
160164
_G[Button]:SetAttribute("gse-button", Sequence)
@@ -350,7 +354,9 @@ end
350354

351355
function GSE:ADDON_LOADED(event, addon)
352356
if addon == GNOME then
353-
GSE.setupLAB()
357+
if not ConsolePort then
358+
GSE.setupLAB()
359+
end
354360
local char = UnitFullName("player")
355361
local realm = GetRealmName()
356362

0 commit comments

Comments
 (0)