slot0 = class("ReturnAwardPage", import("...base.BaseActivityPage")) slot0.INVITER = 1 slot0.RETURNER = 2 function slot0.OnFirstFlush(slot0) slot0.page = ({ InviterPage, ReturnerPage })[slot0.activity.data1].New(slot0._tf, slot0._event) onButton(slot0, slot0.page.help, function () pg.MsgboxMgr.GetInstance():ShowMsgBox({ type = MSGBOX_TYPE_HELP, helps = pg.gametip.returner_help.tip }) end) end function slot0.OnUpdateFlush(slot0) slot0.page:Update(slot0.activity) end function slot0.OnDestroy(slot0) slot0.page:Dispose() end function slot0.UseSecondPage(slot0, slot1) return slot1.data1 > 1 end return slot0