public void GoPage(EPage ePage, CUIPageConfig config) { if (null != m_pPages[(int)m_eCurrent]) { m_pPages[(int)m_eCurrent].Hide(); } m_eCurrent = ePage; m_pPages[(int)m_eCurrent].Show(config); }
public override void Intial(UIManager pManager, EPage ePage) { base.Intial(pManager, ePage); CmpShader.SetInt("size", reso); m_iK1Handle = CmpShader.FindKernel("CaclK1"); m_iK2Handle = CmpShader.FindKernel("CaclK2"); m_iK3Handle = CmpShader.FindKernel("CaclK3"); m_iKernelHandle = CmpShader.FindKernel("CSMain"); m_iKernelGetXYZ = GetXYZ.FindKernel("CSMain"); m_pRKMiddle = new RenderTexture(reso * 2, reso * 2, 0, RenderTextureFormat.ARGBFloat); m_pRKMiddle.enableRandomWrite = true; m_pRKMiddle.Create(); CmpShader.SetTexture(m_iK1Handle, "k1", m_pRKMiddle); CmpShader.SetTexture(m_iK2Handle, "k1", m_pRKMiddle); CmpShader.SetTexture(m_iK3Handle, "k1", m_pRKMiddle); CmpShader.SetTexture(m_iKernelHandle, "k1", m_pRKMiddle); m_pConfiguration = new RenderTexture(reso, reso, 0, RenderTextureFormat.ARGBFloat); m_pConfiguration.enableRandomWrite = true; m_pConfiguration.Create(); m_imgShow.material.SetTexture("_Using", m_pConfiguration); CmpShader.SetTexture(m_iK1Handle, "magneticMomentum", m_pConfiguration); CmpShader.SetTexture(m_iK2Handle, "magneticMomentum", m_pConfiguration); CmpShader.SetTexture(m_iK3Handle, "magneticMomentum", m_pConfiguration); CmpShader.SetTexture(m_iKernelHandle, "magneticMomentum", m_pConfiguration); m_pLastConfig = new Texture2D(reso, reso, TextureFormat.RGB24, false); m_pConfigurationTmp2 = new Texture2D(reso, reso, TextureFormat.RGB24, false); m_pJDBKTmp = new Texture2D(reso, reso, TextureFormat.RGBAFloat, false); m_pJ = new Texture2D(reso, reso, TextureFormat.RGBA32, false); m_pD = new Texture2D(reso, reso, TextureFormat.RGBA32, false); m_pB = new Texture2D(reso, reso, TextureFormat.RGBA32, false); m_pK = new Texture2D(reso, reso, TextureFormat.RGBA32, false); m_pBoundTexture = new Texture2D(reso, reso, TextureFormat.RGBA4444, false); m_pLastConfigRT = new RenderTexture(reso, reso, 0, RenderTextureFormat.ARGB32); m_pLastConfigRT.enableRandomWrite = true; m_pLastConfigRT.Create(); GetXYZ.SetTexture(m_iKernelGetXYZ, "Mag", m_pConfiguration); GetXYZ.SetTexture(m_iKernelGetXYZ, "Result", m_pLastConfigRT); Debug.Log("All texture created"); }
private void ClickCallPage() { bool bOpenDelay = IsOpenDelay(); closeSelWnd(); //closeSelBtnAnimator(); //WndManager.CreateWnd<LotteryWnd>(WndType.NormalWnd, false, false, null); StartCoroutine(OpenPanel(EPage.CallPage, bOpenDelay ? m_delayTimeOpenWnd : 0.0f)); //m_aniCallPage.SetBool("Selected", true); m_aniBtnPage.SetBool("Tag_6", true); m_ePage = EPage.CallPage; }
private void ClickHomePage() { //先去判断 在去关闭界面 bool bOpenDelay = IsOpenDelay(); closeSelWnd(); //closeSelBtnAnimator(); //WndManager.CreateWnd<HomepageWnd>(WndType.MenuWnd, false, false, null); StartCoroutine(OpenPanel(EPage.HomePage, bOpenDelay ? m_delayTimeOpenWnd : 0.0f)); //if (null != m_aniHomePage) { // m_aniHomePage.SetBool("Selected", true); //} m_aniBtnPage.SetBool("Tag_1", true); m_ePage = EPage.HomePage; }
private void ClickClanPage() { //var varWnd = WndManager.FindWnd<TeamsettingWnd>(); if (m_ePage == EPage.ClanPage) { return; } bool bOpenDelay = IsOpenDelay(); closeSelWnd(); //closeSelBtnAnimator(); //WndManager.CreateWnd<TeamsettingWnd>(WndType.MenuWnd, false, false, null); StartCoroutine(OpenPanel(EPage.ClanPage, bOpenDelay ? m_delayTimeOpenWnd : 0.0f)); //m_aniClanPage.SetBool("Selected", true); m_aniBtnPage.SetBool("Tag_5", true); m_ePage = EPage.ClanPage; }
private IEnumerator OpenPanel(EPage ePanelType, float delayTime) { SoundManager.PlayMusic(3); //yield return new WaitForSeconds(delayTime); yield return(Yielders.GetWaitForSeconds(delayTime)); closeSelWnd(); switch (ePanelType) { case EPage.CityPage: break; case EPage.ClanPage: break; default: break; } //WndManager.CreateWnd<HerolistWnd>(WndType.NormalWnd, false, false, (wnd) => { }); }
public void SetCurrentPage(EPage page) { CurrentPage = page; PageChanged?.Invoke(this, EventArgs.Empty); }
///<summary> ///Decides and returns a redirection path according authorization, ///current page, role of the user obtained by user cookie and passed ///to this ///</summary> public static string Authenticator(ClaimsPrincipal user, EPage currPage) { string authStr = "111"; if (currPage != EPage.login) { try { authStr = user.FindFirst("AuthorisationString").Value; } catch (Exception) { } } try { if (!user.Identity.IsAuthenticated) { if (currPage != EPage.login) { return("/login"); } else { return(""); } } } catch (Exception) { if (currPage != EPage.login) { return("/login"); } else { return(""); } } string role = user.FindFirst("Role").Value; if (role == "1") { if (currPage == EPage.login) { return("/admin"); } else if (currPage == EPage.authTable && authStr[2] == '0') { return("/admin"); } else if (currPage == EPage.authorize && authStr[2] == '0') { return("/admin"); } else if (currPage == EPage.hoursChange && authStr[0] == '0') { return("/admin"); } else if (currPage == EPage.requestRespond && authStr[1] == '0') { return("/admin"); } return(""); } else if (role == "2") { if (currPage == EPage.login && currPage != EPage.worked && currPage != EPage.excuse) { return("/worked"); } return(""); } else { if (currPage != EPage.login) { return("/login"); } else { return(""); } } }
protected void GoPage(EPage eNextPage, CUIPageConfigSimulate config) { m_eNextPage = eNextPage; m_pNextPageConfig = config; ToHide(); }
public virtual void Intial(UIManager pManager, EPage ePage) { m_pOwner = pManager; m_ePage = ePage; }
public void InitPage() { m_aniBtnPage.SetBool("Tag_1", true); m_ePage = EPage.HomePage; }