pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] CVS: Games/Pingus/src/editor object_manager.cxx,1.43,1.44


From: grumbel
Subject: [Pingus-CVS] CVS: Games/Pingus/src/editor object_manager.cxx,1.43,1.44
Date: 1 Apr 2003 22:43:34 -0000

Update of /var/lib/cvs/Games/Pingus/src/editor
In directory dark:/tmp/cvs-serv5068/editor

Modified Files:
        object_manager.cxx 
Log Message:
- added default background to the editor, so that people don't can confused by 
the no-background thingy

Index: object_manager.cxx
===================================================================
RCS file: /var/lib/cvs/Games/Pingus/src/editor/object_manager.cxx,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- object_manager.cxx  28 Mar 2003 12:06:32 -0000      1.43
+++ object_manager.cxx  1 Apr 2003 22:43:32 -0000       1.44
@@ -28,7 +28,9 @@
 #include "../pingus_resource.hxx"
 #include "../pingus_error.hxx"
 #include "../worldobjsdata/worldobj_group_data.hxx"
+#include "../worldobjsdata/solid_color_background_data.hxx"
 #include "../prefab.hxx"
+#include "../stat_manager.hxx"
 #include "start_pos.hxx"
 #include "level_resizer.hxx"
 #include "object_manager.hxx"
@@ -85,6 +87,18 @@
   
   delete_all_objs();
   editor_objs.push_back(new StartPos(50, 50));
+
+  bool no_default_background = false;
+  StatManager::instance()->get_bool("no-default-background", 
no_default_background);
+  if (no_default_background == false)
+    {
+      // people tend to get confused by no background, so well, we set one per 
default
+      SolidColorBackgroundData bg_data;
+      bg_data.pos   = Vector(0,0, -100);
+      bg_data.color = Color(.3f, 0.0f, 0.0f);
+      bg_data.insert_EditorObjs(this);
+    }
+  
   editor_objs.push_back(new LevelResizer(this));
 
   // Set some default actions





reply via email to

[Prev in Thread] Current Thread [Next in Thread]