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

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

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

        return(null);
    }
Beispiel #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);
            }
        }
    }
Beispiel #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;
        }
    }
Beispiel #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();
    }