lotrointerface.com
Search Downloads

LoTROInterface SVN KragenBars

[/] [trunk/] [KragenPlugs/] [KragenBars/] [MiniBars.lua] - Blame information for rev 135

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 6 Kragenwar-3044
import "Turbine.UI";
2 Kragenwar-3044
import "Turbine.UI.Lotro";
3 Kragenwar-3044
import "Turbine.Gameplay";
4 Kragenwar-3044
import "KragenPlugs.Utils";
5 Kragenwar-3044
import "KragenPlugs.KragenBars";
6 Kragenwar-3044
 
7 Kragenwar-3044
MiniBars = class( KragenPlugs.KragenBars.ClassBar );
8 Kragenwar-3044
 
9 Kragenwar-3044
function MiniBars:Constructor()
10 Kragenwar-3044
 
11 Kragenwar-3044
        KragenPlugs.KragenBars.ClassBar.Constructor( self );
12 Kragenwar-3044
 
13 48 Kragenwar-3044
        -- CLASS SPECIFIC VARIABLES
14 127 Valdacil-446
        self.ballads = 0;
15 Valdacil-446
 
16 Valdacil-446
        self.effectlist["BalladDamageBonus"]                    = Effect();
17 Valdacil-446
        self.effectlist["BalladHealingBonus"]                   = Effect();
18 Valdacil-446
        self.effectlist["BalladPowerBonus"]                             = Effect();
19 76 Valdacil-446
        self.effectlist["Silenced"]                                             = Effect();
20 Valdacil-446
        self.effectlist["TaleofHeroism"]                                = Effect();
21 Valdacil-446
        self.effectlist["TaleofBattle"]                                 = Effect();
22 125 Valdacil-446
        self.effectlist["ImprovedTaleofBattle"]                 = Effect();
23 76 Valdacil-446
        self.effectlist["TaleofWarding"]                                = Effect();
24 125 Valdacil-446
        self.effectlist["ImprovedTaleofWarding"]                = Effect();
25 76 Valdacil-446
        self.effectlist["TaleofFrostandFlame"]                  = Effect();
26 Valdacil-446
        self.effectlist["TaleofWardingandHeroism"]              = Effect();
27 Valdacil-446
        self.effectlist["TaleofFrostandFlamesBattle"]   = Effect();
28 127 Valdacil-446
        self.effectlist["AnthemofWar"]                                  = Effect();
29 Valdacil-446
        self.effectlist["AnthemoftheFreePeoples"]               = Effect();
30 Valdacil-446
        self.effectlist["AnthemofProwess"]                              = Effect();
31 Valdacil-446
        self.effectlist["AnthemofCompassion"]                   = Effect();
32 Valdacil-446
        self.effectlist["AnthemoftheThirdAge"]                  = Effect();
33 129 Valdacil-446
        self.effectlist["AnthemoftheThirdAgeWS"]                = Effect();
34 127 Valdacil-446
        self.effectlist["AnthemofComposure"]                    = Effect();
35 Valdacil-446
        self.effectlist["Warspeech"]                                    = Effect();
36 Valdacil-446
        self.effectlist["Harmony"]                                              = Effect();
37 76 Valdacil-446
        self.effectlist["LuteStrings"]                                  = Effect();
38 48 Kragenwar-3044
 
39 127 Valdacil-446
 
40 48 Kragenwar-3044
        -- DEFINE THE EFFECT LIST BASED ON CLIENT LANGUAGE
41 Kragenwar-3044
        self.DefineEffectList = function()
42 Kragenwar-3044
                -- ENGLISH CLIENT
43 Kragenwar-3044
                if (settings.language == 1) then
44 127 Valdacil-446
                        self.effectlist["BalladDamageBonus"]                    :SetName("Ballad Damage Bonus");
45 Valdacil-446
                        self.effectlist["BalladHealingBonus"]                   :SetName("Ballad Healing Bonus");
46 Valdacil-446
                        self.effectlist["BalladPowerBonus"]                             :SetName("Ballad Power Bonus");
47 76 Valdacil-446
                        self.effectlist["Silenced"]                                     :SetName("Silenced");
48 Valdacil-446
                        self.effectlist["TaleofHeroism"]                                :SetName("Tale of Heroism");
49 Valdacil-446
                        self.effectlist["TaleofBattle"]                                 :SetName("Tale of Battle");
50 125 Valdacil-446
                        self.effectlist["ImprovedTaleofBattle"]                 :SetName("Improved Tale of Battle");
51 Valdacil-446
                        self.effectlist["TaleofWarding"]                                :SetName("Tale of Warding and Hope");
52 Valdacil-446
                        self.effectlist["ImprovedTaleofWarding"]                :SetName("Improved Tale of Warding");
53 76 Valdacil-446
                        self.effectlist["TaleofFrostandFlame"]                  :SetName("Tale of Frost and Flame");
54 Valdacil-446
                        self.effectlist["TaleofWardingandHeroism"]              :SetName("Tale of Warding and Heroism");
55 Valdacil-446
                        self.effectlist["TaleofFrostandFlamesBattle"]   :SetName("Tale of Frost and Flame's Battle");
56 127 Valdacil-446
                        self.effectlist["AnthemofWar"]                                  :SetName("Anthem of War");
57 Valdacil-446
                        self.effectlist["AnthemoftheFreePeoples"]               :SetName("Anthem of the Free People");
58 Valdacil-446
                        self.effectlist["AnthemofProwess"]                              :SetName("Anthem of Prowess");
59 Valdacil-446
                        self.effectlist["AnthemofCompassion"]                   :SetName("Anthem of Compassion");
60 Valdacil-446
                        self.effectlist["AnthemoftheThirdAge"]                  :SetName("Anthem of the Third Age");
61 129 Valdacil-446
                        self.effectlist["AnthemoftheThirdAgeWS"]                :SetName("Anthem of the Third Age (War-speech)");
62 127 Valdacil-446
                        self.effectlist["AnthemofComposure"]                    :SetName("Anthem of Composure");
63 Valdacil-446
                        self.effectlist["Warspeech"]                                    :SetName("War-speech");
64 Valdacil-446
                        self.effectlist["Harmony"]                                              :SetName("Harmony");
65 Valdacil-446
                        self.effectlist["LuteStrings"]                                  :SetName("Lute Strings");
66 48 Kragenwar-3044
                elseif (settings.language == 2) then
67 127 Valdacil-446
                        self.effectlist["BalladDamageBonus"]                    :SetName("Ballad Damage Bonus");
68 Valdacil-446
                        self.effectlist["BalladHealingBonus"]                   :SetName("Ballad Healing Bonus");
69 Valdacil-446
                        self.effectlist["BalladPowerBonus"]                             :SetName("Ballad Power Bonus");
70 76 Valdacil-446
                        self.effectlist["Silenced"]                                     :SetName("Silenced");
71 Valdacil-446
                        self.effectlist["TaleofHeroism"]                                :SetName("Tale of Heroism");
72 127 Valdacil-446
                        self.effectlist["TaleofBattle"]                                 :SetName("Tale of Battle");
73 125 Valdacil-446
                        self.effectlist["ImprovedTaleofBattle"]                 :SetName("Improved Tale of Battle");
74 Valdacil-446
                        self.effectlist["TaleofWarding"]                                :SetName("Tale of Warding and Hope");
75 Valdacil-446
                        self.effectlist["ImprovedTaleofWarding"]                :SetName("Improved Tale of Warding");
76 76 Valdacil-446
                        self.effectlist["TaleofFrostandFlame"]                  :SetName("Tale of Frost and Flame");
77 Valdacil-446
                        self.effectlist["TaleofWardingandHeroism"]              :SetName("Tale of Warding and Heroism");
78 Valdacil-446
                        self.effectlist["TaleofFrostandFlamesBattle"]   :SetName("Tale of Frost and Flame's Battle");
79 127 Valdacil-446
                        self.effectlist["AnthemofWar"]                                  :SetName("Anthem of War");
80 Valdacil-446
                        self.effectlist["AnthemoftheFreePeoples"]               :SetName("Anthem of the Free People");
81 Valdacil-446
                        self.effectlist["AnthemofProwess"]                              :SetName("Anthem of Prowess");
82 Valdacil-446
                        self.effectlist["AnthemofCompassion"]                   :SetName("Anthem of Compassion");
83 Valdacil-446
                        self.effectlist["AnthemoftheThirdAge"]                  :SetName("Anthem of the Third Age");
84 129 Valdacil-446
                        self.effectlist["AnthemoftheThirdAgeWS"]                :SetName("Anthem of the Third Age (War-speech)");
85 127 Valdacil-446
                        self.effectlist["AnthemofComposure"]                    :SetName("Anthem of Composure");
86 Valdacil-446
                        self.effectlist["Warspeech"]                                    :SetName("War-speech");
87 Valdacil-446
                        self.effectlist["Harmony"]                                              :SetName("Harmony");
88 Valdacil-446
                        self.effectlist["LuteStrings"]                                  :SetName("Lute Strings");
89 Valdacil-446
                        Turbine.Shell.WriteLine("KragenBars: Some features may not function with the French Client.\nIf you would like to help with French effect names goto http://www.lotrointerface.com/downloads/info384-KragenBars.html");
90 48 Kragenwar-3044
                elseif (settings.language == 3) then
91 129 Valdacil-446
                        self.effectlist["BalladDamageBonus"]                    :SetName("Bonus: Balladenschaden");
92 135 Valdacil-446
                        self.effectlist["BalladHealingBonus"]                   :SetName("Balladenheilungs-Bonus");
93 129 Valdacil-446
                        self.effectlist["BalladPowerBonus"]                             :SetName("Bonus: Balladenkraft");
94 76 Valdacil-446
                        self.effectlist["Silenced"]                                     :SetName("Verstummt");
95 Valdacil-446
                        self.effectlist["TaleofHeroism"]                                :SetName("Heldensage");
