Ejemplo n.º 1
0
    // Temporary location until we have a better dialog manager
    private void AddMainMenuItems()
    {
        GameMenuManager.Instance.AddMenuItem(
            "menu_work",
            () => dialogBoxJobList.ShowDialog(),
            "menu_construction");

        GameMenuManager.Instance.AddMenuItem(
            "menu_world",
            null,
            "menu_work");

        GameMenuManager.Instance.AddMenuItem(
            "menu_quests",
            () => dialogBoxQuests.ShowDialog(),
            "menu_world");

        GameMenuManager.Instance.AddMenuItem(
            "menu_options",
            () =>
        {
            if (dialogBoxSettings.isActiveAndEnabled)
            {
                dialogBoxSettings.CloseDialog();
            }

            dialogBoxOptions.ShowDialog();
        },
            "menu_quests");
    }
Ejemplo n.º 2
0
    // Temporary location until we have a better dialog manager
    private void AddMainMenuItems()
    {
        GameMenuManager.Instance.AddMenuItem(
            "menu_work",
            () => dialogBoxJobList.ShowDialog(),
            "menu_construction");

        GameMenuManager.Instance.AddMenuItem(
            "menu_world",
            null,
            "menu_work");

        GameMenuManager.Instance.AddMenuItem(
            "menu_quests",
            () => dialogBoxQuests.ShowDialog(),
            "menu_world");

        GameMenuManager.Instance.AddMenuItem(
            "menu_options",
            () =>
        {
            dialogBoxOptions.ShowDialog();
        },
            "menu_quests");
    }