-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdesign.mcfunction
More file actions
70 lines (68 loc) · 5.27 KB
/
design.mcfunction
File metadata and controls
70 lines (68 loc) · 5.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#> exapmle:design
# 見本用デザイン
# @within
# tag/function display_ui:display
## デバッグ用
data modify storage display_ui:design displays._debug set value {\
operator:"everyone",\
billboard:"fixed", view_range:10, area:[3f,3f],\
from_back:0b, negative_ray:0b,\
pos:[0f,0f,0f],\
objects:[\
{type:"interaction",width:3f,height:1.5f},\
{type:"interaction",width:3f,height:-1.5f},\
{type:"button_sprite_a", pos:[1.4f,1.4f,0.001f],width:0.3f,height:0.3f,text:{sprite:"widget/cross_button"},hover:{color:"red"},events:{click:"function display_ui:kill"}},\
{type:"align", thickness:0.001f, height:3f, width:3f, padding:0.2f, row:10, col:10,\
background:{type:"text_sprite",pos:[0f,0f,-0.02f],text:{sprite:"container/cartography_table/map"}},\
objects:[\
{type:"button_item", row:1,col_width:2, text:{text:"ITEM",font:"uniform"}, events:{click:"function display_ui:execute {func:\"transform/rotate\",in:{angle:30f}}"}},\
{type:"button_block", row:1,col_width:2, text:{text:"BLOCK",font:"uniform"}, events:{click:"say block_button"}},\
{type:"button_text", row:1,col_width:2, text:{text:"TEXT",font:"uniform"}, events:{click:"say text_button"}},\
{type:"button_push", row:1,col_width:2, text:{text:"PUSH",color:"white",bold:true,font:"uniform"}},\
{type:"button_sprite", row:1,col_width:2, text:{}},\
{type:"toggle_item", row:2,col_width:2, text:{text:"ITEM",font:"uniform"},value:{type:"owner_score","objective":"dpuS."}},\
{type:"toggle_block", row:2,col_width:2, text:{text:"BLOCK",font:"uniform"},value:{type:"owner_score","objective":"dpuS."}},\
{type:"toggle_sprite",col_width:2, row:2,value:{type:"owner_score","objective":"dpuS."}},\
{type:"toggle_push", row:2,col_width:2, text:{text:"PUSH",color:"white",bold:true,font:"uniform"},value:{type:"owner_score","objective":"dpuS."}},\
{type:"toggle_slider_sprite", tags:["sprite"], row:2,col_width:2,value:{type:"owner_score","objective":"dpuS."}},\
{type:"slot_a",row:3},\
{type:"slot_a",row:3},\
{type:"slot_a",row:3},\
{type:"slot_a",row:3},\
{type:"slot_a",row:3},\
{type:"slot_3d_wall",row:3},\
{type:"slot_3d_wall",row:3},\
{type:"slot_3d_wall",row:3},\
{type:"slot_3d_wall",row:3},\
{type:"slot_3d_wall",row:3},\
{type:"num_input_step", col_width:3, row:5, value:{type:"storage",path:"a",namespace:"debug:",step:0.001,min:0,max:100000000000000000d}},\
{type:"int_input_step", col_width:3, row:5, value:{type:"storage",path:"a",namespace:"debug:"}},\
{type:"list_input", col_width:4, row:5, value:{list:["steve","alex","rusk","jeb"]}},\
{type:"text_input", col_width:10, row:4, value:{type:"storage",path:"b",namespace:"debug:"}},\
{type:"table", col_width:10, row:6, row_height:1},\
]\
},\
{type:"layer",name:"layer_1",tags:["layers"],pos:[ 1f, -1f, 0f], mode:"open",\
open:{animation:[{scale:[0f,0f,0f],type:"v_scale"},{delay:2,duration:5,type:"v_reset"}],return:true},\
objects:[\
{type:"text_sprite", width:1f,height:1f, text:{sprite:"container/bundle/slot_highlight_back",color:"red"}},\
{type:"button_item_a", events:{click:"function display_ui:execute {func:\"layer/replace\",in:{tag:\"layers\",layer:\"layer_2\"}}"}, width:0.7f, pos:[ 0.0f, 0.0f,0.005f], text:{text:"Button",color:"gold",bold:true,font:"uniform"}},\
]\
},\
{type:"layer",name:"layer_2",tags:["layers"],pos:[ 1f, -1f, 0f], mode:"close",\
open:{animation:[{scale:[1f,0f,0f],type:"v_scale"},{delay:2,duration:5,type:"v_reset"}],return:true},\
objects:[\
{type:"text_sprite", width:1f,height:1f, text:{sprite:"container/bundle/slot_highlight_back",color:"blue"}},\
{type:"button_item_a", events:{click:"function display_ui:execute {func:\"layer/replace\",in:{tag:\"layers\",layer:\"layer_3\"}}"}, width:0.7f, pos:[ 0.0f, 0.0f,0.005f], text:{text:"Button",color:"gold",bold:true,font:"uniform"}},\
]\
},\
{type:"layer",name:"layer_3",tags:["layers"],pos:[ 1f, -1f, 0f], mode:"close",\
open:{animation:[{scale:[0f,1f,0f],type:"v_scale"},{delay:2,duration:5,type:"v_reset"}],return:true},\
objects:[\
{type:"text_sprite", width:1f,height:1f, text:{sprite:"container/bundle/slot_highlight_back",color:"green"}},\
{type:"button_item_a", events:{click:"function display_ui:execute {func:\"layer/replace\",in:{tag:\"layers\",layer:\"layer_1\"}}"}, width:0.7f, pos:[ 0.0f, 0.0f,0.005f], text:{text:"Button",color:"gold",bold:true,font:"uniform"}},\
]\
},\
]\
}
function display_ui:execute {func:"compile",in:{display:"_debug"}}