Bläddra i källkod

Fix for scroll area not resizing contents when a scrollbar is added
Added content background to inspector container UI
Slight modifications to Project Window UI so it looks better

BearishSun 10 år sedan
förälder
incheckning
57ab9f7cec

+ 1 - 0
BansheeEditor/Include/BsBuiltinEditorResources.h

@@ -386,6 +386,7 @@ namespace BansheeEngine
 
 		static const WString InspectorTitleBgTex;
 		static const WString InspectorContentBgTex;
+		static const WString InspectorContentBgAlternateTex;
 
 		static const WString ShaderDockOverlayFile;
 		static const WString ShaderSceneGridFile;

+ 15 - 1
BansheeEditor/Source/BsBuiltinEditorResources.cpp

@@ -262,6 +262,7 @@ namespace BansheeEngine
 
 	const WString BuiltinEditorResources::InspectorTitleBgTex = L"InspectorTitleBg.png";
 	const WString BuiltinEditorResources::InspectorContentBgTex = L"InspectorContentBg.png";
+	const WString BuiltinEditorResources::InspectorContentBgAlternateTex = L"InspectorContentBgAlternate.png";
 
 	/************************************************************************/
 	/* 									SHADERS                      		*/
@@ -1254,9 +1255,10 @@ namespace BansheeEngine
 		GUIElementStyle editorFieldLabelStyle;
 		editorFieldLabelStyle.font = font;
 		editorFieldLabelStyle.fontSize = DefaultFontSize;
+		editorFieldLabelStyle.normal.textColor = TextNormalColor;
 		editorFieldLabelStyle.fixedWidth = false;
 		editorFieldLabelStyle.fixedHeight = true;
-		editorFieldLabelStyle.height = 11;
+		editorFieldLabelStyle.height = 14;
 		editorFieldLabelStyle.minWidth = 10;
 		editorFieldLabelStyle.textHorzAlign = THA_Left;
 
@@ -1655,6 +1657,18 @@ namespace BansheeEngine
 
 		skin->setStyle("InspectorContentBg", inspectorContentBg);
 
+		// Inspector content alternate background
+		GUIElementStyle inspectorContentBgAlternate;
+		inspectorContentBgAlternate.normal.texture = getGUITexture(InspectorContentBgAlternateTex);
+		inspectorContentBgAlternate.minWidth = 4;
+		inspectorContentBgAlternate.minHeight = 6;
+		inspectorContentBgAlternate.border.left = 2;
+		inspectorContentBgAlternate.border.right = 2;
+		inspectorContentBgAlternate.border.top = 2;
+		inspectorContentBgAlternate.border.bottom = 4;
+
+		skin->setStyle("InspectorContentBgAlternate", inspectorContentBgAlternate);
+
 		return skin;
 	}
 

+ 2 - 2
BansheeEngine/Source/BsGUIManager.cpp

@@ -70,8 +70,8 @@ namespace BansheeEngine
 	GUIManager::GUIManager()
 		:mSeparateMeshesByWidget(true), mActiveMouseButton(GUIMouseButton::Left),
 		mCaretBlinkInterval(0.5f), mCaretLastBlinkTime(0.0f), mCaretColor(1.0f, 0.6588f, 0.0f), mIsCaretOn(false),
