mirror of
https://github.com/Bluewhale1337/HealBotBlue.git
synced 2026-07-27 09:44:44 +00:00
Port and adapt 6 main hotfixes to decoupled architecture + small function re-write HealBot_SetSkinColours to adhere to DRY principles
This commit is contained in:
@@ -134,6 +134,7 @@ end
|
||||
|
||||
function HealBot_Options_Click_OnTextChanged(this)
|
||||
local class=UnitClass("Player");
|
||||
if not HealBot_Config.KeyCombo[class] then HealBot_Config.KeyCombo[class] = {} end
|
||||
local combo = HealBot_Config.KeyCombo[class]
|
||||
local button = HealBot_Options_ComboClass_Button()
|
||||
combo[button] = this:GetText()
|
||||
@@ -142,6 +143,7 @@ end
|
||||
|
||||
function HealBot_Options_Shift_OnTextChanged(this)
|
||||
local class=UnitClass("Player");
|
||||
if not HealBot_Config.KeyCombo[class] then HealBot_Config.KeyCombo[class] = {} end
|
||||
local combo = HealBot_Config.KeyCombo[class]
|
||||
local button = HealBot_Options_ComboClass_Button()
|
||||
combo["Shift"..button] = this:GetText()
|
||||
@@ -150,6 +152,7 @@ end
|
||||
|
||||
function HealBot_Options_Ctrl_OnTextChanged(this)
|
||||
local class=UnitClass("Player");
|
||||
if not HealBot_Config.KeyCombo[class] then HealBot_Config.KeyCombo[class] = {} end
|
||||
local combo = HealBot_Config.KeyCombo[class]
|
||||
local button = HealBot_Options_ComboClass_Button()
|
||||
combo["Ctrl"..button] = this:GetText()
|
||||
@@ -158,6 +161,7 @@ end
|
||||
|
||||
function HealBot_Options_ShiftCtrl_OnTextChanged(this)
|
||||
local class=UnitClass("Player");
|
||||
if not HealBot_Config.KeyCombo[class] then HealBot_Config.KeyCombo[class] = {} end
|
||||
local combo = HealBot_Config.KeyCombo[class]
|
||||
local button = HealBot_Options_ComboClass_Button()
|
||||
combo["ShiftCtrl"..button] = this:GetText()
|
||||
|
||||
Reference in New Issue
Block a user