Beispiel #1
0
    public static UIPopup_TwoBtn Create(string msg_, string title_ = null, string btnMsgLeft_ = null, string btnMsgRight_ = null, Action actOnClickLeft_ = null, Action actOnClickRight_ = null)
    {
        UIPopup_TwoBtn popup = UIManager.a.OpenPopup <UIPopup_TwoBtn>();

        popup._txtMsg.text      = false == msg_.IsNullOrEmpty() ? msg_ : string.Empty;
        popup._txtTitle.text    = false == title_.IsNullOrEmpty() ? title_ : "ERROR";          //I2.Loc.ScriptLocalization.Get("ERROR");
        popup._txtBtnLeft.text  = false == btnMsgLeft_.IsNullOrEmpty() ? btnMsgLeft_ : "NO";   //I2.Loc.ScriptLocalization.Get("NO");
        popup._txtBtnRight.text = false == btnMsgRight_.IsNullOrEmpty() ? btnMsgRight_ : "OK"; //I2.Loc.ScriptLocalization.Get("OK");
        popup._actOnClickLeft  += actOnClickLeft_;
        popup._actOnClickRight += actOnClickRight_;

        return(popup);
    }
Beispiel #2
0
 public UIPopup_TwoBtn OpenPopup_TwoBtn(string msg_, string title_ = null, string btnMsgLeft_ = null, string btnMsgRight_ = null, Action actOnClickLeft_ = null, Action actOnClickRight_ = null)
 {
     return(UIPopup_TwoBtn.Create(msg_, title_, btnMsgLeft_, btnMsgRight_, actOnClickLeft_, actOnClickRight_));
 }