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

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

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

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