-		mTextSelectionColor(1.0f, 0.6588f, 0.0f), mInputCaret(nullptr), mInputSelection(nullptr), mDragState(DragState::NoDrag),
-		mActiveCursor(CursorType::Arrow), mCoreDirty(false)
+		mTextSelectionColor(0.0f, 114/255.0f, 188/255.0f), mInputCaret(nullptr), mInputSelection(nullptr), 
+		mDragState(DragState::NoDrag), mActiveCursor(CursorType::Arrow), mCoreDirty(false)
 	{
 		mOnPointerMovedConn = gInput().onPointerMoved.connect(std::bind(&GUIManager::onPointerMoved, this, _1));
 		mOnPointerPressedConn = gInput().onPointerPressed.connect(std::bind(&GUIManager::onPointerPressed, this, _1));

+ 3 - 15
BansheeEngine/Source/BsGUIScrollArea.cpp

@@ -154,11 +154,7 @@ namespace BansheeEngine
 		{
 			// Make room for scrollbar
 			visibleSize.y = (UINT32)std::max(0, (INT32)layoutArea.height - (INT32)ScrollBarWidth);
-
-			if (mVertBarType == ScrollBarType::NeverShow)
-				layoutHeight = (UINT32)visibleSize.y;
-			else
-				layoutHeight = std::max(optimalContentHeight, (UINT32)visibleSize.y); // Never go below optimal size
+			layoutHeight = (UINT32)visibleSize.y;
 
 			contentSize = GUILayoutUtility::calcActualSize(layoutWidth, layoutHeight, mContentLayout, false);
 			hasHorzScrollbar = true;
@@ -171,11 +167,7 @@ namespace BansheeEngine
 		{
 			// Make room for scrollbar
 			visibleSize.x = (UINT32)std::max(0, (INT32)layoutArea.width - (INT32)ScrollBarWidth);
-			
-			if (mHorzBarType == ScrollBarType::NeverShow)
-				layoutWidth = (UINT32)visibleSize.x;
-			else
-				layoutWidth = std::max(optimalContentWidth, (UINT32)visibleSize.x); // Never go below optimal size
+			layoutWidth = (UINT32)visibleSize.x;
 
 			contentSize = GUILayoutUtility::calcActualSize(layoutWidth, layoutHeight, mContentLayout, false);
 			hasVertScrollbar = true;
@@ -188,11 +180,7 @@ namespace BansheeEngine
 				{
 					// Make room for scrollbar
 					visibleSize.y = (UINT32)std::max(0, (INT32)layoutArea.height - (INT32)ScrollBarWidth);
-
-					if (mVertBarType == ScrollBarType::NeverShow)
-						layoutHeight = (UINT32)visibleSize.y;
-					else
-						layoutHeight = std::max(optimalContentHeight, (UINT32)visibleSize.y); // Never go below optimal size
+					layoutHeight = (UINT32)visibleSize.y;
 
 					contentSize = GUILayoutUtility::calcActualSize(layoutWidth, layoutHeight, mContentLayout, false);
 					hasHorzScrollbar = true;

+ 1 - 0
MBansheeEditor/EditorStyles.cs

@@ -26,5 +26,6 @@ namespace BansheeEditor
         public const string ScrollAreaBg = "ScrollAreaBg";
         public const string InspectorTitleBg = "InspectorTitleBg";
         public const string InspectorContentBg = "InspectorContentBg";
+        public const string InspectorContentBgAlternate = "InspectorContentBgAlternate";
     }
 }

+ 1 - 1
MBansheeEditor/Inspector/GenericInspector.cs

@@ -25,7 +25,7 @@ namespace BansheeEditor
             contentLayoutY.AddSpace(5);
             contentLayoutX.AddSpace(5);
 
-            GUIPanel backgroundPanel = gui.AddPanel(1);
+            GUIPanel backgroundPanel = gui.AddPanel(START_BACKGROUND_DEPTH);
             GUITexture inspectorContentBg = new GUITexture(null, EditorStyles.InspectorContentBg);
             backgroundPanel.AddElement(inspectorContentBg);
 

+ 19 - 8
MBansheeEditor/Inspector/InspectableArray.cs

@@ -60,7 +60,7 @@ namespace BansheeEditor
             }
         }
 
-        private const int IndentAmount = 15;
+        private const int IndentAmount = 5;
 
         private object propertyValue; // TODO - This will unnecessarily hold references to the object
         private int numArrayElements;
@@ -148,14 +148,13 @@ namespace BansheeEditor
                 guiChildLayout = null;
                 guiTitleLayout = layout.AddLayoutX(layoutIndex);
 
-                guiTitleLayout.AddElement(new GUILabel(title, GUIOption.FixedWidth(100)));
-                guiTitleLayout.AddElement(new GUILabel("Empty"));
+                guiTitleLayout.AddElement(new GUILabel(title));
+                guiTitleLayout.AddElement(new GUILabel("Empty", GUIOption.FixedWidth(100)));
 
                 if (!property.IsValueType)
                 {
                     GUIButton createBtn = new GUIButton("Cr", GUIOption.FixedWidth(20));
                     createBtn.OnClick += OnCreateButtonClicked;
-                    guiTitleLayout.AddFlexibleSpace();
                     guiTitleLayout.AddElement(createBtn);
                 }
 
