mirror of
https://github.com/Bluewhale1337/HealBotBlue.git
synced 2026-07-27 09:44:44 +00:00
Update HealBot_Options.lua
Quick hackfix for non-healer classes Signed-off-by: Bluewhale1337 <295648290+Bluewhale1337@users.noreply.github.com>
This commit is contained in:
@@ -1344,6 +1344,7 @@ end
|
|||||||
|
|
||||||
function HealBot_Options_Click_OnTextChanged(this)
|
function HealBot_Options_Click_OnTextChanged(this)
|
||||||
local class=UnitClass("Player");
|
local class=UnitClass("Player");
|
||||||
|
if not HealBot_Config.KeyCombo[class] then HealBot_Config.KeyCombo[class] = {} end
|
||||||
local combo = HealBot_Config.KeyCombo[class]
|
local combo = HealBot_Config.KeyCombo[class]
|
||||||
local button = HealBot_Options_ComboClass_Button()
|
local button = HealBot_Options_ComboClass_Button()
|
||||||
combo[button] = this:GetText()
|
combo[button] = this:GetText()
|
||||||
@@ -1352,6 +1353,7 @@ end
|
|||||||
|
|
||||||
function HealBot_Options_Shift_OnTextChanged(this)
|
function HealBot_Options_Shift_OnTextChanged(this)
|
||||||
local class=UnitClass("Player");
|
local class=UnitClass("Player");
|
||||||
|
if not HealBot_Config.KeyCombo[class] then HealBot_Config.KeyCombo[class] = {} end
|
||||||
local combo = HealBot_Config.KeyCombo[class]
|
local combo = HealBot_Config.KeyCombo[class]
|
||||||
local button = HealBot_Options_ComboClass_Button()
|
local button = HealBot_Options_ComboClass_Button()
|
||||||
combo["Shift"..button] = this:GetText()
|
combo["Shift"..button] = this:GetText()
|
||||||
@@ -1360,6 +1362,7 @@ end
|
|||||||
|
|
||||||
function HealBot_Options_Ctrl_OnTextChanged(this)
|
function HealBot_Options_Ctrl_OnTextChanged(this)
|
||||||
local class=UnitClass("Player");
|
local class=UnitClass("Player");
|
||||||
|
if not HealBot_Config.KeyCombo[class] then HealBot_Config.KeyCombo[class] = {} end
|
||||||
local combo = HealBot_Config.KeyCombo[class]
|
local combo = HealBot_Config.KeyCombo[class]
|
||||||
local button = HealBot_Options_ComboClass_Button()
|
local button = HealBot_Options_ComboClass_Button()
|
||||||
combo["Ctrl"..button] = this:GetText()
|
combo["Ctrl"..button] = this:GetText()
|
||||||
@@ -1368,6 +1371,7 @@ end
|
|||||||
|
|
||||||
function HealBot_Options_ShiftCtrl_OnTextChanged(this)
|
function HealBot_Options_ShiftCtrl_OnTextChanged(this)
|
||||||
local class=UnitClass("Player");
|
local class=UnitClass("Player");
|
||||||
|
if not HealBot_Config.KeyCombo[class] then HealBot_Config.KeyCombo[class] = {} end
|
||||||
local combo = HealBot_Config.KeyCombo[class]
|
local combo = HealBot_Config.KeyCombo[class]
|
||||||
local button = HealBot_Options_ComboClass_Button()
|
local button = HealBot_Options_ComboClass_Button()
|
||||||
combo["ShiftCtrl"..button] = this:GetText()
|
combo["ShiftCtrl"..button] = this:GetText()
|
||||||
|
|||||||
Reference in New Issue
Block a user