Comments about StatBlock_Memory http://www.wowace.com/addons/stat-block_memory/ The latest comments about StatBlock_Memory en-us Sun, 08 Feb 2009 13:14:51 +0000 WowAce.com (http://www.wowace.com) Comment #2 http://www.wowace.com/addons/stat-block_memory/?comment=2 <p>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. </p> Sun, 08 Feb 2009 13:14:51 +0000 http://www.wowace.com/addons/stat-block_memory/?comment=2 http://www.wowace.com/addons/stat-block_memory/?comment=2 no-reply@curseforge.com (merah) Comment #1 http://www.wowace.com/addons/stat-block_memory/?comment=1 <p>I added a little bit of code to be able to sort the list by Name (Ascending and Descending). In StatBlock_Memory.lua:</p> <p>1. Add the following two functions under mySort:</p> <p><code class="unknown_macro">&lt;&lt;code&gt;&gt;</code>local function mySort(x,y) return x.mem &gt; y.mem end</p> <p>local function mySortName(x,y) <del> Vux return x.addon &lt; y.addon end</del></p> <p>local function mySortNameDescending(x,y) <del> Vux return x.addon &gt; y.addon end&lt;&lt;/code&gt;&gt;</del></p> <p><del>-</del><del>-</del><del>-</del><del>-</del><del>-</del></p> <p>2. And in function Mem.obj.OnTooltipShow(tooltip):</p> <p><code class="unknown_macro">&lt;&lt;code&gt;&gt;</code><del>table.sort(memTbl, mySort) </del> Comment this out</p> <p>if( IsShiftKeyDown() ) then <del> Vux table.sort(memTbl, mySortName) elseif ( IsControlKeyDown() ) then table.sort(memTbl, mySortNameDescending) else table.sort(memTbl, mySort) end&lt;&lt;/code&gt;&gt;</del></p> <p><del>-</del><del>-</del><del>-</del><del>-</del><del>-</del></p> <p>- Hold Shift and then mouseover the icon and the tooltip will be name sorted in alphabetical order.<br> - Hold Control and the tooltip will be sorted in backwards alphabetical order.</p> <p>- And of course, don't hold either button and it's sorted by total memory usage (as normal) <span class="emote emote-smile" title="Smile">:)</span></p> <p>Any chance you might be able to add this to the next version?</p> <p>Anyway, just thought there might be others out there who might have wanted this feature as well <span class="emote emote-smile" title="Smile">:)</span></p> <p>- Vux of US-Dragonblight</p> Thu, 27 Nov 2008 04:55:21 +0000 http://www.wowace.com/addons/stat-block_memory/?comment=1 http://www.wowace.com/addons/stat-block_memory/?comment=1 no-reply@curseforge.com (Paul2200)