TokenButton_OnLoad(self); TokenButton_OnClick(self, button, down); TokenFramePopup:Hide(); _G[self:GetName().."Text"]:SetText(UNUSED); _G[self:GetName().."Text"]:SetTextColor(HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b); if ( self:GetChecked() ) then PlaySound("igMainMenuOptionCheckBoxOn"); SetCurrencyUnused(TokenFrame.selectedID, 1); else PlaySound("igMainMenuOptionCheckBoxOff"); SetCurrencyUnused(TokenFrame.selectedID, 0); end TokenFrame_Update(); TokenFramePopup_CloseIfHidden(); BackpackTokenFrame_Update(); ManageBackpackTokenFrame(); GameTooltip:SetOwner(self, "ANCHOR_RIGHT"); GameTooltip:SetText(TOKEN_MOVE_TO_UNUSED, nil, nil, nil, nil, 1); _G[self:GetName().."Text"]:SetText(SHOW_ON_BACKPACK); _G[self:GetName().."Text"]:SetTextColor(HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b); if ( self:GetChecked() ) then if ( GetNumWatchedTokens() >= MAX_WATCHED_TOKENS ) then UIErrorsFrame:AddMessage(format(TOO_MANY_WATCHED_TOKENS, MAX_WATCHED_TOKENS), 1.0, 0.1, 0.1, 1.0); self:SetChecked(false); return; end PlaySound("igMainMenuOptionCheckBoxOn"); SetCurrencyBackpack(TokenFrame.selectedID, 1); else PlaySound("igMainMenuOptionCheckBoxOff"); SetCurrencyBackpack(TokenFrame.selectedID, 0); end TokenFrame_Update(); BackpackTokenFrame_Update(); ManageBackpackTokenFrame(); GameTooltip:SetOwner(self, "ANCHOR_RIGHT"); GameTooltip:SetText(TOKEN_SHOW_ON_BACKPACK, nil, nil, nil, nil, 1);