defos/example/cursor/cursor.gui
Brian Kramer 469bf7b0c7 cursor demo + show cursor on edge of screen
Improves example to show how to handle showing cursor properly when
disabled but leaves window.
2018-01-07 19:52:29 -08:00

72 lines
1.0 KiB
Plaintext

script: "/example/cursor/cursor.gui_script"
textures {
name: "cursors"
texture: "/example/cursor/textures.atlas"
}
background_color {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
nodes {
position {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
size {
x: 100.0
y: 100.0
z: 0.0
w: 1.0
}
color {
x: 1.0
y: 1.0
z: 1.0
w: 1.0
}
type: TYPE_BOX
blend_mode: BLEND_MODE_ALPHA
texture: "cursors/crosshair"
id: "box"
xanchor: XANCHOR_LEFT
yanchor: YANCHOR_TOP
pivot: PIVOT_CENTER
adjust_mode: ADJUST_MODE_FIT
layer: "cursor"
inherit_alpha: true
slice9 {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
clipping_mode: CLIPPING_MODE_NONE
clipping_visible: true
clipping_inverted: false
alpha: 1.0
template_node_child: false
size_mode: SIZE_MODE_AUTO
}
layers {
name: "cursor"
}
material: "/example/cursor/cursor.material"
adjust_reference: ADJUST_REFERENCE_PARENT
max_nodes: 512