feature/templating-level (#74)

Co-authored-by: VAILLANT Jeremy <vaillant.jeremy@dev-crea.com>
Reviewed-on: Athena/game-source#74
Co-authored-by: darknight <vaillant.jeremy@dev-crea.com>
Co-committed-by: darknight <vaillant.jeremy@dev-crea.com>
This commit is contained in:
darknight
2021-06-05 14:11:47 +02:00
parent dee1ee5b1b
commit 213847e95c
23 changed files with 869 additions and 722 deletions
+22
View File
@@ -0,0 +1,22 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://assets/ui/themes/UI-Button-Back.png" type="Texture" id=1]
[ext_resource path="res://assets/ui/themes/UI-Button-Back-Overlay.png" type="Texture" id=2]
[node name="Control" type="Control"]
margin_right = 1440.0
margin_bottom = 900.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="TextureButton" type="TextureButton" parent="."]
margin_right = 40.0
margin_bottom = 40.0
mouse_default_cursor_shape = 2
texture_normal = ExtResource( 1 )
texture_hover = ExtResource( 2 )
texture_focused = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
+108
View File
@@ -0,0 +1,108 @@
[gd_scene load_steps=10 format=2]
[ext_resource path="res://assets/ui/themes/UI-Button-ItemsList-first-hover.png" type="Texture" id=1]
[ext_resource path="res://assets/ui/themes/leather.theme" type="Theme" id=2]
[ext_resource path="res://assets/fonts/kirsty/kirsty_base.tres" type="DynamicFont" id=3]
[ext_resource path="res://assets/ui/icones/skull.png" type="Texture" id=4]
[ext_resource path="res://assets/ui/themes/UI-Button-ItemsList.png" type="Texture" id=5]
[ext_resource path="res://assets/ui/themes/UI-Button-ItemsList-last-hover.png" type="Texture" id=6]
[ext_resource path="res://assets/ui/themes/UI-Button-ItemsList-hover.png" type="Texture" id=7]
[ext_resource path="res://assets/ui/themes/UI-Button-ItemsList-last.png" type="Texture" id=8]
[ext_resource path="res://assets/ui/themes/UI-Button-ItemsList-first.png" type="Texture" id=9]
[node name="Control" type="MarginContainer"]
anchor_left = 1.0
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
margin_left = -196.0
margin_top = -450.0
margin_bottom = 450.0
grow_horizontal = 0
grow_vertical = 2
size_flags_vertical = 3
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ListContainer" type="VBoxContainer" parent="."]
margin_right = 196.0
margin_bottom = 900.0
rect_min_size = Vector2( 196, 900 )
size_flags_horizontal = 3
size_flags_vertical = 3
custom_constants/separation = -10
[node name="TextureButtonFirst" type="TextureButton" parent="ListContainer"]
visible = false
margin_right = 196.0
margin_bottom = 81.0
focus_mode = 0
texture_normal = ExtResource( 9 )
texture_hover = ExtResource( 1 )
texture_focused = ExtResource( 1 )
[node name="Label" type="Label" parent="ListContainer/TextureButtonFirst"]
anchor_right = 1.0
anchor_bottom = 1.0
custom_fonts/font = ExtResource( 3 )
text = "First Entry"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="TextureButtonMiddle" type="TextureButton" parent="ListContainer"]
visible = false
margin_top = 71.0
margin_right = 196.0
margin_bottom = 152.0
focus_mode = 0
texture_normal = ExtResource( 5 )
texture_hover = ExtResource( 7 )
texture_focused = ExtResource( 7 )
[node name="Label" type="Label" parent="ListContainer/TextureButtonMiddle"]
anchor_right = 1.0
anchor_bottom = 1.0
custom_fonts/font = ExtResource( 3 )
text = "Middle"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="TextureButtonLast" type="TextureButton" parent="ListContainer"]
visible = false
margin_top = 142.0
margin_right = 196.0
margin_bottom = 223.0
focus_mode = 0
texture_normal = ExtResource( 8 )
texture_hover = ExtResource( 6 )
texture_focused = ExtResource( 6 )
[node name="Label" type="Label" parent="ListContainer/TextureButtonLast"]
anchor_right = 1.0
anchor_bottom = 1.0
theme = ExtResource( 2 )
custom_fonts/font = ExtResource( 3 )
text = "Last"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="HBoxContainer" type="HBoxContainer" parent="ListContainer"]
margin_right = 196.0
margin_bottom = 128.0
alignment = 1
[node name="TextureButtonIndice" type="TextureButton" parent="ListContainer/HBoxContainer"]
margin_left = 34.0
margin_right = 162.0
margin_bottom = 128.0
texture_normal = ExtResource( 4 )
+27
View File
@@ -0,0 +1,27 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://assets/ui/themes/UI-Button-ItemsList-first-hover.png" type="Texture" id=1]
[ext_resource path="res://assets/fonts/kirsty/kirsty_base.tres" type="DynamicFont" id=2]
[ext_resource path="res://assets/ui/themes/UI-Button-ItemsList-first.png" type="Texture" id=3]
[node name="TextureButton" type="TextureButton"]
margin_right = 196.0
margin_bottom = 81.0
texture_normal = ExtResource( 3 )
texture_hover = ExtResource( 1 )
texture_focused = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false,
"_editor_description_": ""
}
[node name="Label" type="Label" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
custom_fonts/font = ExtResource( 2 )
text = "First Entry"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
+29
View File
@@ -0,0 +1,29 @@
[gd_scene load_steps=5 format=2]
[ext_resource path="res://assets/ui/themes/leather.theme" type="Theme" id=1]
[ext_resource path="res://assets/fonts/kirsty/kirsty_base.tres" type="DynamicFont" id=2]
[ext_resource path="res://assets/ui/themes/UI-Button-ItemsList-last-hover.png" type="Texture" id=3]
[ext_resource path="res://assets/ui/themes/UI-Button-ItemsList-last.png" type="Texture" id=4]
[node name="TextureButton" type="TextureButton"]
margin_right = 196.0
margin_bottom = 81.0
texture_normal = ExtResource( 4 )
texture_hover = ExtResource( 3 )
texture_focused = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false,
"_editor_description_": ""
}
[node name="Label" type="Label" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
theme = ExtResource( 1 )
custom_fonts/font = ExtResource( 2 )
text = "Last"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
@@ -0,0 +1,27 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://assets/fonts/kirsty/kirsty_base.tres" type="DynamicFont" id=1]
[ext_resource path="res://assets/ui/themes/UI-Button-ItemsList.png" type="Texture" id=2]
[ext_resource path="res://assets/ui/themes/UI-Button-ItemsList-hover.png" type="Texture" id=3]
[node name="TextureButton" type="TextureButton"]
margin_right = 196.0
margin_bottom = 81.0
texture_normal = ExtResource( 2 )
texture_hover = ExtResource( 3 )
texture_focused = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false,
"_editor_description_": ""
}
[node name="Label" type="Label" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
custom_fonts/font = ExtResource( 1 )
text = "Middle"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
+146
View File
@@ -0,0 +1,146 @@
[gd_scene load_steps=9 format=2]
[ext_resource path="res://assets/fonts/kirsty/kirsty_base.tres" type="DynamicFont" id=1]
[ext_resource path="res://assets/ui/themes/tab_select/UI-level-btn-shadow.png" type="Texture" id=2]
[ext_resource path="res://assets/ui/themes/tab_select/UI-Button-Count.png" type="Texture" id=3]
[ext_resource path="res://assets/ui/themes/tab_select/UI-Button-Reset-disabled.png" type="Texture" id=4]
[ext_resource path="res://assets/ui/themes/tab_select/UI-Button-Count-hover.png" type="Texture" id=5]
[ext_resource path="res://assets/ui/themes/tab_select/UI-Button-Reset-hover.png" type="Texture" id=6]
[ext_resource path="res://assets/ui/themes/tab_select/UI-level-btn-leather.png" type="Texture" id=7]
[ext_resource path="res://assets/ui/themes/tab_select/UI-Button-Reset.png" type="Texture" id=8]
[node name="TilePuzzle" type="Control"]
margin_left = 320.0
margin_right = 1600.0
margin_bottom = 720.0
size_flags_horizontal = 3
size_flags_vertical = 3
__meta__ = {
"_edit_use_anchors_": false
}
[node name="BackgroundTile" type="TextureRect" parent="."]
anchor_left = 0.5
anchor_right = 0.5
margin_left = -114.0
margin_right = 115.0
margin_bottom = 456.0
texture = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="MarginContainer" type="MarginContainer" parent="."]
anchor_left = 0.5
anchor_right = 0.5
margin_left = -114.0
margin_right = 115.0
margin_bottom = 720.0
custom_constants/margin_right = 10
custom_constants/margin_top = 10
custom_constants/margin_left = 10
__meta__ = {
"_edit_use_anchors_": false
}
[node name="CenterAlign" type="VBoxContainer" parent="MarginContainer"]
margin_left = 10.0
margin_top = 10.0
margin_right = 219.0
margin_bottom = 720.0
custom_constants/separation = 0
[node name="MainButton" type="TextureButton" parent="MarginContainer/CenterAlign"]
margin_right = 209.0
margin_bottom = 208.0
mouse_default_cursor_shape = 2
texture_normal = ExtResource( 7 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="MarginStich" type="MarginContainer" parent="MarginContainer/CenterAlign/MainButton"]
anchor_right = 1.0
anchor_bottom = 1.0
custom_constants/margin_right = 5
custom_constants/margin_top = 5
custom_constants/margin_left = 5
custom_constants/margin_bottom = 5
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ThumbnailLevel" type="TextureRect" parent="MarginContainer/CenterAlign/MainButton/MarginStich"]
margin_left = 5.0
margin_top = 5.0
margin_right = 204.0
margin_bottom = 203.0
size_flags_horizontal = 3
size_flags_vertical = 3
expand = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ThumbnailLevel" type="TextureRect" parent="MarginContainer/CenterAlign/MainButton"]
margin_left = 5.0
margin_top = 5.0
margin_right = 204.0
margin_bottom = 203.0
size_flags_horizontal = 3
size_flags_vertical = 3
expand = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="TabAlign" type="HBoxContainer" parent="MarginContainer/CenterAlign"]
margin_top = 208.0
margin_right = 209.0
margin_bottom = 710.0
size_flags_horizontal = 3
size_flags_vertical = 3
alignment = 1
[node name="ButtonReset" type="TextureButton" parent="MarginContainer/CenterAlign/TabAlign"]
margin_left = 1.0
margin_right = 90.0
margin_bottom = 57.0
mouse_default_cursor_shape = 2
size_flags_vertical = 0
disabled = true
texture_normal = ExtResource( 8 )
texture_hover = ExtResource( 6 )
texture_disabled = ExtResource( 4 )
texture_focused = ExtResource( 6 )
[node name="ButtonCount" type="TextureButton" parent="MarginContainer/CenterAlign/TabAlign"]
margin_left = 94.0
margin_right = 207.0
margin_bottom = 57.0
mouse_default_cursor_shape = 2
size_flags_vertical = 0
texture_normal = ExtResource( 3 )
texture_hover = ExtResource( 5 )
texture_focused = ExtResource( 5 )
[node name="MarginBottom" type="MarginContainer" parent="MarginContainer/CenterAlign/TabAlign/ButtonCount"]
anchor_right = 1.0
anchor_bottom = 1.0
custom_constants/margin_bottom = 10
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="MarginContainer/CenterAlign/TabAlign/ButtonCount/MarginBottom"]
margin_right = 113.0
margin_bottom = 47.0
size_flags_horizontal = 3
size_flags_vertical = 7
custom_fonts/font = ExtResource( 1 )
text = "X / 10"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}