private void Update() { try { if (queue.Count != 0 && !IsDialogActive) { DialogParameter parameter = queue.Dequeue(); UIDialogBase activeDialog = LoadScene(parameter._strPath); // 去加载这个UI界面 if (activeDialog != null) { openedList.Add(activeDialog); // 加到openedList里 activeDialog.transform.SetAsLastSibling(); activeDialog.OnSceneActivated(parameter._paras); // 场景打开的时候,把参数传递进去 } else { PPP.pppShow(); } } if (tipsQueue.Count != 0) { DialogParameter parameter = tipsQueue.Dequeue(); UIDialogBase dialog = LoadScene(parameter._strPath); dialog.transform.SetAsLastSibling(); dialog.OnSceneActivated(parameter._paras); } } catch (Exception ex) { PPP.pppShow(true, ex.ToString()); } }
public void PushDialogImmediately(UIDialog dialog, params object[] paras) { DialogParameter parameter = new DialogParameter(dialog, paras); UIDialogBase activeDialog = LoadScene(parameter.dialog); openedList.Add(activeDialog); activeDialog.transform.SetAsLastSibling(); activeDialog.OnSceneActivated(parameter.paras); }
public ActionResult GridOfPriceListMultiselect(string containerId) { var dp = new DialogParameter() { Id = Guid.NewGuid(), ContainerId = containerId }; return(PartialView(dp)); }
// Отправить в 1С public PartialViewResult ItemsFor1CView(Guid tmcInId, string containerId) { DialogParameter parameter = new DialogParameter() { Id = tmcInId, ContainerId = containerId }; return(PartialView(parameter)); }
public ActionResult GridOfExpertiseMultiselect(string containerId, int type) { var dp = new DialogParameter() { Id = Guid.NewGuid(), ContainerId = containerId, Type = type }; return(PartialView(dp)); }
/// <summary> /// 加载UI界面 /// </summary> /// <param name="strPath"></param> /// <param name="paras"></param> public void PushDialog(string strPath, params object[] paras) { if (strPath == null || strPath.Length == 0) { PPP.pppShow(); return; } DialogParameter parameter = new DialogParameter(strPath, paras); queue.Enqueue(parameter); }
private void Test() { var parameter = new DialogParameter(); parameter.SetIconQuestion(); parameter.SetTypeYesNo(); parameter.Message = MessageConstants.WARNING_MESSAGE_002.Replace("{0}", "( ^)o(^ )"); DialogMessenger.Show(parameter); //var test = DialogMessenger.Show(new FileSaveParameter()); //if (test.Result) { } }
static int _g_get_bgSlideTime(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DialogParameter gen_to_be_invoked = (DialogParameter)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.bgSlideTime); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _s_set_arabicFontSize(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DialogParameter gen_to_be_invoked = (DialogParameter)translator.FastGetCSObj(L, 1); gen_to_be_invoked.arabicFontSize = LuaAPI.xlua_tointeger(L, 2); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _s_set_wordFadeOutTime(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DialogParameter gen_to_be_invoked = (DialogParameter)translator.FastGetCSObj(L, 1); gen_to_be_invoked.wordFadeOutTime = (float)LuaAPI.lua_tonumber(L, 2); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
/// <summary> /// 立刻加载UI界面 /// </summary> /// <param name="strPath"></param> /// <param name="paras"></param> /// <returns></returns> public UIDialogBase PushDialogImmediately(string strPath, params object[] paras) { DialogParameter parameter = new DialogParameter(strPath, paras); UIDialogBase activeDialog = LoadScene(parameter._strPath); if (activeDialog == null) { PPP.pppShow(); return(null); } openedList.Add(activeDialog); activeDialog.transform.SetAsLastSibling(); activeDialog.OnSceneActivated(parameter._paras); return(activeDialog); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { DialogParameter gen_ret = new DialogParameter(); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to DialogParameter constructor!")); }
private void Update() { if (queue.Count != 0 && !IsDialogActive) { DialogParameter parameter = queue.Dequeue(); UIDialogBase activeDialog = LoadScene(parameter.dialog); openedList.Add(activeDialog); activeDialog.transform.SetAsLastSibling(); activeDialog.OnSceneActivated(parameter.paras); } if (tipsQueue.Count != 0) { DialogParameter parameter = tipsQueue.Dequeue(); UIDialogBase dialog = LoadScene(parameter.dialog); dialog.transform.SetAsLastSibling(); dialog.OnSceneActivated(parameter.paras); } }
public void PushTips(UIDialog dialog, params object[] paras) { DialogParameter parameter = new DialogParameter(dialog, paras); tipsQueue.Enqueue(parameter); }