コード例 #1
0
ファイル: VMEModePanel.cs プロジェクト: KevinBreurken/VME
        public VMEModePanel (EditorWindow _window, KeyCode _toggleKey, VMEVoxelSwatchPanel _swatchPanel) {

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

        }
コード例 #2
0
ファイル: VMEWindow.cs プロジェクト: TorresLabs/VME
        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();
        }
コード例 #3
0
ファイル: VMEWindow.cs プロジェクト: KevinBreurken/VME
        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();

            

        }
コード例 #4
0
 public VMEEditControls(VMEVoxelSwatchPanel _voxelswatchpanel)
 {
     voxelSwatchReference = _voxelswatchpanel;
     settingsObject       = VMESettingsObject.LoadScriptableObject();
 }
コード例 #5
0
ファイル: VMEPaintControls.cs プロジェクト: KevinBreurken/VME
        public VMEPaintControls (VMEVoxelSwatchPanel _voxelswatchpanel) {

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

        }