コード例 #1
0
ファイル: StoryTextEvent.cs プロジェクト: hitnoodle/TGK-RPG
        public StoryTextEvent(StoryText text)
            : base()
        {
            Type = StoryEventType.Text;

            CurrentText = text;
        }
コード例 #2
0
ファイル: StoryTextEvent.cs プロジェクト: hitnoodle/TGK-RPG
        public StoryTextEvent()
            : base()
        {
            Type = StoryEventType.Text;

            CurrentText = new StoryText();
        }
コード例 #3
0
ファイル: StoryChoiceEvent.cs プロジェクト: hitnoodle/TGK-RPG
        public StoryChoiceEvent()
            : base()
        {
            Type = StoryEventType.Choice;

            CurrentText = new StoryText();

            Choices = new List<string>();

            NextID.Clear();
        }
コード例 #4
0
ファイル: StoryChoiceEvent.cs プロジェクト: hitnoodle/TGK-RPG
        public StoryChoiceEvent(StoryText text, List<string> choices)
            : base()
        {
            Type = StoryEventType.Choice;

            CurrentText = text;

            Choices = choices;

            NextID.Clear();
            for(int i=0;i<Choices.Count;i++) NextID.Add(0);
        }
コード例 #5
0
ファイル: StoryClassicUI.cs プロジェクト: hitnoodle/TGK-RPG
    void ShowCurrentText(StoryText storyText)
    {
        HideChoiceUI();

        TextName.text = storyText.Name;
        TextStory.text = ResolveTextSize(storyText.Text, LineLength);
    }
コード例 #6
0
ファイル: StoryClassicUI.cs プロジェクト: hitnoodle/TGK-RPG
    void ShowCurrentChoice(StoryText storyText, List<string> choices)
    {
        TextName.text = storyText.Name;
        TextStory.text = ResolveTextSize(storyText.Text, LineLength);

        ShowChoiceUI();

        currentChoices = choices;

        string choiceResolved = ResolveChoiceText(currentChoices, choiceSelected);
        ChoiceText.text = choiceResolved;

        ResolveChoiceBox(choices);
    }