- added AceGUI-3.0-SharedMediaWidgets support to the font selection box and ToT bar texture selection

This commit is contained in:
Parnic
2010-10-21 02:20:09 +00:00
parent 04a885b123
commit 78b825c79d
5 changed files with 33 additions and 28 deletions

View File

@ -25,6 +25,9 @@ externals:
libs/AceGUI-3.0: libs/AceGUI-3.0:
url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceGUI-3.0 url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceGUI-3.0
tag: latest tag: latest
libs/AceGUI-3.0-SharedMediaWidgets:
url: svn://svn.wowace.com/wow/ace-gui-3-0-shared-media-widgets/mainline/trunk/AceGUI-3.0-SharedMediaWidgets
tag: latest
libs/AceAddon-3.0: libs/AceAddon-3.0:
url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceAddon-3.0 url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceAddon-3.0
tag: latest tag: latest
@ -47,12 +50,11 @@ externals:
tag: latest tag: latest
libs/LibDBIcon-1.0: libs/LibDBIcon-1.0:
url: svn://svn.wowace.com/wow/libdbicon-1-0/mainline/trunk/LibDBIcon-1.0 url: svn://svn.wowace.com/wow/libdbicon-1-0/mainline/trunk/LibDBIcon-1.0
libs/LibDualSpec-1.0: libs/LibDualSpec-1.0:
url: git://git.wowace.com/wow/libdualspec-1-0/mainline.git url: git://git.wowace.com/wow/libdualspec-1-0/mainline.git
tag: latest tag: latest
optional-dependencies: optional-dependencies:
- libdogtag-3-0 - libdogtag-3-0
- libdogtag-unit-3-0 - libdogtag-unit-3-0
- librangecheck-2-0 - librangecheck-2-0
- libhealcomm-4-0

View File

@ -373,16 +373,17 @@ Expand "|cffffdc42Module Settings|r", expand PlayerInfo (or TargetInfo for targe
textSettings = { textSettings = {
type = 'select', type = 'select',
dialogControl = "LSM30_Font",
name = L["Font"], name = L["Font"],
desc = L["IceHUD Font"], desc = L["IceHUD Font"],
order = 19, order = 19,
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, IceHUD.IceCore:GetFontFamily()) return IceHUD.IceCore:GetFontFamily()
end, end,
set = function(info, value) set = function(info, value)
IceHUD.IceCore:SetFontFamily(info.option.values[value]) IceHUD.IceCore:SetFontFamily(value)
end, end,
values = SML:List('font'), values = AceGUIWidgetLSMlists.font,
order = 94.75, order = 94.75,
}, },

View File

@ -5,7 +5,7 @@
## Notes: Another HUD addon ## Notes: Another HUD addon
## Version: @project-version@ (Revision: @project-revision@) ## Version: @project-version@ (Revision: @project-revision@)
## SavedVariables: IceCoreDB ## SavedVariables: IceCoreDB
## OptionalDeps: Ace3, LibSharedMedia-3.0, LibDogTag-3.0, LibDogTag-Unit-3.0, LibRangeCheck-2.0, LibDualSpec-1.0, LibDBIcon-1.0 ## OptionalDeps: Ace3, LibSharedMedia-3.0, LibDogTag-3.0, LibDogTag-Unit-3.0, LibRangeCheck-2.0, LibDualSpec-1.0, LibDBIcon-1.0, AceGUI-3.0-SharedMediaWidgets
## X-Category: HUDs ## X-Category: HUDs
## X-Website: http://www.wowace.com/projects/ice-hud/ ## X-Website: http://www.wowace.com/projects/ice-hud/

View File

@ -1,20 +1,21 @@
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/..\FrameXML\UI.xsd"> <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/..\FrameXML\UI.xsd">
<Script file="libs\LibStub\LibStub.lua"/> <Script file="libs\LibStub\LibStub.lua"/>
<Script file="libs\CallbackHandler-1.0\CallbackHandler-1.0.lua"/> <Script file="libs\CallbackHandler-1.0\CallbackHandler-1.0.lua"/>
<Include file="libs\AceDB-3.0\AceDB-3.0.xml"/> <Include file="libs\AceDB-3.0\AceDB-3.0.xml"/>
<Include file="libs\AceDBOptions-3.0\AceDBOptions-3.0.xml"/> <Include file="libs\AceDBOptions-3.0\AceDBOptions-3.0.xml"/>
<Include file="libs\AceGUI-3.0\AceGUI-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\AceGUI-3.0-SharedMediaWidgets\widget.xml"/>
<Include file="libs\AceEvent-3.0\AceEvent-3.0.xml"/> <Include file="libs\AceConfig-3.0\AceConfig-3.0.xml"/>
<Include file="libs\AceTimer-3.0\AceTimer-3.0.xml"/> <Include file="libs\AceEvent-3.0\AceEvent-3.0.xml"/>
<Include file="libs\AceConsole-3.0\AceConsole-3.0.xml"/> <Include file="libs\AceTimer-3.0\AceTimer-3.0.xml"/>
<Include file="libs\AceAddon-3.0\AceAddon-3.0.xml"/> <Include file="libs\AceConsole-3.0\AceConsole-3.0.xml"/>
<Include file="libs\AceLocale-3.0\AceLocale-3.0.xml"/> <Include file="libs\AceAddon-3.0\AceAddon-3.0.xml"/>
<Include file="libs\LibDogTag-3.0\lib.xml"/> <Include file="libs\AceLocale-3.0\AceLocale-3.0.xml"/>
<Include file="libs\LibDogTag-Unit-3.0\lib.xml"/> <Include file="libs\LibDogTag-3.0\lib.xml"/>
<Script file="libs\LibRangeCheck-2.0\LibRangeCheck-2.0.lua"/> <Include file="libs\LibDogTag-Unit-3.0\lib.xml"/>
<Include file="libs\LibSharedMedia-3.0\lib.xml"/> <Script file="libs\LibRangeCheck-2.0\LibRangeCheck-2.0.lua"/>
<Script file="LibDataBroker-1.1.lua"/> <Include file="libs\LibSharedMedia-3.0\lib.xml"/>
<Script file="libs\LibDBIcon-1.0\LibDBIcon-1.0.lua"/> <Script file="LibDataBroker-1.1.lua"/>
<Script file="libs\LibDualSpec-1.0\LibDualSpec-1.0.lua"/> <Script file="libs\LibDBIcon-1.0\LibDBIcon-1.0.lua"/>
<Script file="libs\LibDualSpec-1.0\LibDualSpec-1.0.lua"/>
</Ui> </Ui>

View File

@ -126,19 +126,20 @@ function TargetOfTarget.prototype:GetOptions()
opts["texture"] = { opts["texture"] = {
type = 'select', type = 'select',
dialogControl = "LSM30_Statusbar",
name = L["Texture"], name = L["Texture"],
desc = L["ToT frame texture"], desc = L["ToT frame texture"],
get = function(info) get = function(info)
return IceHUD:GetSelectValue(info, self.moduleSettings.texture) return self.moduleSettings.texture
end, end,
set = function(info, v) set = function(info, v)
self.moduleSettings.texture = info.option.values[v] self.moduleSettings.texture = v
self:Redraw() self:Redraw()
end, end,
disabled = function() disabled = function()
return not self.moduleSettings.enabled return not self.moduleSettings.enabled
end, end,
values = SML:List(SML.MediaType.STATUSBAR), values = AceGUIWidgetLSMlists.statusbar,
order = 35 order = 35
} }