96 Valdacil-446
                        self.effectlist["TaleofBattle"]                                 :SetName("Geschichte des Gefechts");
97 129 Valdacil-446
                        self.effectlist["ImprovedTaleofBattle"]                 :SetName("Verbesserung: Widerhall des Kampfes");
98 76 Valdacil-446
                        self.effectlist["TaleofWarding"]                                :SetName("Geschichte der Bewachung");
99 125 Valdacil-446
                        self.effectlist["ImprovedTaleofWarding"]                :SetName("Improved Tale of Warding");
100 76 Valdacil-446
                        self.effectlist["TaleofFrostandFlame"]                  :SetName("Geschichte von Frost- und Flamme");
101 Valdacil-446
                        self.effectlist["TaleofWardingandHeroism"]              :SetName("Geschichte der Bewachung und Heldensagen");
102 Valdacil-446
                        self.effectlist["TaleofFrostandFlamesBattle"]   :SetName("Geschichte vom Frost-und Flammengefecht");
103 Valdacil-446
                        self.effectlist["LuteStrings"]                                  :SetName("Lauten-Saiten");
104 129 Valdacil-446
                        self.effectlist["AnthemofWar"]                                  :SetName("Hymne des Krieges");
105 127 Valdacil-446
                        self.effectlist["AnthemoftheFreePeoples"]               :SetName("Hymne der freien V�lker");
106 129 Valdacil-446
                        self.effectlist["AnthemofProwess"]                              :SetName("Ballade der Schnelligkeit");
107 127 Valdacil-446
                        self.effectlist["AnthemofCompassion"]                   :SetName("Hymne des Mitgef�hls");
108 129 Valdacil-446
                        self.effectlist["AnthemoftheThirdAge"]                  :SetName("Hymne des dritten Zeitalters");
109 Valdacil-446
                        self.effectlist["AnthemoftheThirdAgeWS"]                :SetName("Hymne des dritten Zeitalters (Kriegsrede)");
110 Valdacil-446
                        self.effectlist["AnthemofComposure"]                    :SetName("Hymne der Selbstbeherrschung");
111 127 Valdacil-446
                        self.effectlist["Warspeech"]                                    :SetName("Kriegsrede");
112 129 Valdacil-446
                        self.effectlist["Harmony"]                                              :SetName("Harmonie");
113 127 Valdacil-446
                        self.effectlist["LuteStrings"]                                  :SetName("Lauten-Saiten");
114 Valdacil-446
                        Turbine.Shell.WriteLine("KragenBars: Some features may not function with the German Client.\n If you would like to help with German effect names goto http://www.lotrointerface.com/downloads/info384-KragenBars.html");
115 48 Kragenwar-3044
                end
116 34 Valdacil-446
        end
117 Valdacil-446
 
118 Valdacil-446
 
119 6 Kragenwar-3044
    -- BUILD WINDOWS BARS SKILLS AND MULTIS --
120 Kragenwar-3044
 
121 Kragenwar-3044
        -- Build Skills         SkillSlot( parent:SkillBar, x:int, y:int, active:Boolean, level:int, hexcode:String );
122 127 Valdacil-446
    self.skills["MinorBallad"]                          = SkillSlot(self.bars["Ballads"],               1, 1, true, 1, "0x700031A8");
123 Valdacil-446
    self.skills["MajorBallad"]                          = SkillSlot(self.bars["Ballads"],               2, 1, true, 2, "0x70003E7C");
124 Valdacil-446
    self.skills["PerfectBallad"]                        = SkillSlot(self.bars["Ballads"],               3, 1, true, 6, "0x70003E7E");
125 6 Kragenwar-3044
 
126 127 Valdacil-446
        self.skills["AnthemofWar"]                              = SkillSlot(self.bars["Anthems1"],              1, 1, false, 6, "0x7000317F");
127 Valdacil-446
    self.skills["AnthemoftheFreePeoples"]       = SkillSlot(self.bars["Anthems1"],              2, 1, false, 18, "0x70003E88");
128 Valdacil-446
    self.skills["AnthemofProwess"]                      = SkillSlot(self.bars["Anthems1"],              3, 1, false, 20, "0x70003E7F");
129 Valdacil-446
    self.skills["AnthemofCompassion"]           = SkillSlot(self.bars["Anthems2"],              1, 1, false, 24, "0x70003E8A");
130 Valdacil-446
        self.skills["AnthemoftheThirdAge"]              = SkillSlot(self.bars["Anthems2"],              2, 1, false, 28, "0x700264BA");
131 Valdacil-446
    self.skills["AnthemofComposure"]            = SkillSlot(self.bars["Anthems2"],              3, 1, false, 36, "0x70003E80");
132 Valdacil-446
 
133 Valdacil-446
        self.skills["CodaofVigour"]                             = SkillSlot(self.bars["Coda"],                  1, 1, false, 1, "0x700293C4");
134 Valdacil-446
 
135 Valdacil-446
        self.skills["MelodyofBattle"]                   = SkillSlot(self.bars["Damage"],                1, 1, true, 6, "0x7000B697");
136 6 Kragenwar-3044
    self.skills["PiercingCry"]                          = SkillSlot(self.bars["Damage"],                2, 1, true, 2, "0x70003E7D");
137 127 Valdacil-446
    self.skills["CryoftheValar"]                        = SkillSlot(self.bars["Damage"],                3, 1, true, { 40, 74 }, { "0x70003184", "0x70029A04" });
138 Valdacil-446
    self.skills["CryoftheWizards"]                      = SkillSlot(self.bars["Damage"],                4, 1, self.settings.traits["CryoftheWizards"].active, 41, "0x70001270");
139 6 Kragenwar-3044
 
140 Kragenwar-3044
    self.skills["NobleCause"]                           = SkillSlot(self.bars["Melee"],                 1, 1, true, 14, "0x70003E84");
141 125 Valdacil-446
    self.skills["HeraldsStrike"]                        = SkillSlot(self.bars["Melee"],                 2, 1, true, { 1, 52 }, { "0x70003E7A", "0x70015A3D" });
142 6 Kragenwar-3044
 
143 127 Valdacil-446
    self.skills["CallofOrome"]                          = SkillSlot(self.bars["Calls"],                 1, 1, false, 10, "0x7000B69A");
144 Valdacil-446
    self.skills["CalloftheSecondAge"]           = SkillSlot(self.bars["Calls"],                 2, 1, false, 34, "0x7000B69B");
145 Valdacil-446
    self.skills["CalltoFate"]                           = SkillSlot(self.bars["Calls"],                 3, 1, false, 56, "0x7000F250");
146 Valdacil-446
 
147 Valdacil-446
        self.skills["RaisetheSpirit"]                   = SkillSlot(self.bars["Heals"],                 1, 1, true, 1, "0x70003E7B");
148 6 Kragenwar-3044
    self.skills["BolsterCourage"]                       = SkillSlot(self.bars["Heals"],                 2, 1, true, 16, "0x70003E85");
149 Kragenwar-3044
    self.skills["InspireFellows"]                       = SkillSlot(self.bars["Heals"],                 3, 1, true, 20, "0x70003E81");
150 Kragenwar-3044
    self.skills["TriumphantSpirit"]                     = SkillSlot(self.bars["Heals"],                 4, 1, true, 30, "0x70003E8C");
151 127 Valdacil-446
    self.skills["ChordofSalvation"]                     = SkillSlot(self.bars["Heals"],                 5, 1, true, { 38, 72 }, { "0x7000BC01", "0x70029888" });
152 6 Kragenwar-3044
    self.skills["SoliloquyofSpirit"]            = SkillSlot(self.bars["Heals"],                 6, 1, true, 60, "0x7000F1F4");
153 127 Valdacil-446
 
154 10 Kragenwar-3044
    self.skills["SongofRestoration"]            = SkillSlot(self.bars["Rez"],                   1, 1, true, { 18, 62 }, { "0x70003E86", "0x7000F25F" });
155 127 Valdacil-446
    self.skills["EnliveningGrace"]                      = SkillSlot(self.bars["Rez"],                   2, 1, true, { 14, 68 }, { "0x700031AD", "0x70029904" });
156 76 Valdacil-446
    self.skills["Rally"]                                        = SkillSlot(self.bars["Rez"],                   3, 1, self.settings.traits["Rally"].active, 41, "0x70001251");
157 127 Valdacil-446
 
158 Valdacil-446
        self.skills["InvocationofElbereth"]             = SkillSlot(self.bars["CrowdControl"],  1, 1, true, 12, "0x70003E82");
159 6 Kragenwar-3044
        self.skills["SongoftheDead"]                    = SkillSlot(self.bars["CrowdControl"],  2, 1, true, 16, "0x70003E87");
160 127 Valdacil-446
        self.skills["SongofDistraction"]                = SkillSlot(self.bars["CrowdControl"],  3, 1, true, { 34, 70 }, { "0x70003E8E", "0x70029905" });
161 6 Kragenwar-3044
 
162 84 Valdacil-446
    self.skills["CryoftheChorus"]                       = SkillSlot(self.bars["Silenced"],              1, 1, self.settings.features["AlwaysShowChorus"].active, { 26, 54 }, { "0x700031B2", "0x7000F260" });
163 127 Valdacil-446
 
164 Valdacil-446
    self.skills["StoryofCourage"]                       = SkillSlot(self.bars["Cure"],                  1, 1, true, { 26, 66} , { "0x70003E8B", "0x70029906" });
165 76 Valdacil-446
    self.skills["FellowshipsHeart"]                     = SkillSlot(self.bars["Cure"],                  2, 1, self.settings.traits["FellowshipsHeart"].active, 45, "0x70006CEB");
166 127 Valdacil-446
 
167 Valdacil-446
    self.skills["SongofSoothing"]                       = SkillSlot(self.bars["Dethreat"],              1, 1, true, 28, "0x700031B7");
