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
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.
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.