Skip to content

Commit

Permalink
Added example of async image load on a dynamic list
Browse files Browse the repository at this point in the history
  • Loading branch information
britzl committed Apr 15, 2019
1 parent f9bab55 commit 8705121
Show file tree
Hide file tree
Showing 9 changed files with 791 additions and 4 deletions.
18 changes: 18 additions & 0 deletions example/controller.collection
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,24 @@ embedded_instances {
" w: 1.0\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"dynamiclistproxy\"\n"
" type: \"collectionproxy\"\n"
" data: \"collection: \\\"/example/dynamiclist.collection\\\"\\n"
"exclude: false\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
""
position {
x: 0.0
Expand Down
2 changes: 2 additions & 0 deletions example/controller.script
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ function on_message(self, message_id, message, sender)
show(self, "#kenneyblueproxy")
elseif message_id == hash("show_rpg") then
show(self, "#rpgproxy")
elseif message_id == hash("show_dynamiclist") then
show(self, "#dynamiclistproxy")
else
print(message_id)
end
Expand Down
37 changes: 37 additions & 0 deletions example/dynamiclist.collection
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: "dynamiclist"
scale_along_z: 0
embedded_instances {
id: "go"
data: "components {\n"
" id: \"dynamiclist\"\n"
" component: \"/example/dynamiclist.gui\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" }\n"
" rotation {\n"
" x: 0.0\n"
" y: 0.0\n"
" z: 0.0\n"
" w: 1.0\n"
" }\n"
"}\n"
""
position {
x: 0.0
y: 0.0
z: 0.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale3 {
x: 1.0
y: 1.0
z: 1.0
}
}
Loading

0 comments on commit 8705121

Please sign in to comment.