168 Valdacil-446
    self.skills["StillasDeath"]                         = SkillSlot(self.bars["Dethreat"],              2, 1, true, 38, "0x70003E90");
169 Valdacil-446
 
170 Valdacil-446
    self.skills["SongofAid"]                            = SkillSlot(self.bars["Utility"],               1, 1, true, { 30, 66 }, { "0x7000318C", "0x7000318E" });
171 Valdacil-446
    self.skills["CalltotheFellowship"]          = SkillSlot(self.bars["Utility"],               2, 1, true, 46, "0x7000B69D");
172 Valdacil-446
    self.skills["GiftoftheHammerhand"]          = SkillSlot(self.bars["Utility"],               3, 1, true, 48, "0x7000B69E");
173 Valdacil-446
    self.skills["CalltoGreatness"]                      = SkillSlot(self.bars["Utility"],               4, 1, true, 50, "0x7000B69C");
174 Valdacil-446
    self.skills["SongoftheHopefulHeart"]        = SkillSlot(self.bars["Utility"],               5, 1, self.settings.traits["SongoftheHopefulHeart"].active, 41, "0x7000125F");
175 Valdacil-446
 
176 Valdacil-446
    self.skills["StoryoftheHammerhand"]         = SkillSlot(self.bars["DamageShield"],  1, 1, true, { 42, 64 }, { "0x70003E91", "0x70020DF9" });
177 Valdacil-446
 
178 Valdacil-446
 
179 Valdacil-446
        -- Build MultiSlots         SkillMultiSlot( parent:SkillBar, x:int, y:int, active:Boolean );
180 Valdacil-446
        -- multi:AddShortCut(name:String, level:int, hex:String);
181 Valdacil-446
        self.multi["StanceSlot"]                                = SkillMultiSlot(self.bars["Stance"], 1, 1, true);
182 Valdacil-446
        self.multi["StanceSlot"]:AddShortCut("Warspeech",                       10, "0x7000B699");
183 Valdacil-446
        self.multi["StanceSlot"]:AddShortCut("Harmony",                         22, "0x700293C8");
184 Valdacil-446
        self.multi["StanceSlot"]:LevelCheck();
185 Valdacil-446
        self.multi["StanceSlot"]:SetIndex(self.settings.defaults["DefaultStance"].selected);
186 Valdacil-446
 
187 6 Kragenwar-3044
        self.multi["TalesSlot"]                         = SkillMultiSlot(self.bars["Tales"], 1, 1, true);
188 Kragenwar-3044
        self.multi["TalesSlot"]:AddShortCut("TaleofHeroism",            22, "0x70003E89");
189 Kragenwar-3044
    self.multi["TalesSlot"]:AddShortCut("TaleofBattle",                 32, "0x7000B661");
190 Kragenwar-3044
    self.multi["TalesSlot"]:AddShortCut("TaleofWarding",                44, "0x7000B660");
191 Kragenwar-3044
    self.multi["TalesSlot"]:AddShortCut("TaleofFrostandFlame",  58, "0x7000F216");
192 76 Valdacil-446
    if (self.settings.traits["MasterofTales"].active) then self.multi["TalesSlot"]:AddShortCut("TaleofWardingandHeroism",               55, "0x7000F21B"); end
193 Valdacil-446
    if (self.settings.traits["MasterofTales"].active) then self.multi["TalesSlot"]:AddShortCut("TaleofFrostandFlamesBattle",    55, "0x7000F21C"); end
194 6 Kragenwar-3044
    self.multi["TalesSlot"]:LevelCheck();
195 76 Valdacil-446
        self.multi["TalesSlot"]:SetIndex(self.settings.defaults["PrimaryTale"].selected);
196 6 Kragenwar-3044
 
197 127 Valdacil-446
 
198 Valdacil-446
        -- Build Quickslots         ItemSlot( parent:SkillBar, x:int, y:int, active:Boolean, type:int, data:String );
199 Valdacil-446
        self.skills["LuteStrings"]                              = ItemSlot(self.bars["Consumables"],    1, 1, true, self.settings.quickslots["LuteStrings"]);
200 Valdacil-446
        self.skills["SheetMusic"]                               = ItemSlot(self.bars["Consumables"],    2, 1, true, self.settings.quickslots["SheetMusic"]);
201 Valdacil-446
 
202 Valdacil-446
 
203 48 Kragenwar-3044
        -- SET COMBAT STATES
204 6 Kragenwar-3044
        self.skills["SongofSoothing"]:SetCombat(true, false);
205 Kragenwar-3044
        self.skills["StillasDeath"]:SetCombat(true, false);
206 Kragenwar-3044
        self.skills["SongofRestoration"]:SetCombat(false, true);
207 Kragenwar-3044
        self.skills["EnliveningGrace"]:SetCombat(false, true);
208 34 Valdacil-446
        self.skills["SheetMusic"]:SetCombat(true, false);
209 127 Valdacil-446
        self.skills["MajorBallad"]:SetCombat(true, false);
210 48 Kragenwar-3044
 
211 Kragenwar-3044
        -- CLASS SPECIFIC SETUP/DEFAULT CODE
212 6 Kragenwar-3044
 
213 Kragenwar-3044
 
214 Kragenwar-3044
    -- EVENTS
215 Kragenwar-3044
 
216 Kragenwar-3044
        -- Stance Change Event
217 127 Valdacil-446
        -- AddCallback(vars.classattr, "StanceChanged", function(sender, args)
218 Valdacil-446
                -- KragenBars:StanceChange(vars.classattr:GetStance());
219 76 Valdacil-446
        -- end);
220 6 Kragenwar-3044
 
221 Kragenwar-3044
 
222 Kragenwar-3044
        -- INITIALIZE BARS
223 Kragenwar-3044
        self:InitBars();
224 Kragenwar-3044
        self:CombatChange(vars.player:IsInCombat());
225 76 Valdacil-446
        -- self:StanceChange(vars.classattr:GetStance());
226 6 Kragenwar-3044
 
227 Kragenwar-3044
end
228 Kragenwar-3044
 
229 Kragenwar-3044
 
230 Kragenwar-3044
-- ADD EFFECT EVENT
231 Kragenwar-3044
function MiniBars:AddEffect( effectIndex )
232 34 Valdacil-446
        local effect = vars.player:GetEffects():Get( effectIndex );
233 76 Valdacil-446
        local name = effect:GetName();
234 Valdacil-446
        local id = effect:GetID();
235 6 Kragenwar-3044
 
236 127 Valdacil-446
        if (name == self.effectlist["Warspeech"]:GetName()) then
237 Valdacil-446
        if (self.effectlist["Warspeech"]:SetState(true, id)) then
238 Valdacil-446
                        self.skills["CallofOrome"]:SetActive(true);
239 Valdacil-446
                        self.skills["CalloftheSecondAge"]:SetActive(true);
240 Valdacil-446
                        self.skills["CalltoFate"]:SetActive(true);
241 Valdacil-446
                        self.multi["StanceSlot"]:SetIndex(1);
242 Valdacil-446
                        self.skills["InspireFellows"]:SetActive(false);
243 Valdacil-446
                        self.skills["TriumphantSpirit"]:SetActive(false);
244 Valdacil-446
                        self.skills["FellowshipsHeart"]:SetActive(false);
245 Valdacil-446
                        self.skills["MajorBallad"]:SetCombat(true, true);
246 6 Kragenwar-3044
                end
247 127 Valdacil-446
 
248 Valdacil-446
        elseif (name == self.effectlist["Harmony"]:GetName()) then
249 Valdacil-446
        if (self.effectlist["Harmony"]:SetState(true, id)) then
250 Valdacil-446
                        self.multi["StanceSlot"]:SetIndex(2);
251 Valdacil-446
                        self.skills["MajorBallad"]:SetCombat(true, true);
252 6 Kragenwar-3044
                end
253 Kragenwar-3044
 
254 127 Valdacil-446
        elseif (name == self.effectlist["Silenced"]:GetName() and not self.settings.features["AlwaysShowChorus"].active) then
255 Valdacil-446
        if (self.effectlist["Silenced"]:SetState(true, id)) then
256 Valdacil-446
                        self.skills["CryoftheChorus"]:SetActive(true);
257 6 Kragenwar-3044
                end
258 127 Valdacil-446
 
259 Valdacil-446
        elseif (name == self.effectlist["TaleofHeroism"]:GetName() or name == self.effectlist["TaleofBattle"]:GetName() or name == self.effectlist["ImprovedTaleofBattle"]:GetName() or name == self.effectlist["TaleofWarding"]:GetName() or name == self.effectlist["ImprovedTaleofWarding"]:GetName() or name == self.effectlist["TaleofFrostandFlame"]:GetName() or name == self.effectlist["TaleofWardingandHeroism"]:GetName() or name == self.effectlist["TaleofFrostandFlamesBattle"]:GetName()) then
260 Valdacil-446
        if (self.effectlist["TaleofHeroism"]:SetState(true, id)) then
261 Valdacil-446
                        self.multi["TalesSlot"]:SetHover(true);
262 6 Kragenwar-3044
                end
263 127 Valdacil-446
 
264 Valdacil-446
        elseif (string.find(name, self.effectlist["LuteStrings"]:GetName()) ~= nil) then
265 Valdacil-446
        if (self.effectlist["LuteStrings"]:SetState(true, id)) then
266 Valdacil-446
                        self.skills["LuteStrings"]:SetActive(false);
267 Valdacil-446
                        self.skills["LuteStrings"]:SetHover(true);
268 Valdacil-446
                        self.skills["LuteStrings"]:StartTimer(effect:GetDuration() * .85, true);
269 6 Kragenwar-3044
                end
270 127 Valdacil-446
 
271 Valdacil-446
        elseif (name == self.effectlist["BalladDamageBonus"]:GetName() or name == self.effectlist["BalladPowerBonus"]:GetName() or name == self.effectlist["BalladHealingBonus"]:GetName()) then
