Exemplo n.º 1
0
 public void ShowAsConfirm(string title, string content, Action actionC, string nameC = "", string btnC = "button_orange_1")
 {
     ServerTipDialogUIViewModel.Open();
     ServerTipDialogUIView.Instance.SetMask(0.7f, true, true);
     this.m_actionConfirm    = actionC;
     this.ContentVisibility  = true;
     this.Content1Visibility = false;
     this.BtnConfirmText     = ((!string.IsNullOrEmpty(nameC)) ? nameC : this.BtnConfirmText);
     this.Title                = title;
     this.Content              = content;
     this.ImageBtnC            = ButtonColorMgr.GetButton(btnC);
     this.BtnLeftVisibility    = false;
     this.BtnRightVisibility   = false;
     this.BtnConfirmVisibility = true;
     ServerTipDialogUIView.Instance.isClick = false;
 }
Exemplo n.º 2
0
 public void ShowAsOKCancel(string title, string content, Action actionL, Action actionR, string nameL = "取 消", string nameR = "确 定", string btnL = "button_orange_1", string btnR = "button_yellow_1")
 {
     ServerTipDialogUIViewModel.Open();
     this.m_actionL            = actionL;
     this.m_actionR            = actionR;
     this.BtnRclose            = true;
     this.BtnLeftText          = ((!string.IsNullOrEmpty(nameL)) ? nameL : this.BtnLeftText);
     this.BtnRightText         = ((!string.IsNullOrEmpty(nameR)) ? nameR : this.BtnRightText);
     this.Title                = title;
     this.ContentVisibility    = true;
     this.Content1Visibility   = false;
     this.Content              = content;
     this.ImageBtnL            = ButtonColorMgr.GetButton(btnL);
     this.ImageBtnR            = ButtonColorMgr.GetButton(btnR);
     this.BtnLeftVisibility    = true;
     this.BtnRightVisibility   = true;
     this.BtnConfirmVisibility = false;
     ServerTipDialogUIView.Instance.isClick = false;
 }
Exemplo n.º 3
0
 protected override void Awake()
 {
     base.Awake();
     ServerTipDialogUIViewModel.instance = this;
 }