API:AccountBagFrame OnEvent

From Runes of Magic Wiki - The Runes of Magic

Jump to: navigation, search

Called on every event of AccountBagFrame. This function has 2 roles: updating the AccountBagFrame or hiding it.

AccountBagFrame_OnEvent(this, event)

Parameters

Arguments

this
String - uses self frame name, "AccountBagFrame"
event
String - One of these two events: "ACCOUNTBAG_UPDATE" and "ACCOUNTBAG_CLOSE"

Returns

nil

Example

AccountBagFrame_OnEvent("AccountBagFrame", "ACCOUNTBAG_UPDATE")

Related Functions

Source Code

function AccountBagFrame_OnEvent(this, event)
	if ( event == "ACCOUNTBAG_UPDATE" ) then
		ShowUIPanel(AccountBagFrame);
		AccountBagFrame_Update();
	elseif ( event == "ACCOUNTBAG_CLOSE" ) then
		HideUIPanel(AccountBagFrame);
	end
end
Personal tools