mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-20 11:30:48 +00:00
introducing click-cast for raidframes
This commit is contained in:
+5
-1
@@ -3,7 +3,7 @@ pfUI_config = {}
|
|||||||
|
|
||||||
function pfUI:LoadConfig()
|
function pfUI:LoadConfig()
|
||||||
-- MODULE SUBGROUP ENTRY VALUE
|
-- MODULE SUBGROUP ENTRY VALUE
|
||||||
pfUI:UpdateConfig("global", nil, "font_size", "10")
|
pfUI:UpdateConfig("global", nil, "font_size", "10")
|
||||||
pfUI:UpdateConfig("unitframes", nil, "animation_speed", "5")
|
pfUI:UpdateConfig("unitframes", nil, "animation_speed", "5")
|
||||||
pfUI:UpdateConfig("unitframes", nil, "portrait", "1")
|
pfUI:UpdateConfig("unitframes", nil, "portrait", "1")
|
||||||
pfUI:UpdateConfig("unitframes", nil, "buff_size", "22")
|
pfUI:UpdateConfig("unitframes", nil, "buff_size", "22")
|
||||||
@@ -15,6 +15,10 @@ function pfUI:LoadConfig()
|
|||||||
pfUI:UpdateConfig("unitframes", "target", "width", "200")
|
pfUI:UpdateConfig("unitframes", "target", "width", "200")
|
||||||
pfUI:UpdateConfig("unitframes", "target", "height", "50")
|
pfUI:UpdateConfig("unitframes", "target", "height", "50")
|
||||||
pfUI:UpdateConfig("unitframes", "target", "pheight", "10")
|
pfUI:UpdateConfig("unitframes", "target", "pheight", "10")
|
||||||
|
pfUI:UpdateConfig("unitframes", "raid", "clickcast", "")
|
||||||
|
pfUI:UpdateConfig("unitframes", "raid", "clickcast_shift", "")
|
||||||
|
pfUI:UpdateConfig("unitframes", "raid", "clickcast_alt", "")
|
||||||
|
pfUI:UpdateConfig("unitframes", "raid", "clickcast_ctrl", "")
|
||||||
pfUI:UpdateConfig("bars", nil, "icon_size", "22")
|
pfUI:UpdateConfig("bars", nil, "icon_size", "22")
|
||||||
pfUI:UpdateConfig("bars", nil, "border", "2")
|
pfUI:UpdateConfig("bars", nil, "border", "2")
|
||||||
pfUI:UpdateConfig("panel", "left", "left", "guild")
|
pfUI:UpdateConfig("panel", "left", "left", "guild")
|
||||||
|
|||||||
@@ -603,6 +603,10 @@ pfUI:RegisterModule("gui", function ()
|
|||||||
pfUI.gui.CreateConfig(pfUI.gui.uf, "Target width", pfUI_config.unitframes.target, "width")
|
pfUI.gui.CreateConfig(pfUI.gui.uf, "Target width", pfUI_config.unitframes.target, "width")
|
||||||
pfUI.gui.CreateConfig(pfUI.gui.uf, "Target height", pfUI_config.unitframes.target, "height")
|
pfUI.gui.CreateConfig(pfUI.gui.uf, "Target height", pfUI_config.unitframes.target, "height")
|
||||||
pfUI.gui.CreateConfig(pfUI.gui.uf, "Target powerbar height", pfUI_config.unitframes.target, "pheight")
|
pfUI.gui.CreateConfig(pfUI.gui.uf, "Target powerbar height", pfUI_config.unitframes.target, "pheight")
|
||||||
|
pfUI.gui.CreateConfig(pfUI.gui.uf, "Click-cast on Raidframe", pfUI_config.unitframes.raid, "clickcast")
|
||||||
|
pfUI.gui.CreateConfig(pfUI.gui.uf, "Click-cast on Raidframe (Shift)", pfUI_config.unitframes.raid, "clickcast_shift")
|
||||||
|
pfUI.gui.CreateConfig(pfUI.gui.uf, "Click-cast on Raidframe (Alt)", pfUI_config.unitframes.raid, "clickcast_alt")
|
||||||
|
pfUI.gui.CreateConfig(pfUI.gui.uf, "Click-cast on Raidframe (Ctrl)", pfUI_config.unitframes.raid, "clickcast_ctrl")
|
||||||
|
|
||||||
-- actionbar
|
-- actionbar
|
||||||
pfUI.gui.CreateConfig(pfUI.gui.bar, "Icon Size", pfUI_config.bars, "icon_size")
|
pfUI.gui.CreateConfig(pfUI.gui.bar, "Icon Size", pfUI_config.bars, "icon_size")
|
||||||
|
|||||||
@@ -132,6 +132,38 @@ pfUI:RegisterModule("raid", function ()
|
|||||||
DropItemOnUnit("raid" .. this.id);
|
DropItemOnUnit("raid" .. this.id);
|
||||||
else
|
else
|
||||||
TargetUnit("raid" .. this.id);
|
TargetUnit("raid" .. this.id);
|
||||||
|
-- clickcast: Shift-modifier
|
||||||
|
if IsShiftKeyDown() then
|
||||||
|
if pfUI_config.unitframes.raid.clickcast_shift ~= "" then
|
||||||
|
CastSpellByName(pfUI_config.unitframes.raid.clickcast_shift)
|
||||||
|
TargetLastTarget()
|
||||||
|
return
|
||||||
|
end
|
||||||
|
-- clickcast: alt modifier
|
||||||
|
elseif IsAltKeyDown() then
|
||||||
|
if pfUI_config.unitframes.raid.clickcast_alt ~= "" then
|
||||||
|
CastSpellByName(pfUI_config.unitframes.raid.clickcast_alt)
|
||||||
|
TargetLastTarget()
|
||||||
|
return
|
||||||
|
end
|
||||||
|
-- clickcast: ctrl modifier
|
||||||
|
elseif IsControlKeyDown() then
|
||||||
|
if pfUI_config.unitframes.raid.clickcast_ctrl ~= "" then
|
||||||
|
CastSpellByName(pfUI_config.unitframes.raid.clickcast_ctrl)
|
||||||
|
TargetLastTarget()
|
||||||
|
return
|
||||||
|
end
|
||||||
|
-- clickcast: default
|
||||||
|
else
|
||||||
|
if pfUI_config.unitframes.raid.clickcast ~= "" then
|
||||||
|
CastSpellByName(pfUI_config.unitframes.raid.clickcast)
|
||||||
|
TargetLastTarget()
|
||||||
|
return
|
||||||
|
else
|
||||||
|
-- no clickcast: default action
|
||||||
|
TargetUnit("raid" .. this.id);
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
ToggleDropDownMenu(1, nil, getglobal("RaidMemberFrame" .. this.id .. "DropDown"), "cursor")
|
ToggleDropDownMenu(1, nil, getglobal("RaidMemberFrame" .. this.id .. "DropDown"), "cursor")
|
||||||
|
|||||||
Reference in New Issue
Block a user