272 Valdacil-446
        if (self.effectlist["BalladDamageBonus"]:SetState(true, id)) then
273 Valdacil-446
                        if (self.ballads < 3) then
274 Valdacil-446
                                self.ballads = self.ballads + 1;
275 Valdacil-446
                                if (self.ballads >= 3) then
276 Valdacil-446
                                        if (self.settings.defaults["ActiveAnthem"].selected == 3) then
277 Valdacil-446
                                                self.skills["AnthemofWar"]:SetActive(not self.effectlist["AnthemofWar"]:GetState());
278 Valdacil-446
                                                self.skills["AnthemoftheFreePeoples"]:SetActive(true);
279 Valdacil-446
                                                self.skills["AnthemofProwess"]:SetActive(true);
280 Valdacil-446
                                                self.skills["AnthemofCompassion"]:SetActive(true);
281 Valdacil-446
                                                self.skills["AnthemoftheThirdAge"]:SetActive(true);
282 Valdacil-446
                                                self.skills["AnthemofComposure"]:SetActive(true);
283 Valdacil-446
                                                self.skills["CodaofVigour"]:SetActive(true);
284 Valdacil-446
                                        else
285 Valdacil-446
                                                self.skills["AnthemofWar"]:SetActive(true);
286 Valdacil-446
                                                self.skills["AnthemoftheFreePeoples"]:SetActive(true);
287 Valdacil-446
                                                self.skills["AnthemofProwess"]:SetActive(true);
288 Valdacil-446
                                                self.skills["AnthemofCompassion"]:SetActive(true);
289 Valdacil-446
                                                self.skills["AnthemoftheThirdAge"]:SetActive(true);
290 Valdacil-446
                                                self.skills["AnthemofComposure"]:SetActive(true);
291 Valdacil-446
                                                self.skills["CodaofVigour"]:SetActive(true);
292 Valdacil-446
                                        end
293 Valdacil-446
                                end
294 80 Valdacil-446
                        end
295 6 Kragenwar-3044
                end
296 127 Valdacil-446
 
297 Valdacil-446
        elseif (name == self.effectlist["AnthemofWar"]:GetName()) then
298 Valdacil-446
        if (self.effectlist["AnthemofWar"]:SetState(true, id)) then
299 Valdacil-446
                        if (self.settings.defaults["ActiveAnthem"].selected == 2) then
300 Valdacil-446
                                self.skills["AnthemofWar"]:SetHover(true);
301 Valdacil-446
                        elseif (self.settings.defaults["ActiveAnthem"].selected == 3) then
302 Valdacil-446
                                self.skills["AnthemofWar"]:SetActive(false);
303 80 Valdacil-446
                        end
304 6 Kragenwar-3044
                end
305 127 Valdacil-446
 
306 Valdacil-446
        elseif (name == self.effectlist["AnthemoftheFreePeoples"]:GetName()) then
307 80 Valdacil-446
        if (self.effectlist["AnthemoftheFreePeoples"]:SetState(true, id)) then
308 127 Valdacil-446
                        if (self.settings.defaults["ActiveAnthem"].selected == 2) then
309 80 Valdacil-446
                                self.skills["AnthemoftheFreePeoples"]:SetHover(true);
310 127 Valdacil-446
                        elseif (self.settings.defaults["ActiveAnthem"].selected == 3) then
311 80 Valdacil-446
                                self.skills["AnthemoftheFreePeoples"]:SetActive(false);
312 Valdacil-446
                        end
313 6 Kragenwar-3044
                end
314 127 Valdacil-446
 
315 Valdacil-446
        elseif (name == self.effectlist["AnthemofProwess"]:GetName()) then
316 Valdacil-446
        if (self.effectlist["AnthemofProwess"]:SetState(true, id)) then
317 Valdacil-446
                        if (self.settings.defaults["ActiveAnthem"].selected == 2) then
318 Valdacil-446
                                self.skills["AnthemofProwess"]:SetHover(true);
319 Valdacil-446
                        elseif (self.settings.defaults["ActiveAnthem"].selected == 3) then
320 Valdacil-446
                                self.skills["AnthemofProwess"]:SetActive(false);
321 110 Valdacil-446
                        end
322 Valdacil-446
                end
323 Valdacil-446
 
324 127 Valdacil-446
        elseif (name == self.effectlist["AnthemofCompassion"]:GetName()) then
325 80 Valdacil-446
        if (self.effectlist["AnthemofCompassion"]:SetState(true, id)) then
326 127 Valdacil-446
                        if (self.settings.defaults["ActiveAnthem"].selected == 2) then
327 80 Valdacil-446
                                self.skills["AnthemofCompassion"]:SetHover(true);
328 127 Valdacil-446
                        elseif (self.settings.defaults["ActiveAnthem"].selected == 3) then
329 80 Valdacil-446
                                self.skills["AnthemofCompassion"]:SetActive(false);
330 Valdacil-446
                        end
331 6 Kragenwar-3044
                end
332 Kragenwar-3044
 
333 129 Valdacil-446
        elseif (name == self.effectlist["AnthemoftheThirdAge"]:GetName() or name == self.effectlist["AnthemoftheThirdAgeWS"]:GetName()) then
334 127 Valdacil-446
        if (self.effectlist["AnthemoftheThirdAge"]:SetState(true, id)) then
335 Valdacil-446
                        if (self.settings.defaults["ActiveAnthem"].selected == 2) then
336 Valdacil-446
                                self.skills["AnthemoftheThirdAge"]:SetHover(true);
337 Valdacil-446
                        elseif (self.settings.defaults["ActiveAnthem"].selected == 3) then
338 Valdacil-446
                                self.skills["AnthemoftheThirdAge"]:SetActive(false);
339 80 Valdacil-446
                        end
340 6 Kragenwar-3044
                end
341 127 Valdacil-446
 
342 Valdacil-446
        elseif (name == self.effectlist["AnthemofComposure"]:GetName()) then
343 Valdacil-446
        if (self.effectlist["AnthemofComposure"]:SetState(true, id)) then
344 Valdacil-446
                        if (self.settings.defaults["ActiveAnthem"].selected == 2) then
345 Valdacil-446
                                self.skills["AnthemofComposure"]:SetHover(true);
346 Valdacil-446
                        elseif (self.settings.defaults["ActiveAnthem"].selected == 3) then
347 Valdacil-446
                                self.skills["AnthemofComposure"]:SetActive(false);
348 80 Valdacil-446
                        end
349 6 Kragenwar-3044
                end
350 Kragenwar-3044
 
351 Kragenwar-3044
    end
352 Kragenwar-3044
end
353 Kragenwar-3044
 
354 Kragenwar-3044
 
355 Kragenwar-3044
-- REMOVE EFFECT EVENT
356 Kragenwar-3044
function MiniBars:RemoveEffect( effect )
357 76 Valdacil-446
        local name = effect:GetName();
358 Valdacil-446
        local id = effect:GetID();
359 6 Kragenwar-3044
 
360 127 Valdacil-446
        if (name == self.effectlist["Warspeech"]:GetName()) then
361 Valdacil-446
                if (not self.effectlist["Warspeech"]:SetState(false, id)) then
362 Valdacil-446
                        self.skills["CallofOrome"]:SetActive(false);
363 Valdacil-446
                        self.skills["CalloftheSecondAge"]:SetActive(false);
364 Valdacil-446
                        self.skills["CalltoFate"]:SetActive(false);
365 Valdacil-446
                        self.skills["InspireFellows"]:SetActive(true);
366 Valdacil-446
                        self.skills["TriumphantSpirit"]:SetActive(true);
367 Valdacil-446
                        self.skills["FellowshipsHeart"]:SetActive(self.settings.traits["FellowshipsHeart"].active);
368 Valdacil-446
                        self.skills["MajorBallad"]:SetCombat(true, false);
369 Valdacil-446
                        self.multi["StanceSlot"]:SetIndex(self.settings.defaults["DefaultStance"].selected);
370 80 Valdacil-446
                end
371 6 Kragenwar-3044
 
372 127 Valdacil-446
        elseif (name == self.effectlist["Harmony"]:GetName()) then
373 Valdacil-446
                if (not self.effectlist["Harmony"]:SetState(false, id)) then
374 Valdacil-446
                        self.skills["MajorBallad"]:SetCombat(true, false);
375 Valdacil-446
                        self.multi["StanceSlot"]:SetIndex(self.settings.defaults["DefaultStance"].selected);
376 80 Valdacil-446
                end
377 127 Valdacil-446
 
378 Valdacil-446
        elseif (name == self.effectlist["Silenced"]:GetName() and not self.settings.features["AlwaysShowChorus"].active) then
379 Valdacil-446
                if (not self.effectlist["Silenced"]:SetState(false, id)) then
380 Valdacil-446
                        self.skills["CryoftheChorus"]:SetState( false , false, id);
381 80 Valdacil-446
                end
382 6 Kragenwar-3044
 
383 127 Valdacil-446
        elseif (name == self.effectlist["TaleofHeroism"]:GetName() or name == self.effectlist["TaleofBattle"]:GetName() or name == self.effectlist["ImprovedTaleofBattle"]:GetName() or name == self.effectlist["TaleofWarding"]:GetName() or name == self.effectlist["ImprovedTaleofWarding"]:GetName() or name == self.effectlist["TaleofFrostandFlame"]:GetName() or name == self.effectlist["TaleofWardingandHeroism"]:GetName() or name == self.effectlist["TaleofFrostandFlamesBattle"]:GetName()) then
384 Valdacil-446
                if (not self.effectlist["TaleofHeroism"]:SetState(false, id)) then
385 Valdacil-446
                        self.multi["TalesSlot"]:SetHover(false);
386 80 Valdacil-446
                end
387 127 Valdacil-446
 
388 Valdacil-446
        elseif (string.find(name, self.effectlist["LuteStrings"]:GetName()) ~= nil) then
