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 option table. 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

Download

File Name Status Version Downloads Date
r61-release R 8.1.5 10,580 14/06/2019
r57-release R 7.0.3 72,618 20/07/2016
r52-release R 6.2.0 28,923 22/07/2015
r48-release R 5.3.0 66,530 26/05/2013
v3.4.3 R 5.0.4 40,035 28/08/2012
v3.4.1 R 3.3.5 103,559 25/07/2010
3.3.1 R 3.3.0 6,517 08/12/2009
v3.3.2 R 3.2.0 1,902 04/12/2009
v3.2.1 R 3.1.0 711 03/05/2009
v3.2 R 3.0.2 508 14/10/2008
AceGUI-3.0-SharedMediaWidgets-r78930 B 2.4.3 322 22/07/2008
AceGUI-3.0-SharedMediaWidgets 7.3.0 Updating 7.3.0 Updating Updating
AceGUI-3.0-SharedMediaWidgets 7.3.2 Updating 7.3.2 Updating Updating
AceGUI-3.0-SharedMediaWidgets 7.3.5 Updating 7.3.5 Updating Updating
AceGUI-3.0-SharedMediaWidgets 8.0.1 Updating 8.0.1 Updating Updating
AceGUI-3.0-SharedMediaWidgets 8.1.0 Updating 8.1.0 Updating Updating
AceGUI-3.0-SharedMediaWidgets 8.2.0 Updating 8.2.0 Updating Updating
AceGUI-3.0-SharedMediaWidgets 8.2.5 Updating 8.2.5 Updating Updating
AceGUI-3.0-SharedMediaWidgets
AceGUI-3.0-SharedMediaWidgets

Dear youtuber!
Have you a channel youtube and want to bring your Video to quality visitors?
Do you want your video to appear on our website?
Do you want to become partner with us?
Just 3 steps to become our partner:
Step 1: Make video review for mods, addons, plugins, ... which you like
Step 2: Upload this video to youtube and our link to your video description
Step 3: Send the youtube video link via message to http://fb.com/9lifehack or leave a comment in the post. We will add your video in the our post, it will help you have more view.
JOIN to get more youtube view with us!!!!

Related Posts

Smarty Productivity Happiness

9LifeHack.com - make things smart