slot0 = class("VoteGroupRaceShipPage", import("..PreRace.VotePreRaceShipPage")) function slot0.getUIName(slot0) return "GroupRaceShips" end function slot0.onInitItem(slot0, slot1) uv0.super.onInitItem(slot0, slot1) onButton(slot0, slot0.voteItems[slot1].go, function () if uv0.CallBack then if uv0.phase == VoteGroup.DISPLAY_STAGE then uv0.CallBack(uv1, uv1.voteShip.totalVotes) else uv0.CallBack(uv1, uv1.voteShip.votes) end end end, SFX_PANEL) end function slot0.UpdateShip(slot0, slot1, slot2, slot3) slot2:update(slot3, slot0.voteGroup:GetRank(slot3)) if slot0.voteGroup:GetRankMark() == 4 and slot4 == 4 then slot2.rank.text = string.format("%s%s", slot4, "th") elseif slot5 < slot4 then slot2.rank.text = "" end end function slot0.UpdateShips(slot0, slot1, slot2) slot0.scrollRect:SetTotalCount(#slot0.displays) end function slot0.OnDestroy(slot0) end return slot0