Esempio n. 1
0
        public GraphicalConversationEditor(Conversation conversation, GCEPresentation presentation)
        {
            InitializeComponent();

            this.conversation = conversation;
            Connections       = new List <PanelConnection>();
            PanelConnection.SetWorkspace(Workspace);
            GCEPresentation.Workspace = Workspace;

            LoadPresentation(presentation);

            ScrollViewer.ScrollToVerticalOffset(Workspace.Height / 2);
            ScrollViewer.ScrollToHorizontalOffset(Workspace.Width / 2);

            WelcomeText.Visibility = Visibility.Collapsed;

            UpdateStartStatementsSequence();
        }
Esempio n. 2
0
        // -------- Start --------

        public GraphicalConversationEditor(Conversation conversation = null)
        {
            InitializeComponent();

            if (conversation == null)
            {
                this.conversation = new Conversation("test", 1906);
                Project.Quest.Conversations.Add(conversation);
            }
            else
            {
                this.conversation = conversation;
            }

            ScrollViewer.ScrollToVerticalOffset(Workspace.Height / 2);
            ScrollViewer.ScrollToHorizontalOffset(Workspace.Width / 2);

            PanelConnection.SetWorkspace(Workspace);
            Connections = new List <PanelConnection>();
        }
Esempio n. 3
0
        // ----

        public void InvokeWorkspace()
        {
            PanelConnection.SetWorkspace(Workspace);
        }