@@ -163,10 +162,10 @@ namespace BansheeEditor
             }
             else
             {
-                GUIToggle guiFoldout = new GUIToggle(title, EditorStyles.Foldout, GUIOption.FixedWidth(100));
+                GUIToggle guiFoldout = new GUIToggle(title, EditorStyles.Foldout);
                 guiFoldout.Value = isExpanded;
                 guiFoldout.OnToggled += OnFoldoutToggled;
-                guiSizeField = new GUIIntField();
+                guiSizeField = new GUIIntField("", GUIOption.FixedWidth(50));
                 guiSizeField.SetRange(0, int.MaxValue);
                 GUIButton guiResizeBtn = new GUIButton("R", GUIOption.FixedWidth(20));
                 guiResizeBtn.OnClick += OnResizeButtonClicked;
@@ -176,7 +175,6 @@ namespace BansheeEditor
                 guiTitleLayout = layout.AddLayoutX(layoutIndex);
                 guiTitleLayout.AddElement(guiFoldout);
                 guiTitleLayout.AddElement(guiSizeField);
-                guiTitleLayout.AddFlexibleSpace();
                 guiTitleLayout.AddElement(guiResizeBtn);
                 guiTitleLayout.AddElement(guiClearBtn);
 
@@ -189,9 +187,22 @@ namespace BansheeEditor
                     guiChildLayout = layout.AddLayoutX(layoutIndex);
                     guiChildLayout.AddSpace(IndentAmount);
 
-                    GUILayoutY guiContentLayout = guiChildLayout.AddLayoutY();
+                    GUIPanel guiContentPanel = guiChildLayout.AddPanel();
+                    GUILayoutX guiIndentLayoutX = guiContentPanel.AddLayoutX();
+                    guiIndentLayoutX.AddSpace(IndentAmount);
+                    GUILayoutY guiIndentLayoutY = guiIndentLayoutX.AddLayoutY();
+                    guiIndentLayoutY.AddSpace(IndentAmount);
+                    GUILayoutY guiContentLayout = guiIndentLayoutY.AddLayoutY();
+                    guiIndentLayoutY.AddSpace(IndentAmount);
+                    guiIndentLayoutX.AddSpace(IndentAmount);
                     guiChildLayout.AddSpace(IndentAmount);
 
+                    short backgroundDepth = (short)(Inspector.START_BACKGROUND_DEPTH - depth - 1);
+                    string bgPanelStyle = depth % 2 == 0 ? EditorStyles.InspectorContentBgAlternate : EditorStyles.InspectorContentBg;
+                    GUIPanel backgroundPanel = guiContentPanel.AddPanel(backgroundDepth);
+                    GUITexture inspectorContentBg = new GUITexture(null, bgPanelStyle);
+                    backgroundPanel.AddElement(inspectorContentBg);
+
                     for (int i = 0; i < numArrayElements; i++)
                     {
                         EntryRow newRow = new EntryRow(guiContentLayout);

+ 19 - 8
MBansheeEditor/Inspector/InspectableList.cs

@@ -60,7 +60,7 @@ namespace BansheeEditor
             }
         }
 
-        private const int IndentAmount = 15;
+        private const int IndentAmount = 5;
 
         private object propertyValue; // TODO - This will unnecessarily hold references to the object
         private int numArrayElements;
@@ -148,14 +148,13 @@ namespace BansheeEditor
                 guiChildLayout = null;
                 guiTitleLayout = layout.AddLayoutX(layoutIndex);
 
-                guiTitleLayout.AddElement(new GUILabel(title, GUIOption.FixedWidth(100)));
-                guiTitleLayout.AddElement(new GUILabel("Empty"));
+                guiTitleLayout.AddElement(new GUILabel(title));
+                guiTitleLayout.AddElement(new GUILabel("Empty", GUIOption.FixedWidth(100)));
 
                 if (!property.IsValueType)
                 {
                     GUIButton createBtn = new GUIButton("Cr", GUIOption.FixedWidth(20));
                     createBtn.OnClick += OnCreateButtonClicked;
-                    guiTitleLayout.AddFlexibleSpace();
                     guiTitleLayout.AddElement(createBtn);
                 }
 
