Thread Tools Display Modes
Prev Previous Post   Next Post Next
Unread 12-20-12, 10:26 AM   #1
Benalish
A Fallenroot Satyr
 
Benalish's Avatar
Join Date: Dec 2012
Posts: 25
AceGUI-3.0-SharedMediaWidgets

I'm trying to include in my options panel the AceGUI-3.0-SharedMediaWidgets combobox to select the font. I've tried using these two codes, but does not work:

Code:
<Ui xsi:schemaLocation="http://www.blizzard.com/wow/ui/ ..\FrameXML\UI.xsd">
<Script file="Libs\LibStub\LibStub.lua"/>
<Include file="Libs\CallbackHandler-1.0\CallbackHandler-1.0.xml"/>
<Include file="Libs\AceAddon-3.0\AceAddon-3.0.xml"/>
<Include file="Libs\AceGUI-3.0\AceGUI-3.0.xml"/>
<Include file="Libs\AceConfig-3.0\AceConfig-3.0.xml"/>
<Include file="Libs\AceConsole-3.0\AceConsole-3.0.xml"/>
<Include file="Libs\AceDB-3.0\AceDB-3.0.xml"/>
<Include file="Libs\AceEvent-3.0\AceEvent-3.0.xml"/>
<Include file="Libs\AceGUI-3.0-SharedMediaWidgets\widget.xml"/>
</Ui>
Lua Code:
  1. WelcomeHome = LibStub("AceAddon-3.0"):NewAddon("WelcomeHome", "AceConsole-3.0")
  2.  
  3. local options = {
  4.    type = "group",
  5.    name = "WelcomeHome",
  6.    args = {
  7.     General = {
  8.          type = "group",
  9.          name = "General",
  10.          order = -1,
  11.          args = {
  12.             Info = {
  13.                type = 'select',
  14.      dialogControl = 'LSM30_Font',
  15.      name = 'Some Name',
  16.      desc = 'Some Description',
  17.      values = LSM:HashTable("font"),
  18.      get = function()
  19.           return current
  20.      end,
  21.      set = function(self,key)
  22.           current = key
  23.      end,
  24.             },
  25.          },
  26.       },
  27.    },
  28. }
  29.  
  30. function WelcomeHome:OnInitialize()
  31.     -- Called when the addon is loaded
  32.     LibStub("AceConfig-3.0"):RegisterOptionsTable("WelcomeHome", options)
  33.     self.optionsFrame = LibStub("AceConfigDialog-3.0"):AddToBlizOptions("WelcomeHome", "WelcomeHome")
  34. end

I have to add something else?
Benalish is offline   Reply With Quote
 

Go BackWoWInterface » Developer Discussions » Lua/XML Help » AceGUI-3.0-SharedMediaWidgets

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off