local UIFirstChargePanel = require("View/FirstCharge/UIFirstChargePanel") local UIFirstChargePanelNew = UIViewClass(UIFirstChargePanel) local TITLE_PATH_New = "UI_FirstCharge/jjsc_msz_0%s.png" function UIFirstChargePanelNew:OnTabClick(index, isForce) UIFirstChargePanel.OnTabClick(self, index, isForce) self.state_Prompt:SetState(index) if index == 0 then UIUtils.SetLabelText(self.txt_Prompt,Const_IDS.IDS_FirstCharge_New_ChooseHero) elseif index == 1 then UIUtils.SetLabelText(self.txt_Prompt,Const_IDS.IDS_FirstCharge_New_ChooseHorse) elseif index == 2 then UIUtils.SetLabelText(self.txt_Prompt,Const_IDS.IDS_FirstCharge_New_ChooseTreasure) end UIUtils.SetActive(self.group_Prompt, true) UIUtils.SetLocalizationImage(self.img_Title, string.format(TITLE_PATH_New, index + 1)) self.img_Title:SetNativeSize() end return UIFirstChargePanelNew