public void SectionStateEventHandler(NFCSection.UI_SECTION_STATE eState, bool bNowActive)
 {
     if (eState == NFCSection.UI_SECTION_STATE.UISS_CREATEHALL && bNowActive)
     {
         SelectJob();
     }
 }
Esempio n. 2
0
    public void RegisterSectionStateCallback(NFCSection.UI_SECTION_STATE eState, SectionStateEventHandler handler)
    {
        SectionData xData = null;

        if (mhtWindow.TryGetValue(eState, out xData))
        {
            xData.doWindowHandleDel += handler;
        }
    }
Esempio n. 3
0
    public GameObject GetGameSectionWindow(NFCSection.UI_SECTION_STATE eState)
    {
        SectionData xData = null;

        if (mhtWindow.TryGetValue(eState, out xData))
        {
            return(xData.xWindowGameObject);
        }

        return(null);
    }
Esempio n. 4
0
    public void HideState(NFCSection.UI_SECTION_STATE eState)
    {
        SectionData xData = null;

        if (mhtWindow.TryGetValue(eState, out xData))
        {
            xData.xWindowGameObject.SetActive(false);

            if (null != xData.doWindowHandleDel)
            {
                xData.doWindowHandleDel(eState, false);
            }
        }
    }
Esempio n. 5
0
    public void AddGameSectionWindow(NFCSection.UI_SECTION_STATE eState, GameObject go)
    {
        SectionData xData = null;

        if (mhtWindow.TryGetValue(eState, out xData))
        {
            xData.xWindowGameObject = go;
        }
        else
        {
            xData = new SectionData();
            xData.xWindowGameObject = go;
            mhtWindow [eState]      = xData;
        }
    }
Esempio n. 6
0
    public void SetGameState(NFCSection.UI_SECTION_STATE eState)
    {
        if (eState == meUIState)
        {
            SectionData xData = null;
            if (!mhtWindow.TryGetValue(eState, out xData) ||
                xData.xWindowGameObject.activeSelf == true)
            {
                return;
            }
        }

        HideState(meUIState);
        meUIState = eState;
        ShowState();
    }