mirror of
https://github.com/QbiXibQ/FBHealBox.git
synced 2026-10-04 05:10:00 +00:00
Add files via upload
This commit is contained in:
+2
-2
@@ -13,7 +13,7 @@
|
||||
- Raid test with 20 or 40 ghosts covering every visual state. `/fbp raid`, `/fbp raidtest 20|40|off`, raid line in `/fbp`.
|
||||
- Grid position and scale are saved separately from the party plates. Party plates are hidden while the grid is up (switchable).
|
||||
|
||||
**New: drag and drop.** Spells can be dragged from the spellbook onto any heal button, raid mini button or options field. Right mouse button fills the right-click side when that option is on. Spells outside the class list are accepted.
|
||||
**New: drag and drop.** Spells can be dragged from the spellbook onto any heal button, raid mini button or options field. Right mouse button, or Shift held while dropping, fills the right-click side when that option is on. Spells outside the class list are accepted.
|
||||
|
||||
**Fixed**
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
- Raid-Test mit 20 oder 40 Geistern, die jeden Anzeigezustand abdecken. `/fbp raid`, `/fbp raidtest 20|40|off`, Raid-Zeile in `/fbp`.
|
||||
- Position und Skalierung des Rasters werden getrennt von den Plaketten gespeichert. Die Gruppenplaketten sind ausgeblendet, solange das Raster steht (abschaltbar).
|
||||
|
||||
**Neu: Drag & Drop.** Zauber lassen sich aus dem Zauberbuch auf jeden Heil-Button, Raid-Mini-Button oder jedes Optionsfeld ziehen. Die rechte Maustaste fuellt die Rechtsklick-Seite, wenn die Option an ist. Zauber ausserhalb der Klassenliste werden angenommen.
|
||||
**Neu: Drag & Drop.** Zauber lassen sich aus dem Zauberbuch auf jeden Heil-Button, Raid-Mini-Button oder jedes Optionsfeld ziehen. Die rechte Maustaste oder gehaltene Shift-Taste beim Ablegen fuellt die Rechtsklick-Seite, wenn die Option an ist. Zauber ausserhalb der Klassenliste werden angenommen.
|
||||
|
||||
**Behoben**
|
||||
|
||||
|
||||
+24
-10
@@ -99,11 +99,12 @@ FBLocale["enUS"] = {
|
||||
COL_LEFT = "Left click",
|
||||
COL_RIGHT = "Right click",
|
||||
RIGHTCLICK = "Right-click spell",
|
||||
RIGHTCLICK_TIP = "Gives every button a second spell on right click (e.g. Flash Heal left, Greater Heal right). Off by default. When on, a second column appears above and a small icon in the corner of each button shows the right-click spell.",
|
||||
RIGHTCLICK_TIP = "Gives every button a second spell on right click (e.g. Flash Heal left, Greater Heal right). Off by default. When on, a second column appears above and a small icon in the corner of each button shows the right-click spell. Drop a spell with the right mouse button or with Shift held to fill this side.",
|
||||
TT_RIGHT = "Right click",
|
||||
DROP_SET = "Button %d: |cFFFFFFFF%s|r (dragged from the spellbook)",
|
||||
DROP_SET_R = "Button %d, right click: |cFFFFFFFF%s|r (dragged from the spellbook)",
|
||||
DROP_UNKNOWN = "Could not identify the dragged spell.",
|
||||
DROP_HINT = "Drag spells from the spellbook onto a button. Right mouse button or Shift while dropping fills the right-click side.",
|
||||
STATE_DEAD = "Dead",
|
||||
STATE_GHOST = "Ghost",
|
||||
STATE_OFFLINE = "Offline",
|
||||
@@ -204,11 +205,12 @@ FBLocale["deDE"] = {
|
||||
COL_LEFT = "Linksklick",
|
||||
COL_RIGHT = "Rechtsklick",
|
||||
RIGHTCLICK = "Rechtsklick-Zauber",
|
||||
RIGHTCLICK_TIP = "Gibt jedem Button einen zweiten Zauber per Rechtsklick (z. B. Blitzheilung links, Grosse Heilung rechts). Standardmaessig aus. Eingeschaltet erscheint oben eine zweite Spalte, und ein kleines Icon in der Ecke jedes Buttons zeigt den Rechtsklick-Zauber.",
|
||||
RIGHTCLICK_TIP = "Gibt jedem Button einen zweiten Zauber per Rechtsklick (z. B. Blitzheilung links, Grosse Heilung rechts). Standardmaessig aus. Eingeschaltet erscheint oben eine zweite Spalte, und ein kleines Icon in der Ecke jedes Buttons zeigt den Rechtsklick-Zauber. Zauber mit rechter Maustaste oder gehaltener Shift-Taste ablegen, um diese Seite zu fuellen.",
|
||||
TT_RIGHT = "Rechtsklick",
|
||||
DROP_SET = "Button %d: |cFFFFFFFF%s|r (aus dem Zauberbuch gezogen)",
|
||||
DROP_SET_R = "Button %d, Rechtsklick: |cFFFFFFFF%s|r (aus dem Zauberbuch gezogen)",
|
||||
DROP_UNKNOWN = "Der gezogene Zauber liess sich nicht erkennen.",
|
||||
DROP_HINT = "Zauber aus dem Zauberbuch auf einen Button ziehen. Rechte Maustaste oder Shift beim Ablegen fuellt die Rechtsklick-Seite.",
|
||||
STATE_DEAD = "Tot",
|
||||
STATE_GHOST = "Geist",
|
||||
STATE_OFFLINE = "Offline",
|
||||
@@ -1783,21 +1785,31 @@ function FBHealBoxCreateButton(FBButtonName, FBParentFrame, xoffset, yoffset, te
|
||||
GameTooltip:Hide();
|
||||
end);
|
||||
|
||||
button:RegisterForClicks("LeftButtonUp");
|
||||
-- Beide Maustasten: Rechtsklick wird fuer Drag & Drop immer gebraucht,
|
||||
-- fuer den Rechtsklick-Zauber prueft OnClick die Option selbst
|
||||
button:RegisterForClicks("LeftButtonUp", "RightButtonUp");
|
||||
|
||||
button:SetScript("OnClick", function()
|
||||
-- Zauber am Cursor: belegen statt casten
|
||||
-- Zauber am Cursor: belegen statt casten (rechts oder Shift = Rechtsklick-Seite)
|
||||
if (FBDragSpell and button.btnIndex) then
|
||||
local side = "L";
|
||||
if (arg1 == "RightButton") then side = "R"; end
|
||||
if (arg1 == "RightButton" or IsShiftKeyDown()) then side = "R"; end
|
||||
if (FBHealBox_DropSpell(button.btnIndex, side)) then return; end
|
||||
end
|
||||
local castString = button.spellName;
|
||||
if (arg1 == "RightButton") then castString = button.spellNameR; end
|
||||
if (arg1 == "RightButton") then
|
||||
-- Rechtsklick-Zauber nur, wenn die Option an ist
|
||||
if (HealBox.RightClick ~= 1) then return; end
|
||||
castString = button.spellNameR;
|
||||
end
|
||||
FBHealBox_CastOn(button, castString);
|
||||
end);
|
||||
button:SetScript("OnReceiveDrag", function()
|
||||
if (button.btnIndex) then FBHealBox_DropSpell(button.btnIndex, "L"); end
|
||||
if (button.btnIndex) then
|
||||
local side = "L";
|
||||
if (IsShiftKeyDown()) then side = "R"; end
|
||||
FBHealBox_DropSpell(button.btnIndex, side);
|
||||
end
|
||||
end);
|
||||
|
||||
button:RegisterEvent("SPELL_UPDATE_USABLE");
|
||||
@@ -2443,7 +2455,11 @@ function FBHealBoxCreateAddonOptionFrame()
|
||||
PlaySound("igMainMenuOptionCheckBoxOn");
|
||||
FBMenu_OpenSpellMenu(btnIndex, btn, "L");
|
||||
end);
|
||||
btn:SetScript("OnReceiveDrag", function() FBHealBox_DropSpell(btnIndex, "L"); end);
|
||||
btn:SetScript("OnReceiveDrag", function()
|
||||
local side = "L";
|
||||
if (IsShiftKeyDown()) then side = "R"; end
|
||||
FBHealBox_DropSpell(btnIndex, side);
|
||||
end);
|
||||
FBSpellBtns[i] = btn;
|
||||
|
||||
local btnR = FBHealBox_CreatePickButton("FBHealBoxBtnR"..i, tabButtons, xRight, yPos, fieldW, 28, 20);
|
||||
@@ -2766,11 +2782,9 @@ function FBHealBoxButtonsChanged()
|
||||
if (rightOn) then
|
||||
b.spellNameR = FBDropDownButtonR[i];
|
||||
b.idR = FBActiveSpellIDsR[i];
|
||||
b:RegisterForClicks("LeftButtonUp", "RightButtonUp");
|
||||
else
|
||||
b.spellNameR = nil;
|
||||
b.idR = nil;
|
||||
b:RegisterForClicks("LeftButtonUp");
|
||||
end
|
||||
if (b.subIcon) then
|
||||
if (b.spellNameR and FBDropDownButtonIconR[i]) then
|
||||
|
||||
+5
-4
@@ -481,7 +481,7 @@ function FBRaid_CreateCell(g, pos)
|
||||
b:SetScript("OnClick", function()
|
||||
if (FBDragSpell) then
|
||||
local side = "L";
|
||||
if (arg1 == "RightButton") then side = "R"; end
|
||||
if (arg1 == "RightButton" or IsShiftKeyDown()) then side = "R"; end
|
||||
if (FBHealBox_DropSpell(i, side)) then return; end
|
||||
end
|
||||
if (FBRaidTestMode > 0) then
|
||||
@@ -489,7 +489,10 @@ function FBRaid_CreateCell(g, pos)
|
||||
return;
|
||||
end
|
||||
local castString = b.spellName;
|
||||
if (arg1 == "RightButton") then castString = b.spellNameR; end
|
||||
if (arg1 == "RightButton") then
|
||||
if (HealBox.RightClick ~= 1) then return; end
|
||||
castString = b.spellNameR;
|
||||
end
|
||||
FBHealBox_CastOn(b, castString);
|
||||
end);
|
||||
b:Hide();
|
||||
@@ -845,11 +848,9 @@ function FBRaid_SyncButtons()
|
||||
if (rightOn) then
|
||||
b.spellNameR = FBDropDownButtonR[i];
|
||||
b.idR = FBActiveSpellIDsR[i];
|
||||
b:RegisterForClicks("LeftButtonUp", "RightButtonUp");
|
||||
else
|
||||
b.spellNameR = nil;
|
||||
b.idR = nil;
|
||||
b:RegisterForClicks("LeftButtonUp");
|
||||
end
|
||||
if (b.subIcon) then
|
||||
if (b.spellNameR and FBDropDownButtonIconR[i]) then
|
||||
|
||||
Reference in New Issue
Block a user