AceGUI-3.0-SharedMediaWidgets

Enables AceGUI-3.0 widgets for the 5 basic SharedMedia-3.0 types
<p>Screenshot of the LSM30_Border Widget</p>

Screenshot of the LSM30_Border Widget

<p>Screenshot of the LSM30_Statusbar Widget</p>

Screenshot of the LSM30_Statusbar Widget

<p>Screenshot of the LSM30_Sound Widget</p>

Screenshot of the LSM30_Sound Widget

<p>Screenshot of the LSM30_Background Widget</p>

Screenshot of the LSM30_Background Widget

<p>Screenshot of the LSM30_Font Widget</p>

Screenshot of the LSM30_Font Widget

Description

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

The AceGUI-3.0-SharedMediaWidgets Team

profile avatar
Owner
  • 1
    Followers
  • 20
    Projects
  • 1.0M
    Downloads

More from yssarilView all

  • AutoEquipQuestItem project image

    AutoEquipQuestItem

    • 40.8K
    • Addons

    Adds a button to the quest completion interface which allows you to auto equips selected quest Item after completion

    • 40.8K
    • October 1, 2016
    • Addons
    • +1
  • BlizzBugsSuck project image

    BlizzBugsSuck

    • 117.6K
    • Addons

    Fixes UI bugs

    • 117.6K
    • August 2, 2016
    • Addons
  • LibMounts-1.0 project image

    LibMounts-1.0

    • 24.8K
    • Addons

    Library to aid in the classification of Mounts

    • 24.8K
    • November 2, 2013
    • Addons
  • YssDrop project image

    YssDrop

    • 17.6K
    • Addons

    Creates a broker plugin for all your broker launchers

    • 17.6K
    • August 28, 2012
    • Addons
    • +2
  • AutoEquipQuestItem project image

    AutoEquipQuestItem

    • 40.8K
    • Addons

    Adds a button to the quest completion interface which allows you to auto equips selected quest Item after completion

    • 40.8K
    • October 1, 2016
    • Addons
    • +1
  • BlizzBugsSuck project image

    BlizzBugsSuck

    • 117.6K
    • Addons

    Fixes UI bugs

    • 117.6K
    • August 2, 2016
    • Addons
  • LibMounts-1.0 project image

    LibMounts-1.0

    • 24.8K
    • Addons

    Library to aid in the classification of Mounts

    • 24.8K
    • November 2, 2013
    • Addons
  • YssDrop project image

    YssDrop

    • 17.6K
    • Addons

    Creates a broker plugin for all your broker launchers

    • 17.6K
    • August 28, 2012
    • Addons
    • +2