Esempio n. 1
0
        private void OpenYamlEditorAction(object sender, EventArgs e)
        {
            string yaml = AampLibraryCSharp.YamlConverter.ToYaml(AampFile.aampFile);

            STForm form = new STForm();

            form.Text = "YAML Text Editor";
            var panel = new STPanel()
            {
                Dock = DockStyle.Fill,
            };

            form.AddControl(panel);
            var editor = new TextEditor()
            {
                Dock = DockStyle.Fill,
            };

            editor.FillEditor(yaml);
            editor.IsYAML = true;
            panel.Controls.Add(editor);

            if (form.ShowDialog() == DialogResult.OK)
            {
            }
        }
Esempio n. 2
0
        private void dockToolStripMenuItem_Click(object sender, EventArgs e)
        {
            STForm floatingForm = new STForm();

            floatingForm.AddControl(stPanel4);
            floatingForm.Show(this);
        }
Esempio n. 3
0
 private void showGameWindowToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (GamePreviewWindow == null || GamePreviewWindow.Disposing || GamePreviewWindow.IsDisposed)
     {
         GamePreviewWindow            = new LayoutViewer(this, ActiveLayout, Textures);
         GamePreviewWindow.GameWindow = true;
         GamePreviewWindow.Dock       = DockStyle.Fill;
         STForm form = new STForm();
         form.Text = "Game Preview";
         form.AddControl(GamePreviewWindow);
         form.Show(this);
     }
 }