소스 검색

Added repeating timer example to loader.

Pawel Jarosz 2 년 전
부모
커밋
bbd2232acd
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/repeating_timer"
+  type: "collectionproxy"
+  data: "collection: \"/examples/timer/repeating_timer/repeating_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"] = { "repeating_timer" }
 	local categories = {}
 	for k,_ in pairs(self.index) do
 		categories[#categories + 1] = k