Help

AceGUI-3.0-SharedMediaWidgets

Libraries Login to Add Favorites
  • 0 Likes
  • World of Warcraft
  • 125,649 Downloads
  • Supports: 3.3.5
  • 39 Average Daily Downloads
  • Comments
  • Created 7/22/2008 12:42:23 PM
  • Updated 7/25/2010 12:27:34 PM
  • 108 Favorites
  • Project Site
  • License: Customized BSD
  • Release Type: Mature
  • Newest File: v3.4.1
or

About AceGUI-3.0-SharedMediaWidgets

This addon provides 5 AceGUI-3.0 widgets that will make selection LibSharedMedia-3.0 types easier.

The widget names are:

  • "LSM30_Font"
  • "LSM30_Sound"
  • "LSM30_Statusbar"
  • "LSM30_Background"
  • "LSM30_Border"

to use these widgets simply create the widget and register for the appropriate callback "OnValueChanged"

the other way to use the widgets is to replace the select option in a ACE-3.0 option table by adding dialogControl = "widget name", to it you will also need to supply a list of keys to the values you may use the lists provided by the widgets by setting values as(use the appropriate one) you may also use the HashTable function provided by LibSharedMedia-3.0:

  • AceGUIWidgetLSMlists.font
  • AceGUIWidgetLSMlists.sound
  • AceGUIWidgetLSMlists.statusbar
  • AceGUIWidgetLSMlists.border
  • AceGUIWidgetLSMlists.background

here is some sample code that works with the above generated list to add a Font Selection box to a Ace-3.0 optiontable. Of course you need to use AceConfigDialog-3.0 to actually see the widget :P

font = {
     type = 'select',
     dialogControl = 'LSM30_Font', --Select your widget here
     name = 'Some Name',
     desc = 'Some Description',
     values = LSM:HashTable("font"), -- pull in your font list from LSM
     get = function()
          return current -- variable that is my current selection
     end,
     set = function(self,key)
          current = key -- saves our new selection the the current one
     end,
}

Instead of pulling in the font list from LSM you can also use the provided font table as seen in the code sample below

font = {
     type = 'select',
     dialogControl = 'LSM30_Font', --Select your widget here
     name = 'Some Name',
     desc = 'Some Description',
     values = AceGUIWidgetLSMlists.font, -- this table needs to be a list of keys found in the sharedmedia type you want
     get = function()
          return current -- variable that is my current selection
     end,
     set = function(self,key)
          current = key -- saves our new selection the the current one
     end,
}

if you want to make the widgets optional you can check if they are loaded by trying to access them via libstub:

local areWidgetsLoaded = LibStub:GetLibrary("AceGUISharedMediaWidgets-1.0", true) --returns a table if the widgets are leaded or nil if they are not. 

Screen shots

The LSM30_Font widget
LSM30_Font

The LSM30_Sound widget (and yes you can preview the sound by clicking on the speaker)
LSM30_Sound

The LSM30_Statusbar widget
LSM30_Statusbar

The LSM30_Background widget
LSM30_Background

The LSM30_Border widget
LSM30_Border

------------------------------------------------------------------------
r33 | yssaril | 2010-07-25 17:23:31 +0000 (Sun, 25 Jul 2010) | 1 line
Changed paths:
   A /tags/v3.4.1 (from /trunk:32)

Tagging as v3.4.1
------------------------------------------------------------------------
r32 | yssaril | 2010-07-22 19:41:17 +0000 (Thu, 22 Jul 2010) | 1 line
Changed paths:
   M /trunk/AceGUI-3.0-SharedMediaWidgets/BackgroundWidget.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/BorderWidget.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/FontWidget.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/SoundWidget.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/StatusbarWidget.lua

forgot to bump the widget version numbers
------------------------------------------------------------------------
r31 | yssaril | 2010-07-21 21:27:09 +0000 (Wed, 21 Jul 2010) | 1 line
Changed paths:
   M /trunk/AceGUI-3.0-SharedMediaWidgets/BackgroundWidget.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/BorderWidget.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/FontWidget.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/SoundWidget.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/StatusbarWidget.lua

fix a backward compatibility issue with addons still using t[name] = name tables instead of the LSM hash table t[name] = path. (should now give those addons previews of the selections again)
------------------------------------------------------------------------
r30 | yssaril | 2010-07-21 19:56:18 +0000 (Wed, 21 Jul 2010) | 1 line
Changed paths:
   M /trunk/AceGUI-3.0-SharedMediaWidgets/StatusbarWidget.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/prototypes.lua

cosmetic alignment fix of the StatusbarWidget
------------------------------------------------------------------------
r28 | yssaril | 2010-07-14 04:11:26 +0000 (Wed, 14 Jul 2010) | 1 line
Changed paths:
   M /trunk/AceGUI-3.0-SharedMediaWidgets/BackgroundWidget.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/BorderWidget.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/FontWidget.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/SoundWidget.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/StatusbarWidget.lua

