From c0abfd350e51908424639db6bcb4d37bc075f3a8 Mon Sep 17 00:00:00 2001 From: Insality Date: Thu, 21 Nov 2024 00:01:16 +0200 Subject: [PATCH] Update examples --- .../panel_information/panel_information.gui | 28 +++++ example/druid.gui | 103 ++++++++++++++++++ .../widgets/fps_panel/example_fps_panel.gui | 58 +++++----- game.project | 1 + 4 files changed, 161 insertions(+), 29 deletions(-) diff --git a/example/components/panel_information/panel_information.gui b/example/components/panel_information/panel_information.gui index 0c01d7f..5cf8924 100644 --- a/example/components/panel_information/panel_information.gui +++ b/example/components/panel_information/panel_information.gui @@ -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 @@ -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 diff --git a/example/druid.gui b/example/druid.gui index 0133cfd..fa7360f 100644 --- a/example/druid.gui +++ b/example/druid.gui @@ -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 diff --git a/example/examples/widgets/fps_panel/example_fps_panel.gui b/example/examples/widgets/fps_panel/example_fps_panel.gui index ffccb4f..4f01f77 100644 --- a/example/examples/widgets/fps_panel/example_fps_panel.gui +++ b/example/examples/widgets/fps_panel/example_fps_panel.gui @@ -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" diff --git a/game.project b/game.project index 08b9317..5aebe16 100644 --- a/game.project +++ b/game.project @@ -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