Inheritance: GlueView.Plugin.GlueViewPlugin
        public FullScriptingReplForm(ScriptParsingPlugin scriptParsingPlugin)
        {
            InitializeComponent();
            mScriptParsingPlugin = scriptParsingPlugin;

            ClassScopeTextBox.AllowDrop = true;
            ClassScopeTextBox.DragDrop += HandleDragDrop;
            ClassScopeTextBox.SelectAll();
            int numberOfTabs = 30;
            int[] tabs = new int[numberOfTabs];
            for (int i = 0; i < tabs.Length; i++)
            {
                tabs[i] = 14 * i;
            }
            ClassScopeTextBox.SelectionTabs = tabs;

            InitializeTextBox.AllowDrop = true;
            InitializeTextBox.DragDrop += HandleDragDrop;
            InitializeTextBox.SelectionTabs = tabs;

            UpdateTextBox.AllowDrop = true;
            UpdateTextBox.DragDrop += HandleDragDrop;
            UpdateTextBox.SelectionTabs = tabs;
            // does not work on rich text boxes
            //SetCueText(InitializeTextBox, "<Add Intialize Code Here>");
            //SetCueText(UpdateTextBox, "<Add Update Code Here>");
        }
        public void Initialize()
        {
            OverallInitializer.Initialize();

            mPlugin = new ScriptParsingPlugin();
            mPlugin.StartUpForTests();
            mExpressionParser = new ExpressionParser();
            mExpressionParser.LogStringBuilder = mLog;
            
            CreateElementRuntime("ExpressionParserTestEntity");

            CreateParentElementRuntime();

            List<string> languages = new List<string>();
            languages.Add("ID");
            languages.Add("English");
            languages.Add("Spanish");

            Dictionary<string, string[]> entries = new Dictionary<string, string[]>();

            entries.Add("T_Test", new string[]
            {
                "T_Test",
                "Test in English",
                "Test in Spanish"
            });

            LocalizationManager.AddDatabase(entries, languages);
        }
Exemple #3
0
        public override void StartUp()
        {
            mSelf = this;

            mIsActive = true;
            this.BeforeVariableSet += new EventHandler <FlatRedBall.Glue.VariableSetArgs>(OnBeforeVariableSet);
            this.AfterVariableSet  += new EventHandler <FlatRedBall.Glue.VariableSetArgs>(HandleAfterVariableSet);
            this.ElementLoaded     += new EventHandler(OnElementLoaded);
            this.ResolutionChange  += new Action(HandleResolutionChange);
            this.Update            += new EventHandler(HandleUpdate);

            StartUpForTests();

#if !UNIT_TESTS
            mControl = new ScriptingControl(this);
            GlueViewCommands.Self.CollapsibleFormCommands.AddCollapsableForm(
                "Script Parsing", 80, mControl, this);

            mControl.ButtonClick += new EventHandler(OnDebugButtonClick);
#endif
        }
        public override void StartUp()
        {
            mSelf = this;

            mIsActive = true;
            this.BeforeVariableSet += new EventHandler<FlatRedBall.Glue.VariableSetArgs>(OnBeforeVariableSet);
            this.AfterVariableSet += new EventHandler<FlatRedBall.Glue.VariableSetArgs>(HandleAfterVariableSet);
            this.ElementLoaded += new EventHandler(OnElementLoaded);
            this.ResolutionChange += new Action(HandleResolutionChange);
            this.Update += new EventHandler(HandleUpdate);

            StartUpForTests();
            
#if !UNIT_TESTS
            mControl = new ScriptingControl(this);
            GlueViewCommands.Self.CollapsibleFormCommands.AddCollapsableForm(
                "Script Parsing", 80, mControl, this);

            mControl.ButtonClick += new EventHandler(OnDebugButtonClick);
#endif
        }
 public ScriptingControl(ScriptParsingPlugin scriptParsingPlugin)
 {
     mScriptParsingPlugin = scriptParsingPlugin;
     InitializeComponent();
 }
 public ScriptingControl(ScriptParsingPlugin scriptParsingPlugin)
 {
     mScriptParsingPlugin = scriptParsingPlugin;
     InitializeComponent();
 }