Esempio n. 1
0
    public void Separate()
    {
        HSeparator separator = (HSeparator)separatorTemplate.Duplicate();

        separator.Show();
        AddChild(separator);
    }
Esempio n. 2
0
    private void onStoryEnded()
    {
        CanvasItem endOfStory = new VBoxContainer();

        endOfStory.AddChild(new HSeparator());
        CanvasItem endOfStoryLine = new HBoxContainer();

        endOfStory.AddChild(endOfStoryLine);
        endOfStory.AddChild(new HSeparator());
        Control separator = new HSeparator();

        separator.SizeFlagsHorizontal = (int)(SizeFlags.Fill | SizeFlags.Expand);
        Label endOfStoryText = new Label();

        endOfStoryText.Text = "End of story";
        endOfStoryLine.AddChild(separator);
        endOfStoryLine.AddChild(endOfStoryText);
        endOfStoryLine.AddChild(separator.Duplicate());
        addToStory(endOfStory);
    }