SortRealms("name");
GlueTooltip_SetOwner(self, nil, -50, 0);
GlueTooltip_SetText(REALMLIST_REALMNAME_TOOLTIP);
GlueTooltip:Hide();
SortRealms("mode");
GlueTooltip_SetOwner(self, nil, -50, 0);
GlueTooltip_SetText(REALMLIST_TYPE_TOOLTIP);
GlueTooltip:Hide();
SortRealms("characters");
GlueTooltip_SetOwner(self, nil, -50, 0);
GlueTooltip_SetText(REALMLIST_NUMCHARACTERS_TOOLTIP);
GlueTooltip:Hide();
SortRealms("load");
GlueTooltip_SetOwner(self, nil, -180, 0);
GlueTooltip_SetText(REALMLIST_POPULATION_TOOLTIP);
GlueTooltip:Hide();
RealmListScrollFrame_OnVerticalScroll(self, offset);
PlaySound("gsLoginChangeRealmCancel");
RealmList_OnCancel();
PlaySound("gsLoginChangeRealmOK");
RealmList_OnOk();
RealmList_OnLoad(self);
RealmList_OnEvent(self, event);
RealmList_OnKeyDown(key);
RealmList_OnShow(self);
RealmList_OnHide();
RealmList_OnUpdate(self, elapsed);
local scrollbar = getglobal(self:GetName().."ScrollBar");
scrollbar:SetValue(offset);
local min;
local max;
min, max = scrollbar:GetMinMaxValues();
if ( offset == 0 ) then
getglobal(scrollbar:GetName().."ScrollUpButton"):Disable();
else
getglobal(scrollbar:GetName().."ScrollUpButton"):Enable();
end
-- HACK: scrollbars do not handle max properly
-- DO NOT CHANGE - without speaking to Mikros/Barris/Thompson
if (scrollbar:GetValue() >= max - 20) then
getglobal(scrollbar:GetName().."ScrollDownButton"):Disable();
else
getglobal(scrollbar:GetName().."ScrollDownButton"):Enable();
end
RealmHelpText_OnShow(self);
RealmHelpFrame:Hide();