vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 --[[
2 Flex Bar
3 Author: Sean Kennedy (Based initially on Telo's sidebar)
4 Version: 1.406: 08/25/2005
5  
6 Last Modified:
7 08/25/2005
8 1. Fixed the Moving Buttons Issue (this includes related mouseenter, mouseleave,
9 and movetomouse issues) - Sherkhan
10 2. Added a 3rd Text field, [ text3, shadetext3, justifytext3] - Sherkhan
11 3. Added a Key Binding to show button information, specifically: ID, Remap ID, and Group ID
12 1st Press - shows the information. 2nd press - Restores previous button information.
13 Limitation: This functionality does not change text justification or color for the text fields - Sherkhan
14 4. Merge the changes for: Getting PlayerMiss to work for special attacks by Aranarth. - Sherkhan
15 5. Fixed a typo bug in the conditional for 'scaled' - Sherkhan
16 6. Added more internal code to prevent Money line deletion in the tooltips - Sherkhan
17 7. Added a little more checking to skip code if a button is hidden - Sherkhan
18 06/11/2005
19 1. Added the "Raid Safe" option to global options. This will keep events for health/mana/buffs
20 from firing for raid members or their pets.
21 2. Fixed bug with pet check code.
22 06/10/2005
23 1. Fixed "mouseovepetr" bug, and a bug with raidpet > 9
24 2. Fixed a checktextsub call in UNIT_MANA and UNIT_HEALTH that was causing
25 stutter in raids.
26 3. Fixed error when mousing over a settextured button
27 4. Fixed error when entering game already grouped.
28 06/08/2005
29 1. REALLY fixed bug in targettarget code.
30 06/07/2005
31 1. Fixed bug in targettarget code.
32 06/07/2005
33 1. Reinstated WoW Client 1.5+ functionality
34 2. Updated TOC for WoW version 1.5
35 06/01/2005
36 1. Changed text shading to hopefully fix flickering range text.
37 05/22/2005
38 1. Completely seperated ACTIONBAR_UPDATE_USABLE, ACTIONBAR_UPDATE_COOLDOWN,
39 UPDATE_INVENTORY_ALERTS into seperate code blocks. Changed the way UPDATE_COOLDOWN
40 detects whether it should call UpdateCooldown.
41 2. Implemented pet buttons.
42 3. Added an Auto-Item check to UPDATE_INVENTORY_ALERTS, MERCHANT_UPDATE, MERCHANT_CLOSED
43 4. Added <unitcode><gain | lose><buff | debuff | debufftype> events.
44 5. Added UnitClass<> conditional
45 6. Added PartyDebufftype conditional
46 7. Changed itembuffs to raise the last item enchantment in the list as its target.
47 8. Fixed text2 not being saved properly
48 05/18/2005
49 1. Move ACTIONBAR_UPDATE_USABLE out of the code block with ACTIONBAR_UPDATE_COOLDOWN
50 so the frame stuttering fix for spells being interrupted doesn't break the cooldown spinner.
51 2. Added a delayed call to FB_ReformGroups() as a temporary workaround to MouseLeaveGroup bug
52 05/17/2005
53 1. Changed Target events - now fired off PLAYER_TARGET_CHANGED.
54 Will now fire lose target then gain target when you switch targets. TargetReactionChanged is no more
55 just use gain target.
56 2. Added TargetGainTarget, TargetLostTarget and TargetChangedTarget events. NOTE: There are limitations.
57 While there are events for player's changing targets, there are no events for targettarget. If the target
58 changes between two units of the same type with the same name (IE if you have your tank targetted and he
59 switches between 1 riverpaw brute and another riverpaw brute) TargetChangedTarget will not fire, it
60 can't detect it.
61 3. Changed GainPet/LosePet to not be polled. Added the CreatureFamilyType as the target of GainPet (IE
62 imp when an imp is summoned). The drop down list in the Event Editor will be populated with the available
63 targets as you summon/tame different types. This event always fires if the pet events is set to low or high.
64 4. Added PetSummoned and PetDismissed events - these events have targets of the pet unitcode (IE: pet,
65 partypet1-partypet4, raidpet1-raidpet40). Setting the pet performance option to low will cause these to
66 only fire for pet unit codes you have in your event list.
67 05/10/2005
68 1. Added another check to CreateQuickDispatch to not error on non-standard events
69 2. Reverted some xml to try and fix cooldownspinner/count/hud bug
70 3. Added UnitCreatureType<[<unitcode> "creaturetype" ]> conditional - Thanks Stove.
71 5. Shift+Click on EDT in the event editor will create a new copy of that event at the
72 bottom of the list to edit.
73 6. Right Clicking an entry in the scripts menu will auto-matically load it.
74 7. Fixed target lists in EE for UnitDebuff and UnitDebufftype.
75 8. Added ability to escape single quotes inside a string with the \
76 IE: Runmacro Macro='/echo Dhargo\'s Test' will output Dhargo's Test.
77 use this for things like 'Hunter\'s Mark' and the like.
78 Known Issues that are unresolved:
79 MouseLeaveGroup occasionally not working. I can't reproduce this one. Please
80 turn on Safe load in global options and see if this helps.
81 Text Color flickering when out of range - reproduced once, but not long enough to
82 track down.
83 05/07/2005
84 1. Fixed bug with /flexbar commands not working in runmacro off events.
85 If anything ever breaks in runmacro on events - see the beginning of
86 FB_Execute_MultilineMacro
87 2. Fixed issue with Editing events where multi word targets were being munged.
88 3. Increased text length for textboxes in event editor.
89 4. Fixed CheckAllBuffs - it was raising GainBuff before the stored buffs were
90 updated with any lost buffs. It now raises all gain/lose buff/debuff/debufftypes
91 at the end. This may fix other problems reported with these as well.
92 5. Fixed issue with flexactions and hidegrid.
93 6. Excluded "player" from target list for Unitbuff/debuff/debufftype.
94 7. Added Drop Down Items option to Global Options - specifies how long the dropdown
95 menus in the Event Editor should be.
96 8. Modified drop down menus to scroll whole pages.
97 9. Modified UnitDebufftype to raise if the number of a specifice debuff type increased or decreased.
98 10. Fixed GainDebufftype/UnitDebufftype to not raise on in-curables.
99 11. Fixed the conditional parser for not and or.
100 12. Made HasBuff/Debuff/Debufftype and UnitBuff/Debuff/Debufftype conditionals case insensitive.
101 13. Added check to PLAYER_ENTERING_WORLD - don't load profile if it's already loaded.
102 14.
103 05/05/2005
104 1. Fixed UnitDebufftype to be raised correctly (it was accidentally working for
105 debuffs going on, but not for them going off).
106 2. The conditions UnitBuff/UnitDebuff/UnitDebufftype will now be accurate when
107 called from any of UnitBuff/UnitDebuff/UnitDebufftype events.
108 3. Fixed isusable, enoughmana, inrange, cooldownmet conditions - they were expecting
109 a button ID not button # and the old way was Button # (as it is in the docs).
110 05/05/2005
111 1. Changed CheckAllBuffs to only raise one UnitBuff, UnitDebuff, UnitDebufftype event
112 no matter how many buffs changed (to take care of occurences like changing targets
113 where it could be raise many times)
114 2. Fixed code with advanced buttons not firing from hotkey clicks
115 3. Fixed in= on events. Was broken by code to reuse existing tables rather than create new ones.
116 4. Fixed Gain/Lose Debufftype and UnitDebuffType checking.
117 5. CHANGED UnitDebuffTypes Conditional to UnitDebuffType ( for consistency )
118 6. Fixed UnitDebuffType description/example in docs.
119 7. Changed loadprofile timer to PLAYER_ENTERING_WORLD event to try and avoid
120 incorrect group bounds set.
121 8. Changed ResetAll to get rid of any old (pre 1.32) profiles saved under the character name
122 only - as they were being reloaded.
123  
124 05/03/2005
125 1. REALLY got the shade problems this time - tested all modes.
126 2. Added a check into CreateQuickDispatch to test for an event that is not in EventGroups
127 3. Fixed docs typo "flexmacro" not "flexbmacro" :/
128 4. Apparently fixed problem with Event Editor macro/script= fields
129 05/02/2005
130 1. Fixed UnitBuff/Debuff/Debufftype, HasBuff/Debuff/Debufftype conditionals.
131 2. Forced a check of buffs at profile loaded to preload buff table
132 3. Fixed error caused by 'ProfileLoaded' with a target
133 4. Fixed syntax in Condtional descriptions for multiple items.
134 05/01/2005
135 1. Fixed another bug stemming from trying to clean up color code.
136 2. Added ReloadUI back in to Resetall and into Restore.
137 05/05/2005
138 1. Fixed initialization code for buttns 97-120 on existing profiles
139 2. Fixed color bug in shadetext/2
140 3. Added %player, %party1-%party4, %pet and %target to texture options
141 04/05/2005
142 1. Changed XML a little so that frame-coordinates are no longer stored in
143 the frame-layout.txt cache in WTF\Account\<account name>\<charactar name>
144 2. Changed Scripts save function to break large text blocks into 512 character
145 chunks. Saved variables seem to max out at ~950-970 characters in a string.
146 3. Added FastLoad as an option. With the frame-layout.txt file gone, the need for
147 delayed loading seems to be obviated.
148 4. *may* have fixed the error that leads to misplaced buttons on successive group
149 auto-arrange/move commands in configs.
150 5. Added FB_Register() to add new event handlers that process after any existing
151 handlers.
152 6. Added event "ComboPoints" - target is current number of combo points
153 7. Added conditions ComboPtsEQ<#>, ComboPtsLT<#> anc ComboPtsGT<#> - respectively
154 check to see if current combo points are equal to, less than or greater than the target.
155 8. Added event "UnitAffectingCombat", target is which unit to watch for. Affecting combat
156 seems to be a mix of GainAggro/Start Melee combat.
157 9. Added conditional "AffectingCombat<unitcode>" - condition to check if a specific unit is
158 currently affecting combat.
159 10. Added test code for PLAYER_LOST_CONTROL and PLAYER_GAINED_CONTROL. I
160 believe that these will fire when you are CC'd in some way. Currently the code saves
161 the messages in FBScripts under the names "PLAYER_LOST_CONTROL" and
162 "PLAYER_GAINED_CONTROL". If someone could please look at these after being
163 feared, charmed or stunned and let me know if what, if any, info was recorded there
164 I can implement these events.
165 11. Moved FBScripts editor to FlexBar_GUI.xml and FlexBar_GUI.lua.
166 12. Mostly fixed FBScripts editor's scrolling weirdness.
167 13. Moved seperate toggles (FBFastLoad, FBSafeLoad, FBTooltips, FBVerbose) into a table.
168 14. Implemented a simple GUI for toggles.
169 15. Fixed broken Mana/Health conditionals
170 16. Implemented a simple GUI to toggle on and off groups of events
171 17. Implemented GUI for Event Editing
172 18. Cleaned up Timer_Class code to prevent the steady dumping of memory onto the garbage heap.
173 19. Implemented the behnd the scenes code for AutoItems
174 20. Implemented the behind the scenes code for extending buffs/debuffs to party/target/pet
175 21. More stuff than I could keep track of :)
176 04/03/2005
177 1. Fixed bug resulting from buffs cast before profile was loaded/
178 or buff wearing off before profile was loaded. -- one result is that
179 these buffs will not be correct for the condition hasbuff<>
180 2. Restored the Use button to being able to specify multiple buttons
181 3. Added FB_CastSpellByName() and /fbcast (as slash command) -
182 this addresses the issue with /cast and CastSpellByName() not
183 working inside runmacro/runscript.
184 4. Added 2 commands for use with runscript/runmacro:
185 SetTexture Button=# Texture=''
186 Echo Button=<button numbers> base=# --
187 see help file for details
188 5: Added Import button to scripts editor - allows you to import configs
189 from FlexBar_Config.lua and run/edit/save into the FBScripts table.
190 04/01/2005 1. Fixed bug with resetting shade
191 2. Fixed bug with multiple calls to shade on events causing corruption
192 of the color data.
193 04/01/2005 1. Fixed bugs in UnitIsHostile/Friendly/Neutral conditions
194 2. Added /wait to macros. Duration of wait is in tenths of a second.
195 There is an added .1 second delay in addition to specified delay.
196 3. Added %fbe (last flexbar event) and %fbs (the source that raised
197 the last flexbar event). Extra variables are extensible.
198 03/29/2005 1. Added RunMacro command
199 2. Added Restore command
200 3. Changed WoW event handling to allow extension by 3rd parties within flexbar
201  
202 03/31/2005 1. Small bugfix with quickdispatch and no target specified.
203 02/06/2005 1. Completely reworked the data structure holding button state. Somehow, in
204 in some cases it was getting munged. This data structure is now independent
205 of the buttons (it used to be attached to the button itself) and is initialized
206 outside of any event code.
207 2. Reworked all the functions derived from Actionbar to take an explicit button
208 argument rather than rely on implicit 'this'. In rare instances 'this' was becoming
209 nil.
210 3. Added ShiftKeyDown/Up AltKeyDown/Up and ControlKeyDown/Up events.
211 4. Added a notepad like editor window for script writing - scripts are stored
212 in FBScripts.
213 5. Added UnitDied/UnitRessed events
214 6. Added Runscript command
215 7. Finished Raise command
216 8. Implemented first iteration of conditionals.
217 02/04/2005 1. Changed the Profile Auto-load code to take into account new information regarding
218 checking for a valid character name and the UnregisterEvent() bug.
219 A. The lost config bug should be gone.
220 B. The problems people experienced with the profile never loading
221 due to a conflict with other mods should be gone.
222 C. In the event that VARIABLES_LOADED doesn't fire due to the above
223 Blizzard bug, a dialog box will show allowing the user to manually load
224 their profile.
225 02/02/2005 1. Fixed remap toggle ability.
226 2. Added checks to reduce FPS slowdonw when lots of buttons are visible.
227 Default blizzard code reshades visible buttons every update, regardless of
228 whether they actually change state. With lots of buttons on screen this may
229 be computationally expensive. Added a check to see if the button state had
230 actually changed before shading.
231 3. Fixed the bug where I was incorrectly applying scale in the case of UIScale < 1.
232 This fix will result in the buttons being smaller at the same scaling if you have
233 Use UI Scale checked.
234 4. Added an optional reset='true' to scale
235 5. Fixed Horizontal/Vertical group to take UI scale into account. If you change
236 UIScale, you will need to re-issue the auto-arrange commands to make them
237 look right.
238 01/30/2005 1. Added SaveProfile and LoadProfile to allow backing up and transporting full profiles across characters
239 on the same account.
240 01/30/2005 1. Made 2 changes to try and fix the lost configuration bug:
241 A. Added a 2nd check in Loadprofile for variables being loaded. If they are not, it restarts the timer
242 B. Added the SafeLoad command, which requires manual loading of profiles
243 01/25/2005 1. Load profile timer now is set in Player Entering World event to ensure that settings
244 aren't lost
245 2. Added the reset parameter to shade to allow WoW's default shading on low mana
246 to work again.
247 3. You can now specify '' or even no text at all in /flexbar text to get rid of the text there.
248 4. You can now turn off button tooltips with /flexbar tooltip state='off' and state='on to
249 turn them back on.
250 5. Some of the group bounds issues after auto-arranging groups should be solved.
251 6. Added leftbuttondown, up and click events when using a hotkey to activate a button
252 7. Fixed positioning on move to mouse and moverel when UI scale is not 1
253 01/11/2005 Fixed 3 errors:
254 1, hotkeys were not getting the right button - fixed
255 2, the id map was being set incorrectly for druids and warriors
256 3, after group auto-arrange group bounds were off.
257 4, fixed ingame help for group auto-arrange
258  
259 Also added code to stop using implicit buttons and use an explicit button
260 in case this was getting munged somehow. Still desperately seeking
261 cause of Mac crashes - hampered by lack of a mac :/
262 01/16/2005 1. Fixed hotkey problem that especially effected warriors
263 2. Added far more bounds checking to parameters with descriptive error messages
264 3. Added IsUsable, NotUsable, ManaAbove##, ManaBelow##, HealthFull, ManaFull
265 Mana events work for rage. Probably energy too.
266 01/13/2005 1. FIXED MAC CRASH
267 A huge thank you to Dagar for all his help in tracking this down.
268 01/12/2005 1. Increased LoadProfile timer. Was 10 seconds during development,
269 dropped to 5 just two days to release -- seems to cause some shifting
270 of buttons on load.
271 2. Fixed small bug with key-binding text
272 3. Fixed bug with setting up event for Use On=
273 4. Fixed bug when auto-arranging buttons
274 5. Fixed bug where FBEvents.n wasn't initialized - found out due to Cosmos.
275 This is not a cosmos bug, but cosmos did something to point out a bug I'd
276 been getting away with.
277 6. Made events and targets case insensitive.
278 7. Added FlexBar_Config.lua file and LoadConfig command
279 8. LoseAura was incorrectly being raised as LostAura. For consistency, fixed that
280 9. 7:00 pm - target is actually case insensitive now
281 10. bug with buttons staying fixed to anchor after ungroup fixed.
282 12/26/2004 Complete rewrite to facilitate new features and
283 maintainablity
284 --]]