Преглед на файлове

Added trigger timer example to loader.

Pawel Jarosz преди 2 години
родител
ревизия
7ae99c0e55
променени са 2 файла, в които са добавени 19 реда и са изтрити 0 реда
  1. 18 0
      examples/_main/loader.go
  2. 1 0
      examples/_main/menu.gui_script

+ 18 - 0
examples/_main/loader.go

@@ -946,3 +946,21 @@ embedded_components {
     w: 1.0
   }
 }
+embedded_components {
+  id: "timer/trigger_timer"
+  type: "collectionproxy"
+  data: "collection: \"/examples/timer/trigger_timer/trigger_timer.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 - 0
examples/_main/menu.gui_script

@@ -115,6 +115,7 @@ function init(self)
 	self.index["sprite"] = { "size", "tint", "flip" }
 	self.index["file"] = { "sys_save_load" }
 	self.index["tilemap"] = { "collisions", "get_set_tile" }
+	self.index["timer"] = { "trigger_timer" }
 	local categories = {}
 	for k,_ in pairs(self.index) do
 		categories[#categories + 1] = k