Get AceGUI focus before we generate the dropdown (reduces frame creation)
------------------------------------------------------------------------
r27 | yssaril | 2010-07-13 14:51:57 +0000 (Tue, 13 Jul 2010) | 1 line
Changed paths:
   M /trunk/AceGUI-3.0-SharedMediaWidgets/BackgroundWidget.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/BorderWidget.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/FontWidget.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/SoundWidget.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/StatusbarWidget.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/prototypes.lua

widgets could error out if the old ones loaded after the new ones. Should be fixed now (LibStub to the rescue)
------------------------------------------------------------------------
r26 | yssaril | 2010-07-12 22:09:59 +0000 (Mon, 12 Jul 2010) | 1 line
Changed paths:
   M /trunk/AceGUI-3.0-SharedMediaWidgets/BackgroundWidget.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/BorderWidget.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/FontWidget.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/SoundWidget.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/StatusbarWidget.lua

widgets will now once again auto populate if a nil list is set
------------------------------------------------------------------------
r25 | yssaril | 2010-07-12 19:45:14 +0000 (Mon, 12 Jul 2010) | 1 line
Changed paths:
   M /trunk/AceGUI-3.0-SharedMediaWidgets/BackgroundWidget.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/BorderWidget.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/FontWidget.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/SoundWidget.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/StatusbarWidget.lua

forgot to bump widget version number
------------------------------------------------------------------------
r24 | yssaril | 2010-07-12 19:44:14 +0000 (Mon, 12 Jul 2010) | 1 line
Changed paths:
   M /trunk/AceGUI-3.0-SharedMediaWidgets/BackgroundWidget.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/BorderWidget.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/FontWidget.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/SoundWidget.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/StatusbarWidget.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/prototypes.lua

fixed global number nil error. sorry about that. (also removed all trailing spaces)
------------------------------------------------------------------------
r23 | yssaril | 2010-07-12 06:55:27 +0000 (Mon, 12 Jul 2010) | 1 line
Changed paths:
   M /trunk/AceGUI-3.0-SharedMediaWidgets/BackgroundWidget.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/BorderWidget.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/FontWidget.lua
   D /trunk/AceGUI-3.0-SharedMediaWidgets/SharedFunctions.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/SoundWidget.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/StatusbarWidget.lua
   A /trunk/AceGUI-3.0-SharedMediaWidgets/prototypes.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/widget.xml
   M /trunk/AceGUI-3.0-SharedMediaWidgets.toc

Complete recoding of all widgets. They no longer leach of the Dropdown widget. Nothing changed API wise.
------------------------------------------------------------------------
r22 | nevcairiel | 2010-02-09 20:09:10 +0000 (Tue, 09 Feb 2010) | 1 line
Changed paths:
   M /trunk/AceGUI-3.0-SharedMediaWidgets/BackgroundWidget.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/BorderWidget.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/FontWidget.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/SharedFunctions.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/SoundWidget.lua
   M /trunk/AceGUI-3.0-SharedMediaWidgets/StatusbarWidget.lua

Check if the pullout is still open before trying to close it, hopefully fixing a rare error occuring when selecting an option in the dropdown.
------------------------------------------------------------------------

Comments

  • #3
    Date: 2011-03-03 03:32:52
    ID: 1
    Error occured in: Global
    Count: 1
    Message: ...Widgets\AceGUI-3.0-SharedMediaWidgets\prototypes.lua line 16:
    Cannot find a library instance of "LibSharedMedia-3.0".
    Debug:
    [C]: ?
    [C]: error()
    !Swatter\Support\LibRevision.lua:47: LibStub()
    ...Widgets\AceGUI-3.0-SharedMediaWidgets\prototypes.lua:16: in main chunk
    AddOns:
    Swatter, v3.2.3 ()
    Ace3, v
    AceGUI30CompletingEditBox, v
    AceGUI30SharedMediaWidgets, v4.0.0
    ACP, vr140
    BlizRuntimeLib_enUS v4.0.6.40000
    (ck=a5)

    library is there..
  • #2
    is there a slash command to pop up this add on window?
  • #1
    The latest version of AceGUI-3.0-SharedMediaWidgets (version 3.2.2) through the Curse Client is empty. It only contains a text file. All other files and folders within that library folder are missing.
  • To post a comment, please login or register a new account.
Learn how to disable ads
Learn how to disable ads
Login to Curse

Don't have an account? Create One.

Get an epic experience with Curse Premium
  • Faster Addon Downloads
  • Premium-Only Beta Giveaways
  • Ad-Free Curse.com Experience
  • Premium Curse Client
  • and many More Features
  • Learn More »

Minecraft 3D Print Giveaway

Enter Now!