public override void Create(FormHolder Parent)
 {
     base.Create(Parent);
     Load();
     CreateForms();
     SetComposite((Button)MyForms[0]);
 }
Exemplo n.º 2
0
        public override void Create()
        {
#if EDITOR && WINDOWS
            if (ParentLevel.LevelForEditing)
            {
                HierarchyHolder = new FormHolder();
                HierarchyHolder.AddForm(ChildHierarchy = new Hierarchy(new Vector2(0), this));
                ChildHierarchy.AddHierarchyObject(this);
            }
#endif
#if EDITOR
            UpdateTime = new StopwatchWrapper("UpdateTime");
            DrawTime   = new StopwatchWrapper("DrawTime");
#endif

            WorldViewerChildren = AddTag(GameObjectTag.WorldViewer);

            EffectDirectory  = new StringValue("Effect Directory:", "Effects/");
            ModelDirectory   = new StringValue("Model Directory:", "Models/");
            TextureDirectory = new StringValue("Texture Directory", "Textures/");
#if EDITOR && WINDOWS
            if (ParentLevel.LevelForEditing)
            {
                AddRightClickEvent("Set as Starting Scene", SetAsStart);
            }
#endif
            base.Create();
        }
        public override void Create(FormHolder Parent)
        {
            if (BackgroundTexture == null)
            {
                BackgroundTexture = Render.BlankTexture;
            }

            base.Create(Parent);
        }
Exemplo n.º 4
0
        public Level(bool LevelForEditing)
        {
#if EDITOR
            Render.EffectUpdateCalls = 0;
#endif
            this.LevelForEditing = LevelForEditing;
#if EDITOR && WINDOWS
            SceneHierarchyHolder = new FormHolder();
            if (LevelForEditing)
            {
                SceneHierarchyHolder.AddForm(MySceneHieararchy = new SceneHierarchy(new Vector2(32, 4), this));
            }
#endif
        }
Exemplo n.º 5
0
        public void UpdateSelected()
        {
            if (ObjectPropertiesHolder == null)
            {
                ObjectPropertiesHolder = new FormHolder();
            }

            ObjectPropertiesHolder.FormChildren.Clear();
            foreach (Form f in GameObject.CreateValueEditors(SelectedGameObjects))
            {
                ObjectPropertiesHolder.AddForm(f);
            }

            ArrayForms();
        }
Exemplo n.º 6
0
        public void AddToolbarForm(Form f)
        {
#if EDITOR && WINDOWS
            if (ParentLevel == null)
            {
                ParentLevel = Level.ReferenceLevel;
            }
            if (ParentLevel.LevelForEditing)
            {
                if (TopbarTools == null)
                {
                    TopbarTools = new FormHolder();
                }
                WindowTools.AddForm(f);
            }
#endif
        }
Exemplo n.º 7
0
 public override void Create(FormHolder Parent)
 {
     base.Create(Parent);
     Load();
     CreateForms();
 }
Exemplo n.º 8
0
 public virtual void Create(FormHolder Parent)
 {
     this.Parent = Parent;
 }
 public override void Create(FormHolder Parent)
 {
     base.Create(Parent);
 }
 public override void Create(FormHolder Parent)
 {
     base.Create(Parent);
     CreateForms(TopRightCorner);
 }