mirror of
https://github.com/Insality/druid.git
synced 2025-06-27 10:27:47 +02:00
678 lines
9.2 KiB
Plaintext
678 lines
9.2 KiB
Plaintext
script: "/example/examples/custom/pin_knob/pin_knob.gui_script"
|
|
fonts {
|
|
name: "game"
|
|
font: "/example/assets/fonts/game.font"
|
|
}
|
|
textures {
|
|
name: "kenney"
|
|
texture: "/example/assets/images/kenney.atlas"
|
|
}
|
|
background_color {
|
|
x: 0.0
|
|
y: 0.0
|
|
z: 0.0
|
|
w: 0.0
|
|
}
|
|
nodes {
|
|
position {
|
|
x: 300.0
|
|
y: 415.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: 600.0
|
|
y: 830.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: "kenney/empty"
|
|
id: "root"
|
|
xanchor: XANCHOR_NONE
|
|
yanchor: YANCHOR_NONE
|
|
pivot: PIVOT_CENTER
|
|
adjust_mode: ADJUST_MODE_FIT
|
|
layer: ""
|
|
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_MANUAL
|
|
}
|
|
nodes {
|
|
position {
|
|
x: 0.0
|
|
y: 370.0
|
|
z: 0.0
|
|
w: 1.0
|
|
}
|
|
rotation {
|
|
x: 0.0
|
|
y: 0.0
|
|
z: 0.0
|
|
w: 1.0
|
|
}
|
|
scale {
|
|
x: 0.75
|
|
y: 0.75
|
|
z: 1.0
|
|
w: 1.0
|
|
}
|
|
size {
|
|
x: 700.0
|
|
y: 60.0
|
|
z: 0.0
|
|
w: 1.0
|
|
}
|
|
color {
|
|
x: 1.0
|
|
y: 1.0
|
|
z: 1.0
|
|
w: 1.0
|
|
}
|
|
type: TYPE_TEXT
|
|
blend_mode: BLEND_MODE_ALPHA
|
|
text: "Rich Input custom component"
|
|
font: "game"
|
|
id: "text_hint_horizontal"
|
|
xanchor: XANCHOR_NONE
|
|
yanchor: YANCHOR_NONE
|
|
pivot: PIVOT_CENTER
|
|
outline {
|
|
x: 0.0
|
|
y: 0.0
|
|
z: 0.0
|
|
w: 1.0
|
|
}
|
|
shadow {
|
|
x: 1.0
|
|
y: 1.0
|
|
z: 1.0
|
|
w: 1.0
|
|
}
|
|
adjust_mode: ADJUST_MODE_FIT
|
|
line_break: false
|
|
parent: "root"
|
|
layer: ""
|
|
inherit_alpha: true
|
|
alpha: 1.0
|
|
outline_alpha: 1.0
|
|
shadow_alpha: 0.0
|
|
template_node_child: false
|
|
text_leading: 1.0
|
|
text_tracking: 0.0
|
|
}
|
|
nodes {
|
|
position {
|
|
x: -100.0
|
|
y: 230.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: 200.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_TEMPLATE
|
|
id: "pin_knob1"
|
|
parent: "root"
|
|
layer: ""
|
|
inherit_alpha: true
|
|
alpha: 1.0
|
|
template: "/druid/custom/pin_knob/pin_knob.gui"
|
|
template_node_child: false
|
|
}
|
|
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: 1.0
|
|
y: 1.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: "kenney/empty"
|
|
id: "pin_knob1/root"
|
|
xanchor: XANCHOR_NONE
|
|
yanchor: YANCHOR_NONE
|
|
pivot: PIVOT_CENTER
|
|
adjust_mode: ADJUST_MODE_FIT
|
|
parent: "pin_knob1"
|
|
layer: ""
|
|
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: true
|
|
size_mode: SIZE_MODE_AUTO
|
|
}
|
|
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: 2.0
|
|
y: 2.0
|
|
z: 1.0
|
|
w: 1.0
|
|
}
|
|
size {
|
|
x: 36.0
|
|
y: 36.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: "kenney/slider_move"
|
|
id: "pin_knob1/pin"
|
|
xanchor: XANCHOR_NONE
|
|
yanchor: YANCHOR_NONE
|
|
pivot: PIVOT_CENTER
|
|
adjust_mode: ADJUST_MODE_FIT
|
|
parent: "pin_knob1/root"
|
|
layer: ""
|
|
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: true
|
|
size_mode: SIZE_MODE_AUTO
|
|
}
|
|
nodes {
|
|
position {
|
|
x: 0.0
|
|
y: 13.5
|
|
z: 0.0
|
|
w: 1.0
|
|
}
|
|
rotation {
|
|
x: 0.0
|
|
y: 0.0
|
|
z: 0.0
|
|
w: 1.0
|
|
}
|
|
scale {
|
|
x: 0.2
|
|
y: 1.0
|
|
z: 1.0
|
|
w: 1.0
|
|
}
|
|
size {
|
|
x: 17.0
|
|
y: 17.0
|
|
z: 0.0
|
|
w: 1.0
|
|
}
|
|
color {
|
|
x: 0.101960786
|
|
y: 0.101960786
|
|
z: 0.101960786
|
|
w: 1.0
|
|
}
|
|
type: TYPE_BOX
|
|
blend_mode: BLEND_MODE_ALPHA
|
|
texture: "kenney/tick"
|
|
id: "pin_knob1/notch"
|
|
xanchor: XANCHOR_NONE
|
|
yanchor: YANCHOR_NONE
|
|
pivot: PIVOT_CENTER
|
|
adjust_mode: ADJUST_MODE_FIT
|
|
parent: "pin_knob1/pin"
|
|
layer: ""
|
|
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: true
|
|
size_mode: SIZE_MODE_AUTO
|
|
}
|
|
nodes {
|
|
position {
|
|
x: -100.0
|
|
y: 154.0
|
|
z: 0.0
|
|
w: 1.0
|
|
}
|
|
rotation {
|
|
x: 0.0
|
|
y: 0.0
|
|
z: 0.0
|
|
w: 1.0
|
|
}
|
|
scale {
|
|
x: 0.75
|
|
y: 0.75
|
|
z: 1.0
|
|
w: 1.0
|
|
}
|
|
size {
|
|
x: 120.0
|
|
y: 60.0
|
|
z: 0.0
|
|
w: 1.0
|
|
}
|
|
color {
|
|
x: 1.0
|
|
y: 1.0
|
|
z: 1.0
|
|
w: 1.0
|
|
}
|
|
type: TYPE_TEXT
|
|
blend_mode: BLEND_MODE_ALPHA
|
|
text: "50"
|
|
font: "game"
|
|
id: "text_value1"
|
|
xanchor: XANCHOR_NONE
|
|
yanchor: YANCHOR_NONE
|
|
pivot: PIVOT_CENTER
|
|
outline {
|
|
x: 0.0
|
|
y: 0.0
|
|
z: 0.0
|
|
w: 1.0
|
|
}
|
|
shadow {
|
|
x: 1.0
|
|
y: 1.0
|
|
z: 1.0
|
|
w: 1.0
|
|
}
|
|
adjust_mode: ADJUST_MODE_FIT
|
|
line_break: false
|
|
parent: "root"
|
|
layer: ""
|
|
inherit_alpha: true
|
|
alpha: 1.0
|
|
outline_alpha: 1.0
|
|
shadow_alpha: 0.0
|
|
template_node_child: false
|
|
text_leading: 1.0
|
|
text_tracking: 0.0
|
|
}
|
|
nodes {
|
|
position {
|
|
x: 100.0
|
|
y: 230.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: 200.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_TEMPLATE
|
|
id: "pin_knob2"
|
|
parent: "root"
|
|
layer: ""
|
|
inherit_alpha: true
|
|
alpha: 1.0
|
|
template: "/druid/custom/pin_knob/pin_knob.gui"
|
|
template_node_child: false
|
|
}
|
|
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: 1.0
|
|
y: 1.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: "kenney/empty"
|
|
id: "pin_knob2/root"
|
|
xanchor: XANCHOR_NONE
|
|
yanchor: YANCHOR_NONE
|
|
pivot: PIVOT_CENTER
|
|
adjust_mode: ADJUST_MODE_FIT
|
|
parent: "pin_knob2"
|
|
layer: ""
|
|
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: true
|
|
size_mode: SIZE_MODE_AUTO
|
|
}
|
|
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: 2.0
|
|
y: 2.0
|
|
z: 1.0
|
|
w: 1.0
|
|
}
|
|
size {
|
|
x: 36.0
|
|
y: 36.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: "kenney/slider_move"
|
|
id: "pin_knob2/pin"
|
|
xanchor: XANCHOR_NONE
|
|
yanchor: YANCHOR_NONE
|
|
pivot: PIVOT_CENTER
|
|
adjust_mode: ADJUST_MODE_FIT
|
|
parent: "pin_knob2/root"
|
|
layer: ""
|
|
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: true
|
|
size_mode: SIZE_MODE_AUTO
|
|
}
|
|
nodes {
|
|
position {
|
|
x: 0.0
|
|
y: 13.5
|
|
z: 0.0
|
|
w: 1.0
|
|
}
|
|
rotation {
|
|
x: 0.0
|
|
y: 0.0
|
|
z: 0.0
|
|
w: 1.0
|
|
}
|
|
scale {
|
|
x: 0.2
|
|
y: 1.0
|
|
z: 1.0
|
|
w: 1.0
|
|
}
|
|
size {
|
|
x: 17.0
|
|
y: 17.0
|
|
z: 0.0
|
|
w: 1.0
|
|
}
|
|
color {
|
|
x: 0.101960786
|
|
y: 0.101960786
|
|
z: 0.101960786
|
|
w: 1.0
|
|
}
|
|
type: TYPE_BOX
|
|
blend_mode: BLEND_MODE_ALPHA
|
|
texture: "kenney/tick"
|
|
id: "pin_knob2/notch"
|
|
xanchor: XANCHOR_NONE
|
|
yanchor: YANCHOR_NONE
|
|
pivot: PIVOT_CENTER
|
|
adjust_mode: ADJUST_MODE_FIT
|
|
parent: "pin_knob2/pin"
|
|
layer: ""
|
|
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: true
|
|
size_mode: SIZE_MODE_AUTO
|
|
}
|
|
nodes {
|
|
position {
|
|
x: 100.0
|
|
y: 154.0
|
|
z: 0.0
|
|
w: 1.0
|
|
}
|
|
rotation {
|
|
x: 0.0
|
|
y: 0.0
|
|
z: 0.0
|
|
w: 1.0
|
|
}
|
|
scale {
|
|
x: 0.75
|
|
y: 0.75
|
|
z: 1.0
|
|
w: 1.0
|
|
}
|
|
size {
|
|
x: 120.0
|
|
y: 60.0
|
|
z: 0.0
|
|
w: 1.0
|
|
}
|
|
color {
|
|
x: 1.0
|
|
y: 1.0
|
|
z: 1.0
|
|
w: 1.0
|
|
}
|
|
type: TYPE_TEXT
|
|
blend_mode: BLEND_MODE_ALPHA
|
|
text: "50"
|
|
font: "game"
|
|
id: "text_value2"
|
|
xanchor: XANCHOR_NONE
|
|
yanchor: YANCHOR_NONE
|
|
pivot: PIVOT_CENTER
|
|
outline {
|
|
x: 0.0
|
|
y: 0.0
|
|
z: 0.0
|
|
w: 1.0
|
|
}
|
|
shadow {
|
|
x: 1.0
|
|
y: 1.0
|
|
z: 1.0
|
|
w: 1.0
|
|
}
|
|
adjust_mode: ADJUST_MODE_FIT
|
|
line_break: false
|
|
parent: "root"
|
|
layer: ""
|
|
inherit_alpha: true
|
|
alpha: 1.0
|
|
outline_alpha: 1.0
|
|
shadow_alpha: 0.0
|
|
template_node_child: false
|
|
text_leading: 1.0
|
|
text_tracking: 0.0
|
|
}
|
|
layers {
|
|
name: "image"
|
|
}
|
|
layers {
|
|
name: "text"
|
|
}
|
|
material: "/builtins/materials/gui.material"
|
|
adjust_reference: ADJUST_REFERENCE_PARENT
|
|
max_nodes: 512
|