389 Valdacil-446
                if (not self.effectlist["LuteStrings"]:SetState(false, id)) then
390 Valdacil-446
                        self.skills["LuteStrings"]:SetActive(true);
391 Valdacil-446
                        self.skills["LuteStrings"]:SetHover(false);
392 80 Valdacil-446
                end
393 127 Valdacil-446
 
394 Valdacil-446
        elseif (name == self.effectlist["BalladDamageBonus"]:GetName() or name == self.effectlist["BalladPowerBonus"]:GetName() or name == self.effectlist["BalladHealingBonus"]:GetName()) then
395 Valdacil-446
        if (not self.effectlist["BalladDamageBonus"]:SetState(false, id)) then
396 Valdacil-446
                        self.ballads = 0;
397 Valdacil-446
                        if (self.ballads < 3) then
398 Valdacil-446
                                self.skills["AnthemofWar"]:SetActive(false);
399 Valdacil-446
                                self.skills["AnthemoftheFreePeoples"]:SetActive(false);
400 Valdacil-446
                                self.skills["AnthemofProwess"]:SetActive(false);
401 Valdacil-446
                                self.skills["AnthemofCompassion"]:SetActive(false);
402 Valdacil-446
                                self.skills["AnthemoftheThirdAge"]:SetActive(false);
403 Valdacil-446
                                self.skills["AnthemofComposure"]:SetActive(false);
404 Valdacil-446
                                self.skills["CodaofVigour"]:SetActive(false);
405 Valdacil-446
                        end
406 80 Valdacil-446
                end
407 127 Valdacil-446
 
408 Valdacil-446
        elseif (name == self.effectlist["AnthemofWar"]:GetName()) then
409 Valdacil-446
        if (not self.effectlist["AnthemofWar"]:SetState(false, id)) then
410 Valdacil-446
                        self.skills["AnthemofWar"]:SetHover(false);
411 Valdacil-446
                        if (self.ballads >= 3) then
412 Valdacil-446
                                self.skills["AnthemofWar"]:SetActive(true);
413 Valdacil-446
                        else
414 Valdacil-446
                                self.skills["AnthemofWar"]:SetActive(false);
415 Valdacil-446
                        end
416 80 Valdacil-446
                end
417 6 Kragenwar-3044
 
418 76 Valdacil-446
        elseif (name == self.effectlist["AnthemoftheFreePeoples"]:GetName()) then
419 127 Valdacil-446
        if (not self.effectlist["AnthemoftheFreePeoples"]:SetState(false, id)) then
420 80 Valdacil-446
                        self.skills["AnthemoftheFreePeoples"]:SetHover(false);
421 127 Valdacil-446
                        if (self.ballads >= 3) then
422 Valdacil-446
                                self.skills["AnthemoftheFreePeoples"]:SetActive(true);
423 Valdacil-446
                        else
424 Valdacil-446
                                self.skills["AnthemoftheFreePeoples"]:SetActive(false);
425 Valdacil-446
                        end
426 80 Valdacil-446
                end
427 6 Kragenwar-3044
 
428 127 Valdacil-446
        elseif (name == self.effectlist["AnthemofProwess"]:GetName()) then
429 Valdacil-446
        if (not self.effectlist["AnthemofProwess"]:SetState(false, id)) then
430 Valdacil-446
                        self.skills["AnthemofProwess"]:SetHover(false);
431 Valdacil-446
                        if (self.ballads >= 3) then
432 Valdacil-446
                                self.skills["AnthemofProwess"]:SetActive(true);
433 Valdacil-446
                        else
434 Valdacil-446
                                self.skills["AnthemofProwess"]:SetActive(false);
435 Valdacil-446
                        end
436 110 Valdacil-446
                end
437 Valdacil-446
 
438 76 Valdacil-446
        elseif (name == self.effectlist["AnthemofCompassion"]:GetName()) then
439 127 Valdacil-446
        if (not self.effectlist["AnthemofCompassion"]:SetState(false, id)) then
440 80 Valdacil-446
                        self.skills["AnthemofCompassion"]:SetHover(false);
441 127 Valdacil-446
                        if (self.ballads >= 3) then
442 Valdacil-446
                                self.skills["AnthemofCompassion"]:SetActive(true);
443 80 Valdacil-446
                        else
444 127 Valdacil-446
                                self.skills["AnthemofCompassion"]:SetActive(false);
445 80 Valdacil-446
                        end
446 6 Kragenwar-3044
                end
447 Kragenwar-3044
 
448 129 Valdacil-446
        elseif (name == self.effectlist["AnthemoftheThirdAge"]:GetName() or name == self.effectlist["AnthemoftheThirdAgeWS"]:GetName()) then
449 127 Valdacil-446
        if (not self.effectlist["AnthemoftheThirdAge"]:SetState(false, id)) then
450 Valdacil-446
                        self.skills["AnthemoftheThirdAge"]:SetHover(false);
451 Valdacil-446
                        if (self.ballads >= 3) then
452 Valdacil-446
                                self.skills["AnthemoftheThirdAge"]:SetActive(true);
453 80 Valdacil-446
                        else
454 127 Valdacil-446
                                self.skills["AnthemoftheThirdAge"]:SetActive(false);
455 80 Valdacil-446
                        end
456 6 Kragenwar-3044
                end
457 Kragenwar-3044
 
458 127 Valdacil-446
        elseif (name == self.effectlist["AnthemofComposure"]:GetName()) then
459 Valdacil-446
        if (not self.effectlist["AnthemofComposure"]:SetState(false, id)) then
460 Valdacil-446
                        self.skills["AnthemofComposure"]:SetHover(false);
461 Valdacil-446
                        if (self.ballads >= 3) then
462 Valdacil-446
                                self.skills["AnthemofComposure"]:SetActive(true);
463 80 Valdacil-446
                        else
464 127 Valdacil-446
                                self.skills["AnthemofComposure"]:SetActive(false);
465 80 Valdacil-446
                        end
466 6 Kragenwar-3044
                end
467 Kragenwar-3044
 
468 Kragenwar-3044
        end
469 Kragenwar-3044
end
470 Kragenwar-3044
 
471 Kragenwar-3044
 
472 Kragenwar-3044
function MiniBars:StanceChange(stance)
473 Kragenwar-3044
        -- Turbine.Shell.WriteLine("KragenBars: Stance Change: " ..vars.classattr:GetStance());
474 Kragenwar-3044
 
475 Kragenwar-3044
        -- if (stance == 1) then
476 Kragenwar-3044
                -- self.skills["CallofOrome"]:SetActive(true);
477 Kragenwar-3044
                -- self.skills["CalloftheSecondAge"]:SetActive(true);
478 Kragenwar-3044
                -- self.skills["CalltoFate"]:SetActive(true);
479 Kragenwar-3044
        -- else
480 Kragenwar-3044
                -- self.skills["CallofOrome"]:SetActive(false);
481 Kragenwar-3044
                -- self.skills["CalloftheSecondAge"]:SetActive(false);
482 Kragenwar-3044
                -- self.skills["CalltoFate"]:SetActive(false);
483 Kragenwar-3044
        -- end
484 Kragenwar-3044
 
485 Kragenwar-3044
end
486 Kragenwar-3044
 
487 Kragenwar-3044
 
488 Kragenwar-3044
function MiniBars:DefaultSettings()
489 76 Valdacil-446
        self.settings = { preconf = { }, userconf = { }, traits = { }, features = { }, defaults = { }, quickslots = { } };
490 6 Kragenwar-3044
 
491 127 Valdacil-446
        self.settings.userconf["Ballads"]               = { id = 1,     name = "Ballads",               defpos = {1,1},         size={3,1}, pos = {0,0}, combat = {true,true}, active = true };
492 Valdacil-446
        self.settings.userconf["Anthems1"]              = { id = 2,     name = "Anthems 1",             defpos = {1,2},         size={3,1}, pos = {0,0}, combat = {true,true}, active = true };
493 Valdacil-446
        self.settings.userconf["Anthems2"]              = { id = 3,     name = "Anthems 2",             defpos = {1,3},         size={3,1}, pos = {0,0}, combat = {true,true}, active = true };
494 Valdacil-446
        self.settings.userconf["Coda"]                  = { id = 4,     name = "Coda",                  defpos = {1,4},         size={1,1}, pos = {0,0}, combat = {true,true}, active = true };
495 Valdacil-446
        self.settings.userconf["Stance"]                = { id = 5,     name = "Stance",                defpos = {4,1},         size={1,1}, pos = {0,0}, combat = {true,true}, active = true };
496 76 Valdacil-446
        self.settings.userconf["Calls"]                 = { id = 6,     name = "Calls",                 defpos = {5,1},         size={3,1}, pos = {0,0}, combat = {true,true}, active = true };
497 127 Valdacil-446
        self.settings.userconf["Damage"]                = { id = 7,     name = "Damage",                defpos = {8,1},         size={4,1}, pos = {0,0}, combat = {true,true}, active = true };
498 Valdacil-446
        self.settings.userconf["Dethreat"]              = { id = 8,     name = "Dethreat",              defpos = {4,4},         size={2,1}, pos = {0,0}, combat = {true,true}, active = true };
499 76 Valdacil-446
        self.settings.userconf["Melee"]                 = { id = 9,     name = "Melee",                 defpos = {4,2},         size={2,1}, pos = {0,0}, combat = {true,true}, active = true };
500 Valdacil-446
        self.settings.userconf["Heals"]                 = { id = 10,    name = "Heals",                 defpos = {1,5},         size={6,1}, pos = {0,0}, combat = {true,true}, active = true };
501 Valdacil-446
        self.settings.userconf["Tales"]                 = { id = 11,    name = "Tales",                 defpos = {6,2},         size={1,1}, pos = {0,0}, combat = {true,true}, active = true };
