Browse Source

- Use the canvas background color instead of the scene background color until I can sort out the clipping.

MelvMay-GG 12 years ago
parent
commit
b637760
2 changed files with 6 additions and 6 deletions
  1. 1 1
      modules/AppCore/1/main.cs
  2. 5 5
      modules/Sandbox/1/scripts/toolbox.cs

+ 1 - 1
modules/AppCore/1/main.cs

@@ -33,7 +33,7 @@ function AppCore::create( %this )
     
     // Set the canvas color
     Canvas.BackgroundColor = "CornflowerBlue";
-    Canvas.UseBackgroundColor = false;
+    Canvas.UseBackgroundColor = true;
     
     // Initialize audio
     initializeOpenAL();

+ 5 - 5
modules/Sandbox/1/scripts/toolbox.cs

@@ -215,15 +215,15 @@ function toggleToolbox(%make)
 function BackgroundColorSelectList::onSelect(%this)
 {           
     // Fetch the index.
-    $activeSceneColor = %this.getSelected();
+    $activeBackgroundColor = %this.getSelected();
  
     // Finish if the sandbox scene is not available.
     if ( !isObject(SandboxScene) )
         return;
             
     // Set the scene color.
-    SandboxScene.BackgroundColor = getStockColorName($activeSceneColor);
-    SandboxScene.UseBackgroundColor = true;
+    Canvas.BackgroundColor = getStockColorName($activeBackgroundColor);
+    Canvas.UseBackgroundColor = true;
 }
 
 //-----------------------------------------------------------------------------
@@ -296,8 +296,8 @@ function updateToolboxOptions()
         return;
         
     // Set the scene color.
-    SandboxScene.BackgroundColor = getStockColorName($activeSceneColor);
-    SandboxScene.UseBackgroundColor = true;        
+    Canvas.BackgroundColor = getStockColorName($activeBackgroundColor);
+    Canvas.UseBackgroundColor = true;        
        
     // Set option.
     if ( $pref::Sandbox::metricsOption )