Exemple #1
0
    public void Hide()
    {
        DialogueRender.enabled = false;

        // Hide visible information
        DialoguePanel.visible           = false;
        PortraitContainer.style.display = DisplayStyle.None;
        NameLabel.visible = false;
        this.choice_controller.Hide();
        this.recipe_controller.Hide();

        // Clear dialogue node state
        dialogue_node = null;
        choice_node   = null;
        recipe_node   = null;
    }
Exemple #2
0
    public void Show(DialogueNode node, Inventory inventory, FlagSet flag_set)
    {
        DialogueRender.enabled = true;

        dialogue_node  = node;
        this.inventory = inventory;
        ShowDialogue();
        this.do_confirm = false;
        if (node is DialogueChoiceNode)
        {
            choice_node = node as DialogueChoiceNode;
            ShowChoices(flag_set);
        }
        if (node is MakeRecipeNode)
        {
            recipe_node = node as MakeRecipeNode;
            ShowRecipes(inventory);
        }
    }