Browse Source

Slight Changes to Asset Manager

Peter Robinson 5 years ago
parent
commit
bd66bd0eaa
1 changed files with 46 additions and 11 deletions
  1. 46 11
      editor/AssetAdmin/AssetAdmin.cs

+ 46 - 11
editor/AssetAdmin/AssetAdmin.cs

@@ -24,18 +24,50 @@ function AssetAdmin::create(%this)
 {
 	%this.guiPage = EditorCore.RegisterEditor("Asset Manager", %this);
 
-	%this.comingSoon = new GuiControl()
+	%this.scroller = new GuiScrollCtrl()
 	{
-		Profile = EditorCore.themes.panelProfile;
-		HorizSizing="center";
-		VertSizing="center";
-		Position="412 324";
-		Extent="200 120";
-		minExtent="8 8";
-		Visible="1";
-		Text = "Coming Soon!";
+		Profile=EditorCore.themes.scrollingPanelProfile;
+		ThumbProfile = EditorCore.themes.scrollingPanelThumbProfile;
+		TrackProfile = EditorCore.themes.scrollingPanelTrackProfile;
+		ArrowProfile = EditorCore.themes.scrollingPanelArrowProfile;
+		HorizSizing="left";
+		VertSizing="height";
+		Position="700 0";
+		Extent="324 768";
+		MinExtent="220 200";
+		hScrollBar="dynamic";
+		vScrollBar="alwaysOn";
+		constantThumbHeight="0";
+		showArrowButtons="1";
+		scrollBarThickness="14";
 	};
-	%this.guiPage.add(%this.comingSoon);
+	%this.guiPage.add(%this.scroller);
+
+	%this.testLogButton = new GuiButtonCtrl()
+	{
+		Profile = EditorCore.themes.buttonProfile;
+		Text="Test";
+		command="";
+		HorizSizing="bottom";
+		VertSizing="right";
+		Position="0 0";
+		Extent="100 30";
+		MinExtent="80 20";
+	};
+	%this.scroller.add(%this.testLogButton);
+
+	%this.testLogButton2 = new GuiButtonCtrl()
+	{
+		Profile = EditorCore.themes.buttonProfile;
+		Text="Test2";
+		command="";
+		HorizSizing="bottom";
+		VertSizing="right";
+		Position="0 800";
+		Extent="100 30";
+		MinExtent="80 20";
+	};
+	%this.scroller.add(%this.testLogButton2);
 
 	EditorCore.FinishRegistration(%this.guiPage);
 }
@@ -47,7 +79,10 @@ function AssetAdmin::destroy(%this)
 
 function AssetAdmin::onThemeChanged(%this, %theme)
 {
-	%this.comingSoon.setProfile(%theme.panelProfile);
+	%this.scroller.setProfile(%theme.scrollingPanelProfile);
+	%this.scroller.setThumbProfile(%theme.scrollingPanelThumbProfile);
+	%this.scroller.setTrackProfile(%theme.scrollingPanelTrackProfile);
+	%this.scroller.setArrowProfile(%theme.scrollingPanelArrowProfile);
 }
 
 function AssetAdmin::open(%this)