2025-06-04 05:02:57 +08:00

15 lines
601 B
Plaintext

AgreementPanel = class("AgreementPanel", BaseView)
AgreementPanel.ViewType = UIViewType.PopUpLayer
function AgreementPanel:Init()
self.title = self:FindComponent("Title", UILabel);
self.text = self:FindComponent("Text", UILabel);
self.button = self:FindGO("Button");
self:AddClickEvent(self.button, function ( )
self:CloseSelf()
end);
self.buttonlab = self:FindComponent("Label", UILabel, self.button);
self.title.text = ZhString.StartGamePanel_AgreetmentTitle
self.buttonlab.text = ZhString.ServiceErrorUserCmdProxy_Confirm
self.text.text = ZhString.StartGamePanel_AgreetmentContent
end