private void OnClickButton_Checkbox() { if (!AddLock()) { return; } //保存协议是否勾选 再次点击反转 Login_Protocol.SetProtocol(); DelLock(); }
private void OnClickButton_ProConfirm() { if (!AddLock()) { return; } //确认用户协议 Login_Protocol.SetProtocol(); //返回默认界面 关闭提示消息窗口 Block_Pup.This.m_Ctrl_Pup.selectedIndex = 0; DelLock(); }
public static void OpenLoginInit() { //更新协议 UI展示 Login_Protocol.Update_UI_Protocol(); //App: { ver = Version.InternalGameVersion } //Res: { config = Version.InternalResourceVersion} L0_Text.This.m_Text_NewVersion.SetGTextByCode("Text_Version_001"); L0_Text.This.m_Text_NewVersion.SetVar("ver", SettingComponent.This.InternalGameVersion).SetVar("config", SettingComponent.This.InternalResourceVersion).FlushVars(); //开始游戏 L3_AccountDefault.This.m_Text_Tap.SetGTextByCode("Text_Tap_001"); //游戏加载成功后 L0_Text.This.m_Ctrl_Text.selectedIndex = 1; //打开 用户中心 默认界面 Layout_3.This.m_Ctrl_Layout_3.selectedIndex = 0; //打开 到用户中心 Block_Layout.This.m_Ctrl_Layout.selectedIndex = 3; }
private void OnClickButton_Choose() { if (!AddLock()) { return; } //当前状态是遵守协议 if (PlayerComponent.This.GetProtocolStats()) { //反转 同时跳出提示框 Login_Protocol.SetProtocol(); TimeActionComponent.This.GetTimeAction().SetMinRuntime(1f).StartRun( (TimeAction timeAction) => { //提示勾选用户协议 Block_Pup.This.m_Ctrl_Pup.selectedIndex = 4; }, null, (TimeAction timeAction) => { //返回之前页面 Block_Pup.This.m_Ctrl_Pup.selectedIndex = Block_Pup.This.m_Ctrl_Pup.previsousIndex; DelLock(); } ); } else { //反转 同时跳出提示框 Login_Protocol.SetProtocol(); DelLock(); } }