StatBlock_Memory

A Data Broker plugin for displaying memory usage, also has a tooltip for per addon usage.

You can limit the number of addons displayed in the tooltip with

/script SB_MEM_KILL = number

Works with any Data Broker display addon.

You must login to post a comment. Don't have an account? Register to get one!

  • 2 comments
  • Avatar of merah merah Sun, 08 Feb 2009 13:14:51

    Funky note that you should add the type = "data source" field to your ldb object else it will fail to load on various display plugins, tekkub stated its required on wiki.

  • Avatar of Paul2200 Paul2200 Thu, 27 Nov 2008 04:55:21

    I added a little bit of code to be able to sort the list by Name (Ascending and Descending). In StatBlock_Memory.lua:

    1. Add the following two functions under mySort:

    <<code>>local function mySort(x,y) return x.mem > y.mem end

    local function mySortName(x,y) Vux return x.addon < y.addon end

    local function mySortNameDescending(x,y) Vux return x.addon > y.addon end<</code>>

    -----

    2. And in function Mem.obj.OnTooltipShow(tooltip):

    <<code>>table.sort(memTbl, mySort) Comment this out

    if( IsShiftKeyDown() ) then Vux table.sort(memTbl, mySortName) elseif ( IsControlKeyDown() ) then table.sort(memTbl, mySortNameDescending) else table.sort(memTbl, mySort) end<</code>>

    -----

    - Hold Shift and then mouseover the icon and the tooltip will be name sorted in alphabetical order.
    - Hold Control and the tooltip will be sorted in backwards alphabetical order.

    - And of course, don't hold either button and it's sorted by total memory usage (as normal) :)

    Any chance you might be able to add this to the next version?

    Anyway, just thought there might be others out there who might have wanted this feature as well :)

    - Vux of US-Dragonblight

  • 2 comments

Facts

Date created
18 Aug 2008
Category
Last update
15 Apr 2009
Development stage
Release
Language
  • deDE
  • enUS
  • esES
  • esMX
  • frFR
  • koKR
  • ruRU
  • zhCN
  • zhTW
License
All Rights Reserved
Curse link
StatBlock_Memory
Recent files

Authors

Relationships

Embedded library
Ace3

© 2008-2009 Curse Inc.