502 127 Valdacil-446
        self.settings.userconf["Utility"]               = { id = 12,    name = "Utility",               defpos = {7,3},         size={5,1}, pos = {0,0}, combat = {true,true}, active = true };
503 76 Valdacil-446
        self.settings.userconf["Rez"]                   = { id = 13,    name = "Rez",                   defpos = {4,3},         size={3,1}, pos = {0,0}, combat = {true,true}, active = true };
504 Valdacil-446
        self.settings.userconf["CrowdControl"]  = { id = 14,    name = "Crowd Control", defpos = {8,2},         size={3,1}, pos = {0,0}, combat = {true,true}, active = true };
505 127 Valdacil-446
        self.settings.userconf["DamageShield"]  = { id = 15,    name = "DamageShield",  defpos = {6,4},         size={1,1}, pos = {0,0}, combat = {true,true}, active = true };
506 110 Valdacil-446
        self.settings.userconf["Silenced"]              = { id = 16,    name = "Silenced",              defpos = {7,4},         size={1,1}, pos = {0,0}, combat = {true,true}, active = true };
507 Valdacil-446
        self.settings.userconf["Cure"]                  = { id = 17,    name = "Cure",                  defpos = {8,4},         size={2,1}, pos = {0,0}, combat = {true,true}, active = true };
508 Valdacil-446
        self.settings.userconf["Consumables"]   = { id = 18,    name = "Consumables",   defpos = {10,4},        size={2,1}, pos = {0,0}, combat = {true,true}, active = true };
509 34 Valdacil-446
 
510 76 Valdacil-446
        self.settings.traits["SongoftheHopefulHeart"]   = { id = 1, name = "Song..Hopeful Heart", active = false };
511 Valdacil-446
        self.settings.traits["FellowshipsHeart"]                = { id = 2, name = "Fellowship's Heart", active = false };
512 Valdacil-446
        self.settings.traits["Rally"]                                   = { id = 3, name = "Rally", active = false };
513 127 Valdacil-446
        self.settings.traits["CryoftheWizards"]                 = { id = 4, name = "Cry of the Wizards", active = false };
514 76 Valdacil-446
        self.settings.traits["MasterofTales"]                   = { id = 5, name = "Master of Tales", active = false };
515 84 Valdacil-446
 
516 Valdacil-446
        self.settings.features["AlwaysShowChorus"]              = { id = 1, name = "Always Show Chorus", active = false };
517 76 Valdacil-446
 
518 Valdacil-446
        self.settings.defaults["PrimaryTale"]   = { id = 1, name = "Primary Tale", selected = 1, list = { "Tale of Heroism", "Tale of Battle", "Tale of Warding", "Tale of Frost and Flame", "Tale of Warding and Heroism", "Tale of Frost and Flame's Battle" } };
519 127 Valdacil-446
        self.settings.defaults["ActiveAnthem"]  = { id = 2, name = "Active Anthem Effect", selected = 1, list = { "None", "Dim", "Hide" } };
520 Valdacil-446
        self.settings.defaults["DefaultStance"] = { id = 3, name = "Default Stance", selected = 1, list = { "War-speech", "Harmony" } };
521 76 Valdacil-446
 
522 Valdacil-446
        self.settings.quickslots["LuteStrings"]         = {id = 1, name = "Lute Strings", active = false, type = 0, data = ""};
523 Valdacil-446
        self.settings.quickslots["SheetMusic"]          = {id = 2, name = "Sheet Music", active = false, type = 0, data = ""};
524 Valdacil-446
 
525 6 Kragenwar-3044
end
526 Kragenwar-3044
 
527 Kragenwar-3044
 
528 Kragenwar-3044
function MiniBars:UpdateSettings()
529 34 Valdacil-446
        if (settings.vers < 3.12) then
530 Valdacil-446
                self.settings["Consumables"] = { active = true, x = 0, y = 0, rotate = 0 };
531 Valdacil-446
 
532 Valdacil-446
                self.settings["Quickslots"] = { };
533 Valdacil-446
                self.settings["Quickslots"].lutestrings = { active = false, type = Turbine.UI.Lotro.ShortcutType.Undefined, data = "" };
534 Valdacil-446
                self.settings["Quickslots"].sheetmusic = { active = false, type = Turbine.UI.Lotro.ShortcutType.Undefined, data = "" };
535 Valdacil-446
        end
536 Valdacil-446
 
537 113 Kragenwar-3044
        if (settings.vers < 4.00) then
538 76 Valdacil-446
                local oldclassinfo = self.settings;
539 Valdacil-446
                self:DefaultSettings();
540 Valdacil-446
                for k,v in pairs(oldclassinfo) do
541 Valdacil-446
                        if (k ~= "Features" and k ~= "Quickslots") then
542 Valdacil-446
                                if (self.settings.preconf[k] == nil) then
543 Valdacil-446
                                        if (self.settings.userconf[k] ~= nil) then
544 Valdacil-446
                                                self.settings.userconf[k].pos = { v.x, v.y };
545 Valdacil-446
                                                self.settings.userconf[k].combat = { true, true };
546 Valdacil-446
                                                self.settings.userconf[k].active = v.active;
547 Valdacil-446
                                        end
548 Valdacil-446
                                else
549 Valdacil-446
                                        self.settings.preconf[k].pos = { v.x, v.y };
550 Valdacil-446
                                        self.settings.preconf[k].combat = { true, true };
551 Valdacil-446
                                        self.settings.preconf[k].active = v.active;
552 Valdacil-446
                                end
553 Valdacil-446
                        elseif (k == "Features") then
554 Valdacil-446
                                for key, value in pairs(v) do
555 Valdacil-446
                                        if (key == 'activeballad') then
556 Valdacil-446
                                                self.settings.defaults["ActiveBallad"].selected = value;
557 Valdacil-446
                                        elseif (key == 'wizards') then
558 Valdacil-446
                                                self.settings.traits["AnthemoftheWizards"].active = value;
559 Valdacil-446
                                        elseif (key == 'primarytale') then
560 Valdacil-446
                                                self.settings.defaults["PrimaryTale"].selected = value;
561 Valdacil-446
                                        elseif (key == 'mastertales') then
562 Valdacil-446
                                                self.settings.traits["MasterofTales"].active = value;
563 Valdacil-446
                                        elseif (key == 'hopefulheart') then
564 Valdacil-446
                                                self.settings.traits["SongoftheHopefulHeart"].active = value;
565 Valdacil-446
                                        elseif (key == 'rally') then
566 Valdacil-446
                                                self.settings.traits["Rally"].active = value;
567 Valdacil-446
                                        elseif (key == 'fellowshipsheart') then
568 Valdacil-446
                                                self.settings.traits["FellowshipsHeart"].active = value;
569 Valdacil-446
                                        end
570 Valdacil-446
                                end
571 Valdacil-446
                        elseif (k == "Quickslots") then
572 Valdacil-446
                                for key, value in pairs(v) do
573 Valdacil-446
                                        if (key == 'lutestrings') then
574 Valdacil-446
                                                self.settings.quickslots["LuteStrings"].active = value.active;
575 Valdacil-446
                                                self.settings.quickslots["LuteStrings"].type = value.type;
576 Valdacil-446
                                                self.settings.quickslots["LuteStrings"].data = value.data;
577 Valdacil-446
                                        elseif (key == 'sheetmusic') then
578 Valdacil-446
                                                self.settings.quickslots["SheetMusic"].active = value.active;
579 Valdacil-446
                                                self.settings.quickslots["SheetMusic"].type = value.type;
580 Valdacil-446
                                                self.settings.quickslots["SheetMusic"].data = value.data;
581 Valdacil-446
                                        end
582 Valdacil-446
                                end
583 Valdacil-446
                        end
584 Valdacil-446
                end
585 6 Kragenwar-3044
        end
586 34 Valdacil-446
 
587 84 Valdacil-446
        if (self.settings.features["AlwaysShowChorus"] == nil) then
588 Valdacil-446
                self.settings.features["AlwaysShowChorus"] = { id = 1, name = "Always Show Chorus", active = false };
589 Valdacil-446
        end
590 Valdacil-446
 
591 110 Valdacil-446
        if (settings.vers < 4.10) then
592 Valdacil-446
                settings.skilldata["AnthemoftheThirdAge"] = {parent = nil, pos = {1,1}};
593 Valdacil-446
                settings.skilldata["BalladofComposure"] = {parent = settings.skilldata["BalladofUnshakeableWill"].parent, pos = {settings.skilldata["BalladofUnshakeableWill"].pos[1],settings.skilldata["BalladofUnshakeableWill"].pos[2]}};
594 Valdacil-446
                settings.skilldata["BalladofUnshakeableWill"] = nil;
595 Valdacil-446
        end
596 84 Valdacil-446
 
597 125 Valdacil-446
        if (settings.vers < 4.20) then
598 Valdacil-446
                self.settings.defaults["BoCEffect"]     = { id = 3, name = "BoComp Trigger Effect", selected = 1, list = { "Fear Resistance", "Ranged Damage" } };
599 Valdacil-446
                self.settings.defaults["BoFEffect"]     = { id = 4, name = "BoFlame Trigger Effect", selected = 1, list = { "Fire Mitigation", "Tactical Damage" } };
600 Valdacil-446
        end
601 Valdacil-446
 
602 127 Valdacil-446
        if (settings.vers < 5.00) then
603 Valdacil-446
                local oldclassinfo = self.settings;
604 Valdacil-446
                local oldskillinfo = settings.skilldata;
605 Valdacil-446
                local oldcustominfo = settings.customslots;
606 Valdacil-446
                self:DefaultSettings();
607 Valdacil-446
                for k,v in pairs(oldclassinfo) do
608 Valdacil-446
                        if (k == "userconf") then
609 Valdacil-446
                                for key, value in pairs(v) do
610 Valdacil-446
                                        if (self.settings.userconf[key] ~= nil) then
