Ejemplo n.º 1
0
        public VMEModePanel (EditorWindow _window, KeyCode _toggleKey, VMEVoxelSwatchPanel _swatchPanel) {

            base.toggleKey = _toggleKey;
            base.parentWindow = _window;
            swatchPanelReference = _swatchPanel;
            editControls = new VMEEditControls(_swatchPanel);
            paintControls = new VMEPaintControls(_swatchPanel);

        }
Ejemplo n.º 2
0
        static void Init()
        {
            VMEMainWindow window = (VMEMainWindow)EditorWindow.GetWindow(typeof(VMEMainWindow));

            Instance = window;

            //create background color.
            tex = new Texture2D(1, 1, TextureFormat.RGBA32, false);
            tex.SetPixel(0, 0, new Color(0.25f, 0.25f, 0.25f, 1));
            tex.Apply();

            window.Show();
            window.titleContent.text = "VME";

            settingsObject = VMESettingsObject.LoadScriptableObject();
            mainPanel      = new VMEMainPanel(window, settingsObject.TOGGLE_EDITOR);
            swatchPanel    = new VMEVoxelSwatchPanel(window, settingsObject.ENABLE_SWATCH);
            fileManager    = new VMEFileManagerPanel(window, settingsObject.ENABLE_FILEMANAGER);
            modePanel      = new VMEModePanel(window, settingsObject.ENABLE_MODE, swatchPanel);
            chunkPanel     = new VMEChunkPanel(window, settingsObject.ENABLE_CHUNK);
            selectionPanel = new VMESelectionPanel();
        }
Ejemplo n.º 3
0
        static void Init () {

            VMEMainWindow window = (VMEMainWindow)EditorWindow.GetWindow(typeof(VMEMainWindow));
            Instance = window;

            //create background color.
            tex = new Texture2D(1, 1, TextureFormat.RGBA32, false);
            tex.SetPixel(0, 0, new Color(0.25f, 0.25f, 0.25f, 1));
            tex.Apply();

            window.Show();
            window.titleContent.text = "VME";

            settingsObject = VMESettingsObject.LoadScriptableObject();
            mainPanel = new VMEMainPanel(window, settingsObject.TOGGLE_EDITOR);
            swatchPanel = new VMEVoxelSwatchPanel(window, settingsObject.ENABLE_SWATCH);
            fileManager = new VMEFileManagerPanel(window, settingsObject.ENABLE_FILEMANAGER);
            modePanel = new VMEModePanel(window, settingsObject.ENABLE_MODE, swatchPanel);
            chunkPanel = new VMEChunkPanel(window, settingsObject.ENABLE_CHUNK);
            selectionPanel = new VMESelectionPanel();

            

        }
Ejemplo n.º 4
0
 public VMEEditControls(VMEVoxelSwatchPanel _voxelswatchpanel)
 {
     voxelSwatchReference = _voxelswatchpanel;
     settingsObject       = VMESettingsObject.LoadScriptableObject();
 }
Ejemplo n.º 5
0
        public VMEPaintControls (VMEVoxelSwatchPanel _voxelswatchpanel) {

        voxelSwatchReference = _voxelswatchpanel;
        settingsObject = VMESettingsObject.LoadScriptableObject();

        }