slot0 = class("SaratogaWFSkinPage", import(".TemplatePage.PtTemplatePage")) function slot0.OnFirstFlush(slot0) onButton(slot0, slot0.displayBtn, function () uv0:emit(ActivityMediator.SHOW_AWARD_WINDOW, PtAwardWindow, { type = uv0.ptData.type, dropList = uv0.ptData.dropList, targets = uv0.ptData.targets, level = uv0.ptData.level, count = uv0.ptData.count, resId = uv0.ptData.resId }) end, SFX_PANEL) onButton(slot0, slot0.battleBtn, function () uv0:emit(ActivityMediator.SPECIAL_BATTLE_OPERA) end, SFX_PANEL) onButton(slot0, slot0.getBtn, function () slot0, slot1 = uv0.ptData:GetResProgress() uv0:emit(ActivityMediator.EVENT_PT_OPERATION, { cmd = 1, activity_id = uv0.ptData:GetId(), arg1 = slot1 }) end, SFX_PANEL) end function slot0.OnUpdateFlush(slot0) uv0.super.OnUpdateFlush(slot0) slot1, slot2, slot3 = slot0.ptData:GetResProgress() setText(slot0.progress, setColorStr(slot1, "#F294B8FF") .. "/" .. slot2) end return slot0