Originally created by: Honor... (code.google.com)@gmail.com
Originally owned by: Honor... (code.google.com)@gmail.com
Hi! I'm a dude who is trying to build an addon for titan panel. I'm having a problem with not being able to update my icon image after the addon is loaded. It looks like I can update everything else except for the icon image.
It's built from the starter framework originally.
So you'll notice down at the event section:
function TIOSP6.Button_OnEvent?(self, event, ...)
if (event == "PLAYER_ENTERING_WORLD") then
local prof1, prof2, archaeology, fishing, cooking, firstAid = GetProfessions?(); TIOSP6.ProfTable? = { prof1, prof2, archaeology, fishing, cooking, firstAid } if TIOSP6.ProfTable?WhichProf? ~= nil then TIOSP6.name, TIOSP6.icon, TIOSP6.skillLevel, TIOSP6.maxSkillLevel, , , , = GetProfessionInfo?(TIOSP6.ProfTable?WhichProf?); end TitanPanelPluginHandle_OnUpdate?({TIOSP6.id, TITAN_PANEL_UPDATE_ALL})
end
end
Is there something like TitanPanelPluginHandle_OnUpdate? that will also update the icon image? If not can we get one?
oafkad@gmail.com is my contact information if that's not showing :).
ovide any additional information below that you feel is relevant.
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: Honor... (code.google.com)@gmail.com
(No comment was entered for this change.)
Labels: Type-Enhancement
Diff:
Clewaning old tickets.
This can be done by updating the <addon>.registry.icon
then calling TitanPanelButton_UpdateButton</addon>