This is beta quality software. As such, the framework outlined below may change or be expanded upon as the core is developed.
sStats is a framework for a module-based data display system. The sStats core addon comes with three modules by default. Additional modules may be found by clicking the "Optional Files" tab above, and can be installed like any other addon.
The included modules are:
sStats_mem - a memory display
sStats_fps - a framerate display
sStats_lat - a latency display
Modules are fully movable about the screen when unlocked, and their elements may be configured (such as font and color).
Future Features:
ability to change font, etc. on a per-module basis
....
The sStats API Documentation:
Code:
frame, fontstring = sStats:CreateModule(key)
-- key = a unique identifier/name of your module (string)
-- frame = a reference to your module's frame
-- fontstring = a reference to your module's fontstring
Code:
sStats.RegisterCallback(module, event, method)
-- module = the module registering for the callback
-- event = the event fired by sStats - it is called "sStats_Modules_Ready"
-- method = the function to call when the event fires (may be declared elsewhere in your module's code or right in the RegisterCallback script)
Code:
-- optional:
sStats:SetModuleText(fontstring, prefix, suffix)
-- fontstring = the module's fontstring
-- prefix = the value/data to display in the module
-- suffix = any descriptor text after the data (ex. "MB")
If you wish to create a module, download the sStats_Clock module from the Optional Files tab above. There are more docs and comments in its code, and it is a simple example.
Change Log - sStats
1.0 beta 3
- ack! accidently had a generic variable as a global. that could have cause some problems...
1.0 beta 2
- fixed bug where modules were white when logging in with them locked
- added class color support for suffix texts
- added CUSTOM_CLASS_COLORS support
Originally posted by vlakarados a more descriptive tooltip on the memory frame is really missing, I like the one, that SLDT has, any plans on changing?
I'd second this. And the possibility to do a memory "garbage collection" is something that I personally miss too. I'm just used to having this option from StatBlock
Originally posted by jasje do u have any intention to make a guild stat like who's online etc
similair to sldt?
if not its good to, but thats an option i love from sldt
No, I don't. But someone else can. That's the whole reason why sStats is a *framework*.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh
Originally posted by Seerah
re: disabling modules
if you don't want a core module for *any* character, you can just delete it from the sStats folder. I may add a disable option at a later date, however.[/b]
re: memory tooltip
I haven't decided yet, tbh. I use a "real" addon for addon profiling (OptionHouse) currently and thought of sStats as being an at-a-glance overview.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh
Can you add support to disable some modules while ingame such as mb or fps through a check box? is this possible because going in and deleting the default bits is annoying especially for some people who don't know exactly what they are doing.
FIXED: white frames at login when locked
I gave a color/alpha if they were unlocked, but had forgotten to give a color when locked
ADDED: class color support for suffix texts
If I get enough requests, I'll add it in for prefix/value texts as well. This also has support for CUSTOM_CLASS_COLORS
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh
Let me know if you run into any difficulties or quirks making a plugin (if you decide to do so). Or if there's anything that can be described/explained better with the docs. This is the first time I've written an extendable/framework-type addon.
Also, I've looked in my Fonts folder, and I'm using Folks in that screenshot.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh
None the less it looks awesome, updated and I'm using it :P, I'll go bug searching when I next play WoW, whilst I make a mail extension for this so i dont need SLDT anymore
Thanks for all of the comments so far. Let's see if I can address everything...
re: white when logging in
I believe I know what the issue is and I'll double-check when back at home later today. Though, it should be gray instead of white... I think I forgot to put in a check to see if the frames are locked when giving the frames a background color at creation (since they're unlocked by default)...
re: profiles
hmm.... profiles *should* work, as I used the same implementation as in my other addons, and it was working when I briefly tested them after putting the code in sStats. However, I may have accidentally changed something with a later addition/change to the code. I'll look at it.
re: disabling modules
if you don't want a core module for *any* character, you can just delete it from the sStats folder. I may add a disable option at a later date, however.
re: more modules (@ Arankarzen)
sStats is a framework, so anyone is free to make a mail module (or any type). I, personally, won't use a mail module, so I don't see myself making it. As for rolling them all into one addon, that won't happen either. The additional modules are optional and you only have to install a module that you'll actually use.
(ps. I don't remember off the top of my head what font I have set - I'm at work atm)
re: class coloring
that will probably make it in as a feature - I knew I was forgetting something for the "future features" list...
re: different font sizes for each part of the display (prefix/suffix)
This will *not* be added. In order to do something like that, I would need to create 2 fontstrings.
re: anchoring
I've thought about this... The frames have global names, also, which would allow this. I will continue to think about it, though it is low priority.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh
im getting the white too, everytime i log out and back in the background color has whited out, i have to unlock and lock and it goes back to transparent.
Me like this! =P
But the profile is not working, and the profile saves for every server so if I change on some other character so do it change to the same spot on all the other characters on the server.
But must give you a big credit for this, Easy to handle and its doing the job.
I would like to disable some parts too, I don´t want the memory one but its not hard to remove, But only some box to enable or disable it.
Found one more thing, When you log out and in the parts is covered with white color, I need to unlock and lock to get then normal again.
Last edited by Dödsmyggan : 10-03-2009 at 11:14 AM.
This looks extremely interesting im looking forward to seeing a replacement for this extremely outdated SLDT addon. All yah need now is a mail data addon and compress it into one addon and im sold :P
Btw what font do you use for wow im interested in trying it out :O
Yeah, I second the request for class colouring, and would also like to be able to change the size of the text independant of each other, so it would be like :