Beispiel #1
0
        public MainForm()
        {
            InitializeComponent();

            AssetBrowser   = new AssetBrowser();
            ModelBrowser   = new ModelBrowser();
            TextureBrowser = new TextureBrowser();
            SoundBrowser   = new SoundBrowser();
            ZoneBrowser    = new ZoneBrowser();
        }
Beispiel #2
0
        public MainForm()
        {
            InitializeComponent();

            AssetBrowser = new AssetBrowser();
            ModelBrowser = new ModelBrowser();
            TextureBrowser = new TextureBrowser();
            SoundBrowser = new SoundBrowser();
            ZoneBrowser = new ZoneBrowser();
        }
Beispiel #3
0
        private void Form1_Load(object sender, EventArgs e)
        {
            AssetBrowser.CreateInstance();
            ModelBrowser.CreateInstance();
            MaterialBrowser.CreateInstance();
            ImageBrowser.CreateInstance();
            SoundBrowser.CreateInstance();
            ActorForm.CreateInstance();

            ImageList imageList = new ImageList();

            imageList.Images.Add(Properties.Resources.box_small);
            imageList.Images.Add(Properties.Resources.tree_small);
            tabControl1.ImageList = imageList;

            TabPage assetBrowserTabPage = new TabPage("Asset Browser");

            assetBrowserTabPage.Controls.Add(AssetBrowser.Instance);
            assetBrowserTabPage.ImageIndex = 0;
            tabControl1.TabPages.Add(assetBrowserTabPage);

            TabPage materialBrowserTabPage = new TabPage("Actor Browser");

            materialBrowserTabPage.Controls.Add(ActorForm.Instance);
            materialBrowserTabPage.ImageIndex = 2;
            tabControl1.TabPages.Add(materialBrowserTabPage);


            TabPage modelBrowserTabPage = new TabPage("Model Browser");

            modelBrowserTabPage.Controls.Add(ModelBrowser.Instance);
            modelBrowserTabPage.ImageIndex = 1;
            tabControl1.TabPages.Add(modelBrowserTabPage);


            TabPage imageBrowser = new TabPage("Image Browser");

            imageBrowser.Controls.Add(ImageBrowser.Instance);
            imageBrowser.ImageIndex = 3;
            tabControl1.TabPages.Add(imageBrowser);

            TabPage soundBrowser = new TabPage("Sound Browser");

            soundBrowser.Controls.Add(SoundBrowser.Instance);
            soundBrowser.ImageIndex = 4;
            soundBrowser.Enter     += SoundBrowser.Instance.onEnter;
            tabControl1.TabPages.Add(soundBrowser);
        }
Beispiel #4
0
 public static void DeleteInstance()
 {
     instance = null;
 }
Beispiel #5
0
 public static void CreateInstance()
 {
     instance = new AssetBrowser();
 }
Beispiel #6
0
 public static void DeleteInstance()
 {
     instance = null;
 }
Beispiel #7
0
 public static void CreateInstance()
 {
     instance = new AssetBrowser();
 }