Skip to content

Commit

Permalink
~48 upgrade card theme
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-cho committed Jun 8, 2024
1 parent df60ce2 commit 8d22a08
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 8 deletions.
21 changes: 18 additions & 3 deletions resources/themes/theme.tres
Original file line number Diff line number Diff line change
@@ -1,17 +1,32 @@
[gd_resource type="Theme" load_steps=4 format=3 uid="uid://c3hhobt5yor42"]
[gd_resource type="Theme" load_steps=5 format=3 uid="uid://c3hhobt5yor42"]

[ext_resource type="FontFile" uid="uid://ba3f2bejkjtdg" path="res://resources/themes/Rockboxcond12.ttf" id="1_fxvgl"]
[ext_resource type="Texture2D" uid="uid://m1p3h77wdeke" path="res://assets/ui/ui.png" id="1_vusi2"]

[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_bvm1a"]
content_margin_left = 4.0
content_margin_top = 4.0
content_margin_right = 4.0
content_margin_bottom = 4.0
texture = ExtResource("1_vusi2")
texture_margin_left = 1.0
texture_margin_top = 1.0
texture_margin_right = 1.0
texture_margin_bottom = 1.0
region_rect = Rect2(18, 2, 12, 12)

[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_hjilj"]
texture = ExtResource("1_vusi2")
texture_margin_left = 4.0
texture_margin_top = 6.0
texture_margin_top = 13.0
texture_margin_right = 4.0
texture_margin_bottom = 3.0
texture_margin_bottom = 10.0
region_rect = Rect2(0, 0, 16, 16)

[resource]
default_font = ExtResource("1_fxvgl")
default_font_size = 16
AlternatePanelContainer/base_type = &"PanelContainer"
AlternatePanelContainer/styles/panel = SubResource("StyleBoxTexture_bvm1a")
Label/constants/line_spacing = 0
PanelContainer/styles/panel = SubResource("StyleBoxTexture_hjilj")
33 changes: 28 additions & 5 deletions scenes/ui/ability_upgrade_card.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,42 @@
[ext_resource type="Script" path="res://scenes/ui/ability_upgrade_card.gd" id="1_vrw8k"]

[node name="AbilityUpgradeCard" type="PanelContainer"]
custom_minimum_size = Vector2(120, 150)
custom_minimum_size = Vector2(150, 150)
offset_right = 120.0
offset_bottom = 150.0
script = ExtResource("1_vrw8k")

[node name="VBoxContainer" type="VBoxContainer" parent="."]
[node name="MarginContainer" type="MarginContainer" parent="."]
layout_mode = 2
theme_override_constants/margin_left = 8
theme_override_constants/margin_right = 8
theme_override_constants/margin_bottom = 8

[node name="NameLabel" type="Label" parent="VBoxContainer"]
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
layout_mode = 2
theme_override_constants/separation = 12

[node name="PanelContainer" type="PanelContainer" parent="MarginContainer/VBoxContainer"]
layout_mode = 2
mouse_filter = 2
theme_type_variation = &"AlternatePanelContainer"

[node name="NameLabel" type="Label" parent="MarginContainer/VBoxContainer/PanelContainer"]
unique_name_in_owner = true
layout_mode = 2
theme_override_colors/font_outline_color = Color(0.14902, 0.168627, 0.266667, 1)
theme_override_constants/outline_size = 8
theme_override_font_sizes/font_size = 32
text = "Test name"
horizontal_alignment = 1
vertical_alignment = 1
autowrap_mode = 2

[node name="DescriptionLabel" type="Label" parent="VBoxContainer"]
[node name="DescriptionLabel" type="Label" parent="MarginContainer/VBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
text = "Write Some Description"
theme_override_colors/font_shadow_color = Color(0.14902, 0.168627, 0.266667, 1)
theme_override_colors/font_outline_color = Color(0.14902, 0.168627, 0.266667, 1)
theme_override_constants/outline_size = 8
text = "Write Some description here as you write a long description"
autowrap_mode = 2

0 comments on commit 8d22a08

Please sign in to comment.