Commit fdc22e49 authored by Ivaria's avatar Ivaria
Browse files

Display specialization names on option checkboxes

parent 855cb631
## Interface: 70300
## Title: VuhDo ['vu:du:]
## Author: Iza@Gilneas, humfras, Ivaria@Hyjal
## Version: 3.89
## Version: 3.90
## Notes: Raid Frames providing click-heal functionality, buff and debuff control, main tank management and much more
## SavedVariablesPerCharacter: VUHDO_CONFIG, VUHDO_PANEL_SETUP, VUHDO_SPELL_ASSIGNMENTS, VUHDO_HOSTILE_SPELL_ASSIGNMENTS, VUHDO_MM_SETTINGS, VUHDO_PLAYER_TARGETS, VUHDO_MAINTANK_NAMES, VUHDO_BUFF_SETTINGS, VUHDO_POWER_TYPE_COLORS, VUHDO_SPELLS_KEYBOARD, VUHDO_SPELL_CONFIG, VUHDO_BUFF_ORDER, VUHDO_SPEC_LAYOUTS, VUHDO_GROUP_SIZE, VUHDO_RAID, VUHDO_INDICATOR_CONFIG
## SavedVariables: VUHDO_DEFAULT_LAYOUT, VUHDO_DEFAULT_PROFILE, VUHDO_PROFILES, VUHDO_MANUAL_ROLES, VUHDO_SPELL_LAYOUTS, VUHDO_USER_CLASS_COLORS, VUHDO_DEBUFF_BLACKLIST, VUHDO_BOUQUETS, VUHDO_COMBAT_LOG_TRACE, VUHDO_GLOBAL_CONFIG, VUHDO_DEBUG
......
......@@ -63,6 +63,37 @@ end
--
function VUHDO_keyLayoutInitSpecCheckButton(aCheckButton, aSpecId)
aCheckButton:SetChecked(VUHDO_CURR_LAYOUT == VUHDO_SPEC_LAYOUTS[aSpecId]);
VUHDO_lnfCheckButtonClicked(aCheckButton);
local tIndexName;
local tSpecId = tonumber(aSpecId) or 0;
if (tSpecId == 1) then
tIndexName = VUHDO_I18N_SPEC_1;
elseif (tSpecId == 2) then
tIndexName = VUHDO_I18N_SPEC_2;
elseif (tSpecId == 3) then
tIndexName = VUHDO_I18N_SPEC_3;
elseif (tSpecId == 4) then
tIndexName = VUHDO_I18N_SPEC_4;
end
if tIndexName then
local _, tSpecName = GetSpecializationInfo(tSpecId);
if tSpecName then
_G[aCheckButton:GetName() .. "Label"]:SetText(tIndexName .. "\n(" .. string.sub(tSpecName,1,4) .. ")");
end
end
end
--
function VUHDO_deleteKeyLayoutCallback(aDecision)
if (VUHDO_YES == aDecision) then
......
......@@ -129,8 +129,8 @@
</OnClick>
<OnShow>
VUHDO_lnfPatchFont(self, "Label");
self:SetChecked(VUHDO_CURR_LAYOUT == VUHDO_SPEC_LAYOUTS["2"]);
VUHDO_lnfCheckButtonClicked(self);
VUHDO_lnfCheckButtonInitFromModel(self);
VUHDO_keyLayoutInitSpecCheckButton(self, "2");
</OnShow>
</Scripts>
</CheckButton>
......@@ -153,8 +153,8 @@
</OnClick>
<OnShow>
VUHDO_lnfPatchFont(self, "Label");
self:SetChecked(VUHDO_CURR_LAYOUT == VUHDO_SPEC_LAYOUTS["1"]);
VUHDO_lnfCheckButtonClicked(self);
VUHDO_lnfCheckButtonInitFromModel(self);
VUHDO_keyLayoutInitSpecCheckButton(self, "1");
</OnShow>
</Scripts>
</CheckButton>
......@@ -177,8 +177,8 @@
</OnClick>
<OnShow>
VUHDO_lnfPatchFont(self, "Label");
self:SetChecked(VUHDO_CURR_LAYOUT == VUHDO_SPEC_LAYOUTS["3"]);
VUHDO_lnfCheckButtonClicked(self);
VUHDO_lnfCheckButtonInitFromModel(self);
VUHDO_keyLayoutInitSpecCheckButton(self, "3");
</OnShow>
</Scripts>
</CheckButton>
......@@ -201,8 +201,8 @@
</OnClick>
<OnShow>
VUHDO_lnfPatchFont(self, "Label");
self:SetChecked(VUHDO_CURR_LAYOUT == VUHDO_SPEC_LAYOUTS["4"]);
VUHDO_lnfCheckButtonClicked(self);
VUHDO_lnfCheckButtonInitFromModel(self);
VUHDO_keyLayoutInitSpecCheckButton(self, "4");
</OnShow>
</Scripts>
</CheckButton>
......
......@@ -103,6 +103,31 @@ end
function VUHDO_skinsInitAutoCheckButton(aButton, anIndex)
aButton:SetChecked(VUHDO_isAutoProfileButtonEnabled(anIndex));
VUHDO_lnfCheckButtonClicked(aButton);
local tIndexStart, tIndexEnd = strfind(anIndex, "SPEC", 1, true);
if ((tIndexStart == 1) and tIndexEnd) then
local tIndexName;
local tSpecId = tonumber(string.sub(anIndex, tIndexEnd + 2, tIndexEnd + 2));
if (tSpecId == 1) then
tIndexName = VUHDO_I18N_SPEC_1;
elseif (tSpecId == 2) then
tIndexName = VUHDO_I18N_SPEC_2;
elseif (tSpecId == 3) then
tIndexName = VUHDO_I18N_SPEC_3;
elseif (tSpecId == 4) then
tIndexName = VUHDO_I18N_SPEC_4;
end
if tIndexName then
local _, tSpecName = GetSpecializationInfo(tSpecId);
if tSpecName then
_G[aButton:GetName() .. "Label"]:SetText(tIndexName .. "\n(" .. string.sub(tSpecName,1,4) .. ")");
end
end
end
end
......
......@@ -498,7 +498,7 @@
VUHDO_lnfSetTooltip(self, VUHDO_I18N_TT.K475);
</OnLoad>
<OnShow>
VUHDO_lnfPatchFont(self, "Label"); VUHDO_lnfRadioButtonOnShow(self);
VUHDO_lnfPatchFont(self, "Label");
VUHDO_lnfCheckButtonInitFromModel(self);
VUHDO_skinsInitAutoCheckButton(self, "SPEC_1");
</OnShow>
......@@ -525,7 +525,7 @@
VUHDO_lnfSetTooltip(self, VUHDO_I18N_TT.K476);
</OnLoad>
<OnShow>
VUHDO_lnfPatchFont(self, "Label"); VUHDO_lnfRadioButtonOnShow(self);
VUHDO_lnfPatchFont(self, "Label");
VUHDO_lnfCheckButtonInitFromModel(self);
VUHDO_skinsInitAutoCheckButton(self, "SPEC_2");
</OnShow>
......@@ -549,7 +549,7 @@
</Anchors>
<Scripts>
<OnShow>
VUHDO_lnfPatchFont(self, "Label"); VUHDO_lnfRadioButtonOnShow(self);
VUHDO_lnfPatchFont(self, "Label");
VUHDO_lnfCheckButtonInitFromModel(self);
VUHDO_skinsInitAutoCheckButton(self, "SPEC_3");
</OnShow>
......@@ -573,7 +573,7 @@
</Anchors>
<Scripts>
<OnShow>
VUHDO_lnfPatchFont(self, "Label"); VUHDO_lnfRadioButtonOnShow(self);
VUHDO_lnfPatchFont(self, "Label");
VUHDO_lnfCheckButtonInitFromModel(self);
VUHDO_skinsInitAutoCheckButton(self, "SPEC_4");
</OnShow>
......
## Interface: 70300
## Title: VuhDo ['vu:du:] - Options
## Author: Iza@Gilneas, humfras, Ivaria@Hyjal
## Version: 3.89
## Version: 3.90
## Notes: VuhDo Options
## SavedVariables: VUHDO_OPTIONS_SETTINGS
## SavedVariablesPerCharacter: VUHDO_GLOBAL_ICONS, VUHDO_GI_SCAN_IDX
......
Version 3.90
Known issues:
-- Limited support for Class Order Hall Bodyguards
-- Bodyguards can be used in panels when set to target or focus
-- Bodyguards have no unit ID so for now are only partially supported
-- Incoming heal estimation reported is not even close to accurate
-- Bug in Blizzard API UnitGetIncomingHeals() - returns bogus values
-- Patch 7.1 disabled retrieval of unit facing and position in instances
-- This was an intentional breaking change by Blizzard
-- This breaks AOE Advice, Clusters and out-of-range direction arrow
-- At this time there is no way to fix or renable these features
-- Blizzard has changed the way vehicles work for Antoran High Command
-- For now I've just disabled the proper vehicle support
-- Targeting a player in vehicle will still targe the vehicle unit
-- However, mouseover/click-to-heal should work properly
-- Healing actual vehicles (e.g. Ulduar) is now broken though
Bugfixes:
Improvements:
-- Display specialization names on option checkboxes
--------------------------------------------------------------
Version 3.89
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment