I'm planning to release as a compilation, which isn't bad, cause nothing is very big.
But the directory structure goes as such
Interface/AddOns/BossPanel <-- main one
Interface/AddOns/BossPanel_Clock
Interface/AddOns/BossPanel_Experience
etc.
none of the Experience code is in BossPanel, and such.
I don't know what you mean by the titan clock format, or the offset stuff.
I have some offset-finding code in mine, I hadn't even looked at Titan's way of doing it.
I plan on releasing in, oh say, 12 hours.
My clock code is pretty simple, you can switch between 24/12 hour, and show seconds (if you show seconds it finds the offset to the server).
Very interested in this but IMHO the first thing todo is nix as many onupdates as possible and turn them into timex timers. The clock for example does not need an onupdate that fires many, many times a second to update the time text once a minute.
Titan Honor Plus, with the Death and BG 'fix': TitanHP_d1.zip
Maintenance in the US right now, so I can't test it. I know it was working a few weeks ago, but I don't use Titan regularly.
Other Titan modules I thought were handy (if anyone is looking for projects) are:
TitanAuctions
TitanAggro
TitanClassTracker
TitanGuild
I hacked up a couple of these modules to 1)get them to work without errors and 2)remove some features I didn't need. But they're not 'aced' versions so I won't be sharing them here.
Please post if the Honor+ version is working for you.
Timex is _extremely_ bloated, at least for my setup. If I even have a simple timer (such as for the clock), it makes the increasing rate of memory shoot up by 4-5 KiB/s.
Without it, using the OnUpdate method, it stays between 0.0 and 0.2 KiB/s
Maybe I'm doing it wrong. Is there any good example code that uses Timex and doesn't cause memory leaks?
Also, all Timex does is hook on to Worldframe_OnUpdate, then do the offset addition and firing from there, so it's essentially the same thing.
You really don't have to deal with offset at all. Just sholw local and server time. Probably give the user an option to turn each one on/off on the bar (GMT just shows both). I'd show both times in the tooltip, but I never put that into GMT, it just shows the date there.
I really do recommend keeping both times handy, most guilds I've known will plan events around "server time". It's a PITA to constantly try to remember the offset, it's easier to just glance there when you need to know :)
Boss please let us now when we can get our grubby little hands on this.
As for the timex thing if you have a better way to skin the cat than great. AFAIK timex does/did about the best possible for consolodating timeing into a very fast low impact event. Yes it uses an onupdate there is no way around it. It just creates one that can be shared and then only call your code when needed ie the time offset has passed.
Most clock addon's I've look at the code for would do a full text update on every onupdate that gets fired, ie 10-100 screen updated every second (dependond on FPS). However those same clock addons only showed the current time in HH:MM format ie only down the current minute. Why does the addon need to update the time ever second much less ever fraction of a second when once a min would do? A timex even set to 1min solves the problem quite nicly.
Why? Cause if you only check once a minute that time could be inaccurate by up to 59 seconds :P
In GMT I check twice a second, though once a second would probably be fine too. Often the server and local time are not in sync, and I display both.
I just had a wonderful idea... is BossPanel an Ace addon by chance? If so you could have a plugin pass an event name for button text and icon updates. The bar registers that event, then when you want to push an update just do something like...
self:TriggerEvent("ITEMIZEDDEDUCTIONS_BUTTONTEXT_UPDATE", "This is the new text")
Then there's no need to pass function and all that jazz, just a single string. Also it aides Ace devs that want to program modules for all the bar plugins, I personally aim to put in modules for Titan, AceBar (if it happens), your mod, and possibly Infobar and BhaldieBar. Check out what I've done so far with the Titan module in ItemizedDeductions
Of course BossPanel is an Ace addon, and all the plugins are also Ace-enabled.
I tried to integrate it nicely into Ace. When hiding/showing a plugin, it also toggles standby.
All the plugins' options can also be handled by the command line, not just the menu.
All the plugins have an About button, that just does "/bosspanel_myplugin ?".
When adding/removing a plugin from the bar, it's arranged by ace category.
You'd write your plugin just like a normal Ace addon, except deriving from BossPanelAddon instead of AceAddon.
I don't see a point in triggering an event. In an addon, to update your text, you do
Im loving the addon, i can set it up with how i had titan set up, but theres 2 small things thats bothering me (but not enought to cause a problem)
I can't send a chosen item to the 2nd, bottom bar. Reason for this is my main char is a 60 Raid char so i dont need to know about experiance. However I enjoy playing my alt. so i set my top bar on both chars the same and drop the "experiance" mod on the bottom bar, i cant add it there.
I tried removing it and adding it via the bottom bar (ala titan mode) to see if it docked, it still adds to the top bar if i add it via bottom bar. no big deal but I'd like to be able to mount panels onto the bottom bar (since its visable). which leads me onto problem 2 :P
Are you going to add an option to remove the background colour? or should i just use visor to edit its transparency? :P
I don't use Honor+ or really even play much, has anyone been able to verify that Devla's fixes are all working? I was going to include it and just want to make sure there haven't been any other issues seen.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
But the directory structure goes as such
Interface/AddOns/BossPanel <-- main one
Interface/AddOns/BossPanel_Clock
Interface/AddOns/BossPanel_Experience
etc.
none of the Experience code is in BossPanel, and such.
I don't know what you mean by the titan clock format, or the offset stuff.
I have some offset-finding code in mine, I hadn't even looked at Titan's way of doing it.
I plan on releasing in, oh say, 12 hours.
My clock code is pretty simple, you can switch between 24/12 hour, and show seconds (if you show seconds it finds the offset to the server).
TitanHP_d1.zip
Maintenance in the US right now, so I can't test it. I know it was working a few weeks ago, but I don't use Titan regularly.
Other Titan modules I thought were handy (if anyone is looking for projects) are:
TitanAuctions
TitanAggro
TitanClassTracker
TitanGuild
I hacked up a couple of these modules to 1)get them to work without errors and 2)remove some features I didn't need. But they're not 'aced' versions so I won't be sharing them here.
Please post if the Honor+ version is working for you.
TitanBGRessurection
TitanFactions
TitanFriends
TitanGuild
TitanItemRack
TitanLootType (from default titan)
TitanMail
TitanRecap
TitanSkills
TitanTradeCooldown
Without it, using the OnUpdate method, it stays between 0.0 and 0.2 KiB/s
Maybe I'm doing it wrong. Is there any good example code that uses Timex and doesn't cause memory leaks?
Also, all Timex does is hook on to Worldframe_OnUpdate, then do the offset addition and firing from there, so it's essentially the same thing.
You really don't have to deal with offset at all. Just sholw local and server time. Probably give the user an option to turn each one on/off on the bar (GMT just shows both). I'd show both times in the tooltip, but I never put that into GMT, it just shows the date there.
I really do recommend keeping both times handy, most guilds I've known will plan events around "server time". It's a PITA to constantly try to remember the offset, it's easier to just glance there when you need to know :)
As for the timex thing if you have a better way to skin the cat than great. AFAIK timex does/did about the best possible for consolodating timeing into a very fast low impact event. Yes it uses an onupdate there is no way around it. It just creates one that can be shared and then only call your code when needed ie the time offset has passed.
Most clock addon's I've look at the code for would do a full text update on every onupdate that gets fired, ie 10-100 screen updated every second (dependond on FPS). However those same clock addons only showed the current time in HH:MM format ie only down the current minute. Why does the addon need to update the time ever second much less ever fraction of a second when once a min would do? A timex even set to 1min solves the problem quite nicly.
In GMT I check twice a second, though once a second would probably be fine too. Often the server and local time are not in sync, and I display both.
I just had a wonderful idea... is BossPanel an Ace addon by chance? If so you could have a plugin pass an event name for button text and icon updates. The bar registers that event, then when you want to push an update just do something like...
Then there's no need to pass function and all that jazz, just a single string. Also it aides Ace devs that want to program modules for all the bar plugins, I personally aim to put in modules for Titan, AceBar (if it happens), your mod, and possibly Infobar and BhaldieBar. Check out what I've done so far with the Titan module in ItemizedDeductions
I tried to integrate it nicely into Ace. When hiding/showing a plugin, it also toggles standby.
All the plugins' options can also be handled by the command line, not just the menu.
All the plugins have an About button, that just does "/bosspanel_myplugin ?".
When adding/removing a plugin from the bar, it's arranged by ace category.
You'd write your plugin just like a normal Ace addon, except deriving from BossPanelAddon instead of AceAddon.
I don't see a point in triggering an event. In an addon, to update your text, you do
and to update an icon, it's just
tada, no triggering of events.
By the way, I was tired of waiting for the prospects of AceBar, so that's why I made BossPanel.
WoWInterface - BossPanel
Note: this is an alpha, although it works and is very shiny, there may be bugs.
also, I included a tutorial for writing an addon in the zip file (BossPanel_Tutorial.txt).
I also made a topic in Ace AddOn Collection for this.
Im loving the addon, i can set it up with how i had titan set up, but theres 2 small things thats bothering me (but not enought to cause a problem)
I can't send a chosen item to the 2nd, bottom bar. Reason for this is my main char is a 60 Raid char so i dont need to know about experiance. However I enjoy playing my alt. so i set my top bar on both chars the same and drop the "experiance" mod on the bottom bar, i cant add it there.
I tried removing it and adding it via the bottom bar (ala titan mode) to see if it docked, it still adds to the top bar if i add it via bottom bar. no big deal but I'd like to be able to mount panels onto the bottom bar (since its visable). which leads me onto problem 2 :P
Are you going to add an option to remove the background colour? or should i just use visor to edit its transparency? :P
Sorry to bug you ;)
-SiR-
[EDIT] happy now [/EDIT]
I think you missed a few words there...