sStats

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

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)

Originally posted by Seerah As mentioned several times before, sStats is a framework for modules for a reason. You can write whatever module for it you need. I won't use a bag display module, so I won't spare the time to make it, tbh. But since sStats has an open framework you can.

Thanks for replying Also thanks again for a wonderful addon! Maybe I will look into making that bag counter myself

Originally posted by Derkyle
[BThe only thing I'm missing is a bag number display. Could you possibly add a module to display the amount of bag space left? [/b]

As mentioned several times before, sStats is a framework for modules for a reason. You can write whatever module for it you need. I won't use a bag display module, so I won't spare the time to make it, tbh. But since sStats has an open framework you can.

__________________
"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 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

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