コード例 #1
0
 public override void Initialize()
 {
     Tab = new ThemedTab {
         Text = "Application Output"
     };
     Content = new Widget {
         Layout = new VBoxLayout(),
         Nodes  =
         {
             (textView = new RemoteScriptingWidgets.TextView(maxRowsCount: 1500))
         }
     };
 }
コード例 #2
0
        public override void Initialize()
        {
            Tab = new ThemedTab {
                Text = "Assembly"
            };
            RemoteScriptingWidgets.Toolbar toolbar;
            Content = new Widget {
                Layout = new VBoxLayout(),
                Nodes  =
                {
                    (toolbar            = new RemoteScriptingWidgets.Toolbar()),
                    (assemblyBuilderLog = new RemoteScriptingWidgets.TextView())
                }
            };
            toolbar.Content.Nodes.AddRange(
                buildAssemblyButton = new ToolbarButton("Build Assembly")
            {
                Clicked = () => BuildAssembly(requiredBuildGame: false)
            },
                buildGameAndAssemblyButton = new ToolbarButton("Build Game and Assembly")
            {
                Clicked = () => BuildAssembly()
            }
                );

            var preferences           = ProjectPreferences.Instance;
            var arePreferencesCorrect =
                !string.IsNullOrEmpty(preferences.ScriptsPath) &&
                !string.IsNullOrEmpty(preferences.ScriptsAssemblyName) &&
                !string.IsNullOrEmpty(preferences.RemoteStoragePath);

            if (!arePreferencesCorrect)
            {
                buildAssemblyButton.Enabled        = false;
                buildGameAndAssemblyButton.Enabled = false;
                SetStatusAndLog("Preferences is invalid.");
            }
        }