Go Back   WowAce Forums > Addon Chat > Frameworks > Ace3
Ace3 Ace3 framework discussion

Reply
 
Thread Tools
Old 04-12-2011   #1
Soren
Member
 
Join Date: Oct 2006
Posts: 21
Default AceConfig-3.0 - type="icon"

OK, for icons....

I understand the call, but I need to dynamically update the icon texture when the value of the field that the icon is under is changed. How can you dynamically update the icon texture via the AceConfig gui calls?

I mean, is there a way to change it dynamically through the "get" argument?

I'm making a rather complex options setup for my addon, sorry for all the questions, I'm really pushing the limits of the framework.

for example (I know this is not proper!)
Code:
mytest= {
     order = 1,
     type = 'input',
     icon = function() return("Interface\\Buttons\\UI-GroupLoot-Pass-Up") end,
     name = "test",
     get = function(info, texval) <change "icon" above to a new texture from 'texval'> end,
},
Does the icon function get called any time the get function is called? Guess that's my question to solve the above scenario. Going to test myself with simple print debug code, but last i looked servers were not up. Maybe someone will have an answer before I can perform my testing.

Thanks, again.

Last edited by Soren; 04-12-2011 at 04:03 PM.
Soren is offline   Reply With Quote
Old 04-12-2011   #2
Xinhuan
Asian Sheep Lover
 
Xinhuan's Avatar
 
Join Date: Aug 2007
Location: Singapore
Posts: 4,033
Default Re: AceConfig-3.0 - type="icon"

set = function(info, texval) mytests.icon = "new\\texture\\path" end,

mytests.icon shouldn't even be a function to begin with.
__________________
Author/Maintainer of Postal, Omen3, GemHelper, BankItems, WoWEquip, GatherMate, Routes, HandyNotes and some others.
Xinhuan is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

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

Forum Jump


All times are GMT. The time now is 07:29 AM.