Explorar o código

Added create atlas example

Björn Ritzl hai 1 ano
pai
achega
f03fe5ecbb
Modificáronse 2 ficheiros con 19 adicións e 1 borrados
  1. 18 0
      examples/_main/loader.go
  2. 1 1
      examples/_main/menu.gui_script

+ 18 - 0
examples/_main/loader.go

@@ -1090,3 +1090,21 @@ embedded_components {
     w: 1.0
   }
 }
+embedded_components {
+  id: "resource/create_atlas"
+  type: "collectionproxy"
+  data: "collection: \"/examples/resource/create_atlas/create_atlas.collection\"\n"
+  "exclude: false\n"
+  ""
+  position {
+    x: 0.0
+    y: 0.0
+    z: 0.0
+  }
+  rotation {
+    x: 0.0
+    y: 0.0
+    z: 0.0
+    w: 1.0
+  }
+}

+ 1 - 1
examples/_main/menu.gui_script

@@ -116,7 +116,7 @@ function init(self)
 	self.index["file"] = { "sys_save_load" }
 	self.index["tilemap"] = { "collisions", "get_set_tile" }
 	self.index["timer"] = { "repeating_timer", "trigger_timer", "cancel_timer" }
-	self.index["resource"] = { "modify_atlas" }
+	self.index["resource"] = { "modify_atlas", "create_atlas" }
 
 	local categories = {}
 	for k,_ in pairs(self.index) do