611 Valdacil-446
                                                self.settings.userconf[key].combat = { value.combat[1], value.combat[2] };
612 Valdacil-446
                                                self.settings.userconf[key].size = { value.size[1], value.size[2] };
613 Valdacil-446
                                                self.settings.userconf[key].active = value.active;
614 Valdacil-446
                                                self.settings.userconf[key].pos = { value.pos[1], value.pos[2] };
615 Valdacil-446
                                                if (key == "Damage" and value.size[2] < 4) then
616 Valdacil-446
                                                        self.settings.userconf[key].size = { 4, value.size[2] };
617 Valdacil-446
                                                else
618 Valdacil-446
                                                        self.settings.userconf[key].size = { value.size[1], value.size[2] };
619 Valdacil-446
                                                end
620 Valdacil-446
                                        elseif (key == "BalladsT1") then
621 Valdacil-446
                                                self.settings.userconf["Ballads"].size = { value.size[1], value.size[2] };
622 Valdacil-446
                                                self.settings.userconf["Ballads"].pos = { value.pos[1], value.pos[2] };
623 Valdacil-446
                                                self.settings.userconf["Ballads"].combat = { value.combat[1], value.combat[2] };
624 Valdacil-446
                                                self.settings.userconf["Ballads"].active = value.active;
625 Valdacil-446
                                        elseif (key == "BalladsT2") then
626 Valdacil-446
                                                self.settings.userconf["Anthems1"].size = { value.size[1], value.size[2] };
627 Valdacil-446
                                                self.settings.userconf["Anthems1"].pos = { value.pos[1], value.pos[2] };
628 Valdacil-446
                                                self.settings.userconf["Anthems1"].combat = { value.combat[1], value.combat[2] };
629 Valdacil-446
                                                self.settings.userconf["Anthems1"].active = value.active;
630 Valdacil-446
                                        elseif (key == "BalladsT3") then
631 Valdacil-446
                                                self.settings.userconf["Anthems2"].size = { value.size[1], value.size[2] };
632 Valdacil-446
                                                self.settings.userconf["Anthems2"].pos = { value.pos[1], value.pos[2] };
633 Valdacil-446
                                                self.settings.userconf["Anthems2"].combat = { value.combat[1], value.combat[2] };
634 Valdacil-446
                                                self.settings.userconf["Anthems2"].active = value.active;
635 Valdacil-446
                                        elseif (key == "Anthems") then
636 Valdacil-446
                                                self.settings.userconf["Coda"].size = { value.size[1], value.size[2] };
637 Valdacil-446
                                                self.settings.userconf["Coda"].pos = { value.pos[1], value.pos[2] };
638 Valdacil-446
                                                self.settings.userconf["Coda"].combat = { value.combat[1], value.combat[2] };
639 Valdacil-446
                                                self.settings.userconf["Coda"].active = value.active;
640 Valdacil-446
                                        elseif (key == "Warspeech") then
641 Valdacil-446
                                                self.settings.userconf["Stance"].size = { value.size[1], value.size[2] };
642 Valdacil-446
                                                self.settings.userconf["Stance"].pos = { value.pos[1], value.pos[2] };
643 Valdacil-446
                                                self.settings.userconf["Stance"].combat = { value.combat[1], value.combat[2] };
644 Valdacil-446
                                                self.settings.userconf["Stance"].active = value.active;
645 Valdacil-446
                                        elseif (key == "PowerShield") then
646 Valdacil-446
                                                self.settings.userconf["DamageShield"].size = { value.size[1], value.size[2] };
647 Valdacil-446
                                                self.settings.userconf["DamageShield"].pos = { value.pos[1], value.pos[2] };
648 Valdacil-446
                                                self.settings.userconf["DamageShield"].combat = { value.combat[1], value.combat[2] };
649 Valdacil-446
                                                self.settings.userconf["DamageShield"].active = value.active;
650 Valdacil-446
                                        else
651 Valdacil-446
                                                self.settings.userconf[key] = { id = value.id, name = value.name, defpos = value.defpos, size = value.size, pos = value.pos , combat = value.combat , active = value.active };
652 Valdacil-446
                                        end
653 Valdacil-446
                                end
654 Valdacil-446
                        elseif (k == "traits") then
655 Valdacil-446
                                for key, value in pairs(v) do
656 Valdacil-446
                                        if (key == "AnthemoftheWizards") then
657 Valdacil-446
                                                self.settings.traits["CryoftheWizards"].active = value.active;
658 Valdacil-446
                                        else
659 Valdacil-446
                                                self.settings.traits[key].active = value.active;
660 Valdacil-446
                                        end
661 Valdacil-446
                                end
662 Valdacil-446
                        elseif (k == "features") then
663 Valdacil-446
                                for key, value in pairs(v) do
664 Valdacil-446
                                        self.settings.features[key].active = value.active;
665 Valdacil-446
                                end
666 Valdacil-446
                        elseif (k == "defaults") then
667 Valdacil-446
                                for key, value in pairs(v) do
668 Valdacil-446
                                        if (key == "PrimaryTale") then
669 Valdacil-446
                                                self.settings.defaults[key].selected = value.selected;
670 Valdacil-446
                                        end
671 Valdacil-446
                                end
672 Valdacil-446
                        elseif (k == "quickslots") then
673 Valdacil-446
                                for key, value in pairs(v) do
674 Valdacil-446
                                        self.settings.quickslots[key].active = value.active;
675 Valdacil-446
                                        self.settings.quickslots[key].type = value.type;
676 Valdacil-446
                                        self.settings.quickslots[key].data = value.data;
677 Valdacil-446
                                end
678 Valdacil-446
                        end
679 Valdacil-446
                end
680 Valdacil-446
                settings.skilldata = { };
681 Valdacil-446
                settings.skilldata["CodaofVigour"] = { parent = "Coda", pos = {1,1} };
682 Valdacil-446
                for k,v in pairs(oldskillinfo) do
683 Valdacil-446
                        if (k ~= "BalladofBalance" and k ~= "BalladoftheStout" and k ~= "BalladofFlame") then
684 Valdacil-446
                                if (k == "BalladofResonance") then
685 Valdacil-446
                                        if (self.settings.userconf[v.parent] ~= nil) then
686 Valdacil-446
                                                settings.skilldata["MinorBallad"] = { parent = v.parent, pos = { v.pos[1], v.pos[2] } };
687 Valdacil-446
                                        else
688 Valdacil-446
                                                settings.skilldata["MinorBallad"] = { parent = "Ballads", pos = { 1,1 } };
689 Valdacil-446
                                        end
690 Valdacil-446
                                elseif (k == "BalladofVigour") then
691 Valdacil-446
                                        if (self.settings.userconf[v.parent] ~= nil) then
692 Valdacil-446
                                                settings.skilldata["MajorBallad"] = { parent = v.parent, pos = { v.pos[1], v.pos[2] } };
693 Valdacil-446
                                        else
694 Valdacil-446
                                                settings.skilldata["MajorBallad"] = { parent = "Ballads", pos = { 2,1 } };
695 Valdacil-446
                                        end
696 Valdacil-446
                                elseif (k == "BalladofSteel") then
697 Valdacil-446
                                        if (self.settings.userconf[v.parent] ~= nil) then
698 Valdacil-446
                                                settings.skilldata["PerfectBallad"] = { parent = v.parent, pos = { v.pos[1], v.pos[2] } };
699 Valdacil-446
                                        else
700 Valdacil-446
                                                settings.skilldata["PerfectBallad"] = { parent = "Ballads", pos = { 3,1 } };
701 Valdacil-446
                                        end
702 Valdacil-446
                                elseif (k == "BalladofWar") then
703 Valdacil-446
                                        if (self.settings.userconf[v.parent] ~= nil) then
704 Valdacil-446
                                                settings.skilldata["AnthemofWar"] = { parent = v.parent, pos = { v.pos[1], v.pos[2] } };
705 Valdacil-446
                                        else
706 Valdacil-446
                                                settings.skilldata["AnthemofWar"] = { parent = "Anthems1", pos = { 1,1 } };
707 Valdacil-446
                                        end
708 Valdacil-446
                                elseif (k == "EchoesofBattle") then
709 Valdacil-446
                                        if (self.settings.userconf[v.parent] ~= nil) then
710 Valdacil-446
                                                settings.skilldata["MelodyofBattle"] = { parent = v.parent, pos = { v.pos[1], v.pos[2] } };
711 Valdacil-446
                                        else
712 Valdacil-446
                                                settings.skilldata["MelodyofBattle"] = { parent = "Damage", pos = { 1,1 } };
713 Valdacil-446
                                        end
714 Valdacil-446
                                elseif (k == "CryoftheValar") then
715 Valdacil-446
                                        if (self.settings.userconf[v.parent] ~= nil) then
716 Valdacil-446
                                                settings.skilldata["InvocationofElbereth"] = { parent = v.parent, pos = { v.pos[1], v.pos[2] } };
717 Valdacil-446
                                        else
718 Valdacil-446
                                                settings.skilldata["InvocationofElbereth"] = { parent = "CrowdControl", pos = { 1,1 } };
719 Valdacil-446
                                        end
720 Valdacil-446
                                elseif (k == "BalladofSwiftness") then
721 Valdacil-446
                                        if (self.settings.userconf[v.parent] ~= nil) then
722 Valdacil-446
                                                settings.skilldata["AnthemofProwess"] = { parent = v.parent, pos = { v.pos[1], v.pos[2] } };
723 Valdacil-446
                                        else
724 Valdacil-446
                                                settings.skilldata["AnthemofProwess"] = { parent = "Anthems1", pos = { 3,1 } };
725 Valdacil-446
                                        end
726 Valdacil-446
                                elseif (k == "CureFear") then
727 Valdacil-446
                                        if (self.settings.userconf[v.parent] ~= nil) then