@@ -163,10 +162,10 @@ namespace BansheeEditor
             }
             else
             {
-                GUIToggle guiFoldout = new GUIToggle(title, EditorStyles.Foldout, GUIOption.FixedWidth(100));
+                GUIToggle guiFoldout = new GUIToggle(title, EditorStyles.Foldout);
                 guiFoldout.Value = isExpanded;
                 guiFoldout.OnToggled += OnFoldoutToggled;
-                guiSizeField = new GUIIntField();
+                guiSizeField = new GUIIntField("", GUIOption.FixedWidth(50));
                 guiSizeField.SetRange(0, int.MaxValue);
                 GUIButton guiResizeBtn = new GUIButton("R", GUIOption.FixedWidth(20));
                 guiResizeBtn.OnClick += OnResizeButtonClicked;
@@ -176,7 +175,6 @@ namespace BansheeEditor
                 guiTitleLayout = layout.AddLayoutX(layoutIndex);
                 guiTitleLayout.AddElement(guiFoldout);
                 guiTitleLayout.AddElement(guiSizeField);
-                guiTitleLayout.AddFlexibleSpace();
                 guiTitleLayout.AddElement(guiResizeBtn);
                 guiTitleLayout.AddElement(guiClearBtn);
 
@@ -189,9 +187,22 @@ namespace BansheeEditor
                     guiChildLayout = layout.AddLayoutX(layoutIndex);
                     guiChildLayout.AddSpace(IndentAmount);
 
-                    GUILayoutY guiContentLayout = guiChildLayout.AddLayoutY();
+                    GUIPanel guiContentPanel = guiChildLayout.AddPanel();
+                    GUILayoutX guiIndentLayoutX = guiContentPanel.AddLayoutX();
+                    guiIndentLayoutX.AddSpace(IndentAmount);
+                    GUILayoutY guiIndentLayoutY = guiIndentLayoutX.AddLayoutY();
+                    guiIndentLayoutY.AddSpace(IndentAmount);
+                    GUILayoutY guiContentLayout = guiIndentLayoutY.AddLayoutY();
+                    guiIndentLayoutY.AddSpace(IndentAmount);
+                    guiIndentLayoutX.AddSpace(IndentAmount);
                     guiChildLayout.AddSpace(IndentAmount);
 
+                    short backgroundDepth = (short)(Inspector.START_BACKGROUND_DEPTH - depth - 1);
+                    string bgPanelStyle = depth % 2 == 0 ? EditorStyles.InspectorContentBgAlternate : EditorStyles.InspectorContentBg;
+                    GUIPanel backgroundPanel = guiContentPanel.AddPanel(backgroundDepth);
+                    GUITexture inspectorContentBg = new GUITexture(null, bgPanelStyle);
+                    backgroundPanel.AddElement(inspectorContentBg);
+
                     for (int i = 0; i < numArrayElements; i++)
                     {
                         EntryRow newRow = new EntryRow(guiContentLayout);

+ 18 - 7
MBansheeEditor/Inspector/InspectableObject.cs

@@ -9,7 +9,7 @@ namespace BansheeEditor
 {
     public class InspectableObject : InspectableField
     {
-        private const int IndentAmount = 15;
+        private const int IndentAmount = 5;
 
         private object propertyValue;
 
@@ -61,14 +61,13 @@ namespace BansheeEditor
                 guiChildLayout = null;
                 guiTitleLayout = layout.AddLayoutX(index);
 
-                guiTitleLayout.AddElement(new GUILabel(title, GUIOption.FixedWidth(100)));
-                guiTitleLayout.AddElement(new GUILabel("Empty"));
+                guiTitleLayout.AddElement(new GUILabel(title));
+                guiTitleLayout.AddElement(new GUILabel("Empty", GUIOption.FixedWidth(100)));
 
                 if (!property.IsValueType)
                 {
                     GUIButton createBtn = new GUIButton("Cr", GUIOption.FixedWidth(20));
                     createBtn.OnClick += OnCreateButtonClicked;
-                    guiTitleLayout.AddFlexibleSpace();
                     guiTitleLayout.AddElement(createBtn);
                 }
             }
@@ -76,14 +75,13 @@ namespace BansheeEditor
             {
                 guiTitleLayout = layout.AddLayoutX(index);
 
-                GUIToggle guiFoldout = new GUIToggle(title, EditorStyles.Foldout, GUIOption.FixedWidth(100));
+                GUIToggle guiFoldout = new GUIToggle(title, EditorStyles.Foldout);
                 guiFoldout.Value = isExpanded;
                 guiFoldout.OnToggled += OnFoldoutToggled;
                 guiTitleLayout.AddElement(guiFoldout);
 
                 GUIButton clearBtn = new GUIButton("Cl", GUIOption.FixedWidth(20));
                 clearBtn.OnClick += OnClearButtonClicked;
-                guiTitleLayout.AddFlexibleSpace();
                 guiTitleLayout.AddElement(clearBtn);
 
                 if (isExpanded)
@@ -91,9 +89,22 @@ namespace BansheeEditor
                     guiChildLayout = layout.AddLayoutX(index);
                     guiChildLayout.AddSpace(IndentAmount);
 
-                    GUILayoutY guiContentLayout = guiChildLayout.AddLayoutY();
+                    GUIPanel guiContentPanel = guiChildLayout.AddPanel();
+                    GUILayoutX guiIndentLayoutX = guiContentPanel.AddLayoutX();
+                    guiIndentLayoutX.AddSpace(IndentAmount);
+                    GUILayoutY guiIndentLayoutY = guiIndentLayoutX.AddLayoutY();
+                    guiIndentLayoutY.AddSpace(IndentAmount);
+                    GUILayoutY guiContentLayout = guiIndentLayoutY.AddLayoutY();
+                    guiIndentLayoutY.AddSpace(IndentAmount);
+                    guiIndentLayoutX.AddSpace(IndentAmount);
                     guiChildLayout.AddSpace(IndentAmount);
 
+                    short backgroundDepth = (short) (Inspector.START_BACKGROUND_DEPTH - depth - 1);
+                    string bgPanelStyle = depth % 2 == 0 ? EditorStyles.InspectorContentBgAlternate : EditorStyles.InspectorContentBg;
+                    GUIPanel backgroundPanel = guiContentPanel.AddPanel(backgroundDepth);
+                    GUITexture inspectorContentBg = new GUITexture(null, bgPanelStyle);
+                    backgroundPanel.AddElement(inspectorContentBg);
+
                     SerializableObject serializableObject = property.GetObject();
                     foreach (var field in serializableObject.Fields)
                     {

+ 2 - 0
MBansheeEditor/Inspector/Inspector.cs

@@ -8,6 +8,8 @@ namespace BansheeEditor
 {
     public abstract class Inspector
     {
+        public const short START_BACKGROUND_DEPTH = 50;
+
         protected GUIPanel GUI;
         protected GUILayoutY layout;
         protected object referencedObject;

+ 6 - 6
MBansheeEditor/Inspector/InspectorWindow.cs

@@ -266,7 +266,7 @@ namespace BansheeEditor
                 GUILabel prefabLabel =new GUILabel(new LocEdString("Prefab"), GUIOption.FixedWidth(50));
                 soPrefabLayout.AddElement(prefabLabel);
 
-                //if (hasPrefab) // TODO - Disabled check for preview purposes
+                if (hasPrefab)
                 {
                     GUIButton btnApplyPrefab = new GUIButton(new LocEdString("Apply"), GUIOption.FixedWidth(60));
                     GUIButton btnRevertPrefab = new GUIButton(new LocEdString("Revert"), GUIOption.FixedWidth(60));
@@ -280,11 +280,11 @@ namespace BansheeEditor
                     soPrefabLayout.AddElement(btnRevertPrefab);
                     soPrefabLayout.AddElement(btnBreakPrefab);
                 }
-                //else
-                //{
-                //    GUILabel noPrefabLabel = new GUILabel("None");
-                //    soPrefabLayout.AddElement(noPrefabLabel);
-                //}
+                else
+                {
+                    GUILabel noPrefabLabel = new GUILabel("None");
+                    soPrefabLayout.AddElement(noPrefabLabel);
+                }
 
                 soHasPrefab = hasPrefab;
             }

+ 23 - 30
MBansheeEditor/ProjectWindow.cs

@@ -38,16 +38,16 @@ namespace BansheeEditor
             GUILayout firstRow = vertLayout.AddLayoutX();
             vertLayout.AddFlexibleSpace();
             GUILayout secondRow = vertLayout.AddLayoutX();
-            vertLayout.AddSpace(15);
+            vertLayout.AddSpace(5);
             GUILayout thirdRow = vertLayout.AddLayoutX();
             vertLayout.AddFlexibleSpace();
             GUILayout fourthRow = vertLayout.AddLayoutX();
             vertLayout.AddSpace(5);
 
-            projectInputBox = new GUITextField(new LocEdString("Project path"), 70, false, "", GUIOption.FixedWidth(425));
+            projectInputBox = new GUITextField(new LocEdString("Project path"), 70, false, "", GUIOption.FixedWidth(398));
             projectInputBox.Value = EditorSettings.LastOpenProject;
 
-            GUIButton openBtn = new GUIButton(new LocEdString("Open"), GUIOption.FixedWidth(50));
+            GUIButton openBtn = new GUIButton(new LocEdString("Open"), GUIOption.FixedWidth(75));
             openBtn.OnClick += OpenProject;
 
             firstRow.AddSpace(5);
@@ -61,25 +61,34 @@ namespace BansheeEditor
             secondRow.AddSpace(5);
             secondRow.AddElement(recentProjectsLabel);
             secondRow.AddFlexibleSpace();
-
-            recentProjectsArea = new GUIScrollArea(GUIOption.FixedWidth(405), GUIOption.FixedHeight(140));
-            thirdRow.AddSpace(5 + 10);
-            thirdRow.AddElement(recentProjectsArea);
-            thirdRow.AddSpace(15 + 10);
-
-            GUILayout browseBtnLayout = thirdRow.AddLayoutY();
-            GUIButton browseBtn = new GUIButton(new LocEdString("Browse"), GUIOption.FixedWidth(50));
+            GUIButton browseBtn = new GUIButton(new LocEdString("Browse"), GUIOption.FixedWidth(75));
             browseBtn.OnClick += BrowseClicked;
-            browseBtnLayout.AddElement(browseBtn);
-            browseBtnLayout.AddFlexibleSpace();
+            secondRow.AddElement(browseBtn);
+            secondRow.AddSpace(5);
+
             thirdRow.AddSpace(5);
+            GUIPanel recentProjectsPanel = thirdRow.AddPanel();
+            thirdRow.AddSpace(15 + 5 + 75);
+
+            recentProjectsArea = new GUIScrollArea(GUIOption.FixedWidth(385), GUIOption.FixedHeight(170));
+            GUILayoutX recentProjectsLayout = recentProjectsPanel.AddLayoutX();
+            recentProjectsLayout.AddSpace(10);
+            GUILayoutY recentProjectsPanelY = recentProjectsLayout.AddLayoutY();
+            recentProjectsPanelY.AddSpace(5);
+            recentProjectsPanelY.AddElement(recentProjectsArea);
+            recentProjectsPanelY.AddSpace(5);
+            recentProjectsLayout.AddFlexibleSpace();
+
+            GUIPanel scrollAreaBgPanel = recentProjectsPanel.AddPanel(1);
+            GUITexture scrollAreaBgTex = new GUITexture(null, true, EditorStyles.ScrollAreaBg);
+            scrollAreaBgPanel.AddElement(scrollAreaBgTex);
 
             autoLoadToggle = new GUIToggle("");
             autoLoadToggle.Value = EditorSettings.AutoLoadLastProject;
 
             GUILabel autoLoadLabel = new GUILabel(new LocEdString("Automatically load last open project"));
 
-            GUIButton createBtn = new GUIButton(new LocEdString("Create"), GUIOption.FixedWidth(50));
+            GUIButton createBtn = new GUIButton(new LocEdString("Create new"), GUIOption.FixedWidth(75));
             createBtn.OnClick += CreateClicked;
 
             fourthRow.AddSpace(5);
@@ -90,22 +99,6 @@ namespace BansheeEditor
             fourthRow.AddSpace(5);
 
             RefreshRecentProjects();
-
-            // Add scroll area background
-            GUIPanel scrollAreaBgPanel = GUI.AddPanel(1);
-
-            GUITexture scrollAreaBgTex = new GUITexture(null, true, EditorStyles.ScrollAreaBg);
-            scrollAreaBgPanel.AddElement(scrollAreaBgTex);
-
-            Rect2I bounds = vertLayout.Bounds;
-            Rect2I scrollAreaBounds = recentProjectsArea.Bounds;
-
-            scrollAreaBounds.x -= 10;
-            scrollAreaBounds.y += bounds.y - 10;
-            scrollAreaBounds.height += 20;
-            scrollAreaBounds.width += 20;
-
-            scrollAreaBgTex.Bounds = scrollAreaBounds;
         }
 
         void OpenProject()

+ 0 - 1
TODO.txt

@@ -69,7 +69,6 @@ Other polish:
   - Game Object (also add to context): Create(Empty, Empty Child, Camera, Renderable, Point/Spot/Directional Light), Apply prefab, Break prefab, Revert prefab
    - Possibly create helper objects: Cube, Sphere, Plane, Quad, Capsule, Cylinder
   - Help - About, API Reference (link to site)
- - New UI look
  - When I expand inspector elements and them come back to that object it should remember the previous state
    - Add a chaching mechanism to inspector (likely based on instance ID & property names)
    - This has to work not only when I come back to the object, but whenever inspector rebuilds (e.g. after removing element from array)