Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Insality committed Nov 20, 2024
1 parent c00fb35 commit c0abfd3
Show file tree
Hide file tree
Showing 4 changed files with 161 additions and 29 deletions.
28 changes: 28 additions & 0 deletions example/components/panel_information/panel_information.gui
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,18 @@ nodes {
inherit_alpha: true
template: "/example/templates/button_text_blue.gui"
}
nodes {
type: TYPE_BOX
id: "button_view_code/root"
parent: "button_view_code"
template_node_child: true
}
nodes {
type: TYPE_TEXT
id: "button_view_code/text"
parent: "button_view_code/root"
template_node_child: true
}
nodes {
position {
x: 220.0
Expand All @@ -112,12 +124,28 @@ nodes {
x: -85.0
y: -32.5
}
scale {
x: 0.5
y: 0.5
}
type: TYPE_TEMPLATE
id: "button_profiler"
parent: "NE_Anchor"
inherit_alpha: true
template: "/example/templates/button_text_yellow.gui"
}
nodes {
type: TYPE_BOX
id: "button_profiler/root"
parent: "button_profiler"
template_node_child: true
}
nodes {
type: TYPE_TEXT
id: "button_profiler/text"
parent: "button_profiler/root"
template_node_child: true
}
nodes {
position {
x: -200.0
Expand Down
103 changes: 103 additions & 0 deletions example/druid.gui
Original file line number Diff line number Diff line change
Expand Up @@ -4025,6 +4025,109 @@ nodes {
parent: "example_memory_panel/memory_panel/content"
template_node_child: true
}
nodes {
type: TYPE_TEMPLATE
id: "example_fps_panel"
parent: "widgets"
inherit_alpha: true
template: "/example/examples/widgets/fps_panel/example_fps_panel.gui"
}
nodes {
type: TYPE_BOX
id: "example_fps_panel/root"
parent: "example_fps_panel"
template_node_child: true
}
nodes {
type: TYPE_TEMPLATE
id: "example_fps_panel/fps_panel"
parent: "example_fps_panel/root"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "example_fps_panel/fps_panel/root"
parent: "example_fps_panel/fps_panel"
template_node_child: true
}
nodes {
type: TYPE_TEMPLATE
id: "example_fps_panel/fps_panel/mini_graph"
parent: "example_fps_panel/fps_panel/root"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "example_fps_panel/fps_panel/mini_graph/root"
parent: "example_fps_panel/fps_panel/mini_graph"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "example_fps_panel/fps_panel/mini_graph/header"
parent: "example_fps_panel/fps_panel/mini_graph/root"
template_node_child: true
}
nodes {
type: TYPE_TEXT
id: "example_fps_panel/fps_panel/mini_graph/text_header"
parent: "example_fps_panel/fps_panel/mini_graph/header"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "example_fps_panel/fps_panel/mini_graph/icon_drag"
parent: "example_fps_panel/fps_panel/mini_graph/header"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "example_fps_panel/fps_panel/mini_graph/content"
parent: "example_fps_panel/fps_panel/mini_graph/root"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "example_fps_panel/fps_panel/mini_graph/prefab_line"
parent: "example_fps_panel/fps_panel/mini_graph/content"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "example_fps_panel/fps_panel/mini_graph/color_low"
parent: "example_fps_panel/fps_panel/mini_graph/content"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "example_fps_panel/fps_panel/content"
parent: "example_fps_panel/fps_panel/root"
template_node_child: true
}
nodes {
type: TYPE_TEXT
id: "example_fps_panel/fps_panel/text_min_fps"
parent: "example_fps_panel/fps_panel/content"
template_node_child: true
}
nodes {
type: TYPE_TEXT
id: "example_fps_panel/fps_panel/text_fps"
parent: "example_fps_panel/fps_panel/content"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "example_fps_panel/fps_panel/line_second_1"
parent: "example_fps_panel/fps_panel/content"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "example_fps_panel/fps_panel/line_second_2"
parent: "example_fps_panel/fps_panel/content"
template_node_child: true
}
nodes {
position {
x: -20.0
Expand Down
58 changes: 29 additions & 29 deletions example/examples/widgets/fps_panel/example_fps_panel.gui
Original file line number Diff line number Diff line change
Expand Up @@ -11,93 +11,93 @@ nodes {
}
nodes {
type: TYPE_TEMPLATE
id: "memory_panel"
id: "fps_panel"
parent: "root"
inherit_alpha: true
template: "/druid/widget/fps_panel/fps_panel.gui"
}
nodes {
type: TYPE_BOX
id: "memory_panel/root"
parent: "memory_panel"
id: "fps_panel/root"
parent: "fps_panel"
template_node_child: true
}
nodes {
type: TYPE_TEMPLATE
id: "memory_panel/mini_graph"
parent: "memory_panel/root"
id: "fps_panel/mini_graph"
parent: "fps_panel/root"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "memory_panel/mini_graph/root"
parent: "memory_panel/mini_graph"
id: "fps_panel/mini_graph/root"
parent: "fps_panel/mini_graph"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "memory_panel/mini_graph/header"
parent: "memory_panel/mini_graph/root"
id: "fps_panel/mini_graph/header"
parent: "fps_panel/mini_graph/root"
template_node_child: true
}
nodes {
type: TYPE_TEXT
id: "memory_panel/mini_graph/text_header"
parent: "memory_panel/mini_graph/header"
id: "fps_panel/mini_graph/text_header"
parent: "fps_panel/mini_graph/header"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "memory_panel/mini_graph/icon_drag"
parent: "memory_panel/mini_graph/header"
id: "fps_panel/mini_graph/icon_drag"
parent: "fps_panel/mini_graph/header"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "memory_panel/mini_graph/content"
parent: "memory_panel/mini_graph/root"
id: "fps_panel/mini_graph/content"
parent: "fps_panel/mini_graph/root"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "memory_panel/mini_graph/prefab_line"
parent: "memory_panel/mini_graph/content"
id: "fps_panel/mini_graph/prefab_line"
parent: "fps_panel/mini_graph/content"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "memory_panel/mini_graph/color_low"
parent: "memory_panel/mini_graph/content"
id: "fps_panel/mini_graph/color_low"
parent: "fps_panel/mini_graph/content"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "memory_panel/content"
parent: "memory_panel/root"
id: "fps_panel/content"
parent: "fps_panel/root"
template_node_child: true
}
nodes {
type: TYPE_TEXT
id: "memory_panel/text_min_fps"
parent: "memory_panel/content"
id: "fps_panel/text_min_fps"
parent: "fps_panel/content"
template_node_child: true
}
nodes {
type: TYPE_TEXT
id: "memory_panel/text_fps"
parent: "memory_panel/content"
id: "fps_panel/text_fps"
parent: "fps_panel/content"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "memory_panel/line_second_1"
parent: "memory_panel/content"
id: "fps_panel/line_second_1"
parent: "fps_panel/content"
template_node_child: true
}
nodes {
type: TYPE_BOX
id: "memory_panel/line_second_2"
parent: "memory_panel/content"
id: "fps_panel/line_second_2"
parent: "fps_panel/content"
template_node_child: true
}
material: "/builtins/materials/gui.material"
Expand Down
1 change: 1 addition & 0 deletions game.project
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ height = 1080
display_profiles = /builtins/render/default.display_profilesc
dynamic_orientation = 1
high_dpi = 1
update_frequency = 60

[project]
title = druid
Expand Down

0 comments on commit c0abfd3

Please sign in to comment.