728 Valdacil-446
                                                settings.skilldata["StoryofCourage"] = { parent = v.parent, pos = { v.pos[1], v.pos[2] } };
729 Valdacil-446
                                        else
730 Valdacil-446
                                                settings.skilldata["StoryofCourage"] = { parent = "Cure", pos = { 1,1 } };
731 Valdacil-446
                                        end
732 Valdacil-446
                                elseif (k == "BalladofComposure") then
733 Valdacil-446
                                        if (self.settings.userconf[v.parent] ~= nil) then
734 Valdacil-446
                                                settings.skilldata["AnthemofComposure"] = { parent = v.parent, pos = { v.pos[1], v.pos[2] } };
735 Valdacil-446
                                        else
736 Valdacil-446
                                                settings.skilldata["AnthemofComposure"] = { parent = "Anthems2", pos = { 3,1 } };
737 Valdacil-446
                                        end
738 Valdacil-446
                                elseif (k == "AnthemoftheValar") then
739 Valdacil-446
                                        if (self.settings.userconf[v.parent] ~= nil) then
740 Valdacil-446
                                                settings.skilldata["CryoftheValar"] = { parent = v.parent, pos = { v.pos[1], v.pos[2] } };
741 Valdacil-446
                                        else
742 Valdacil-446
                                                settings.skilldata["CryoftheValar"] = { parent = "Damage", pos = { 3,1 } };
743 Valdacil-446
                                        end
744 Valdacil-446
                                elseif (k == "LayoftheHammerhand") then
745 Valdacil-446
                                        if (self.settings.userconf[v.parent] ~= nil) then
746 Valdacil-446
                                                settings.skilldata["StoryoftheHammerhand"] = { parent = v.parent, pos = { v.pos[1], v.pos[2] } };
747 Valdacil-446
                                        else
748 Valdacil-446
                                                settings.skilldata["StoryoftheHammerhand"] = { parent = "DamageShield", pos = { 1,1 } };
749 Valdacil-446
                                        end
750 Valdacil-446
                                elseif (k == "AnthemoftheWizards") then
751 Valdacil-446
                                        if (self.settings.userconf[v.parent] ~= nil) then
752 Valdacil-446
                                                settings.skilldata["CryoftheValar"] = { parent = v.parent, pos = { v.pos[1], v.pos[2] } };
753 Valdacil-446
                                        else
754 Valdacil-446
                                                settings.skilldata["CryoftheValar"] = { parent = "Damage", pos = { 4,1 } };
755 Valdacil-446
                                        end
756 Valdacil-446
                                elseif (k == "AnthemoftheFreePeoples") then
757 Valdacil-446
                                        if (self.settings.userconf[v.parent] ~= nil) then
758 Valdacil-446
                                                settings.skilldata["AnthemoftheFreePeoples"] = { parent = v.parent, pos = { v.pos[1], v.pos[2] } };
759 Valdacil-446
                                        else
760 Valdacil-446
                                                settings.skilldata["AnthemoftheFreePeoples"] = { parent = "Anthems1", pos = { 2,1 } };
761 Valdacil-446
                                        end
762 Valdacil-446
                                elseif (k == "AnthemofCompassion") then
763 Valdacil-446
                                        if (self.settings.userconf[v.parent] ~= nil) then
764 Valdacil-446
                                                settings.skilldata["AnthemofCompassion"] = { parent = v.parent, pos = { v.pos[1], v.pos[2] } };
765 Valdacil-446
                                        else
766 Valdacil-446
                                                settings.skilldata["AnthemofCompassion"] = { parent = "Anthems2", pos = { 1,1 } };
767 Valdacil-446
                                        end
768 Valdacil-446
                                elseif (k == "AnthemoftheThirdAge") then
769 Valdacil-446
                                        if (self.settings.userconf[v.parent] ~= nil) then
770 Valdacil-446
                                                settings.skilldata["AnthemoftheThirdAge"] = { parent = v.parent, pos = { v.pos[1], v.pos[2] } };
771 Valdacil-446
                                        else
772 Valdacil-446
                                                settings.skilldata["AnthemoftheThirdAge"] = { parent = "Anthems2", pos = { 2,1 } };
773 Valdacil-446
                                        end
774 Valdacil-446
                                elseif (k ~= "Warspeech") then
775 Valdacil-446
                                        settings.skilldata[k] = { parent = v.parent, pos = { v.pos[1], v.pos[2] } };
776 Valdacil-446
                                end
777 Valdacil-446
                        end
778 Valdacil-446
                end
779 Valdacil-446
                settings.customslots = { };
780 Valdacil-446
                for k,v in pairs(oldcustominfo) do
781 Valdacil-446
                        if (self.settings.userconf[v.parent] ~= nil) then
782 Valdacil-446
                                settings.customslots[k] = { x = v.x, y = v.y, parent = v.parent, data = v.data, type = v.type };
783 Valdacil-446
                        end
784 Valdacil-446
                end
785 Valdacil-446
        end
786 Valdacil-446
 
787 76 Valdacil-446
        settings.vers = vars.vers;
788 34 Valdacil-446
 
789 6 Kragenwar-3044
end
790 Kragenwar-3044
 
791 Kragenwar-3044
 
792 Kragenwar-3044
function MiniBars:Refresh()
793 Kragenwar-3044
 
794 Kragenwar-3044
        -- GENERIC REFRESH (Required for all classes)
795 Kragenwar-3044
        self:RefreshBars();
796 49 Kragenwar-3044
 
797 Kragenwar-3044
        -- REDEFINE EFFECTLIST IN CASE OF LANGUAGE CHANGE
798 48 Kragenwar-3044
        self.DefineEffectList();
799 6 Kragenwar-3044
 
800 Kragenwar-3044
    -- CLASS SPECIFIC REFRESH
801 Kragenwar-3044
    -- Setup Features
802 127 Valdacil-446
        self.skills["CryoftheWizards"]:SetActive(self.settings.traits["CryoftheWizards"].active);
803 76 Valdacil-446
        self.skills["SongoftheHopefulHeart"]:SetActive(self.settings.traits["SongoftheHopefulHeart"].active);
804 Valdacil-446
        self.skills["Rally"]:SetActive(self.settings.traits["Rally"].active);
805 Valdacil-446
        self.skills["FellowshipsHeart"]:SetActive(self.settings.traits["FellowshipsHeart"].active);
806 34 Valdacil-446
 
807 84 Valdacil-446
        self.skills["CryoftheChorus"]:SetActive(self.settings.features["AlwaysShowChorus"].active or self.effectlist["Silenced"]:GetState());
808 Valdacil-446
 
809 76 Valdacil-446
        self.skills["LuteStrings"]:SetQuickslot(self.settings.quickslots["LuteStrings"]);
810 Valdacil-446
        self.skills["SheetMusic"]:SetQuickslot(self.settings.quickslots["SheetMusic"]);
811 6 Kragenwar-3044
 
812 Kragenwar-3044
        -- Build Multi Slots
813 127 Valdacil-446
        self.multi["StanceSlot"]:Clear();
814 Valdacil-446
        self.multi["StanceSlot"]:AddShortCut("Warspeech",                       10, "0x7000B699");
815 Valdacil-446
        self.multi["StanceSlot"]:AddShortCut("Harmony",                         22, "0x700293C8");
816 Valdacil-446
        self.multi["StanceSlot"]:LevelCheck();
817 Valdacil-446
        if (self.effectlist["Warspeech"]:GetState()) then
818 Valdacil-446
                self.multi["StanceSlot"]:SetIndex(1);
819 Valdacil-446
        elseif (self.effectlist["Harmony"]:GetState()) then
820 Valdacil-446
                self.multi["StanceSlot"]:SetIndex(2);
821 Valdacil-446
        else
822 Valdacil-446
                self.multi["StanceSlot"]:SetIndex(self.settings.defaults["DefaultStance"].selected);
823 Valdacil-446
        end
824 Valdacil-446
 
825 6 Kragenwar-3044
        self.multi["TalesSlot"]:Clear();
826 Kragenwar-3044
        self.multi["TalesSlot"]:AddShortCut("TaleofHeroism",            22, "0x70003E89");
827 Kragenwar-3044
    self.multi["TalesSlot"]:AddShortCut("TaleofBattle",                 32, "0x7000B661");
828 Kragenwar-3044
    self.multi["TalesSlot"]:AddShortCut("TaleofWarding",                44, "0x7000B660");
829 Kragenwar-3044
    self.multi["TalesSlot"]:AddShortCut("TaleofFrostandFlame",  58, "0x7000F216");
830 76 Valdacil-446
    if (self.settings.traits["MasterofTales"].active) then self.multi["TalesSlot"]:AddShortCut("TaleofWardingandHeroism",               55, "0x7000F21B"); end
831 Valdacil-446
    if (self.settings.traits["MasterofTales"].active) then self.multi["TalesSlot"]:AddShortCut("TaleofFrostandFlamesBattle",    55, "0x7000F21C"); end
832 6 Kragenwar-3044
    self.multi["TalesSlot"]:LevelCheck();
833 76 Valdacil-446
        self.multi["TalesSlot"]:SetIndex(self.settings.defaults["PrimaryTale"].selected);
834 84 Valdacil-446
        if (self.effectlist["TaleofHeroism"]:GetState()) then
835 6 Kragenwar-3044
                self.multi["TalesSlot"]:SetHover(true);
836 Kragenwar-3044
        end
837 127 Valdacil-446
 
838 6 Kragenwar-3044
    -- Refresh States
839 Kragenwar-3044
    self:CombatChange(vars.player:IsInCombat());
840 76 Valdacil-446
        -- self:StanceChange(vars.classattr:GetStance());
841 6 Kragenwar-3044
 
842 Kragenwar-3044
end

All times are GMT -5. The time now is 08:11 PM.


Our Network
EQInterface | EQ2Interface | Minion | WoWInterface | ESOUI | LoTROInterface | MMOUI | Swtorui