[gd_scene format=3 uid="uid://gacha_panel_001"] [ext_resource type="Script" path="res://scripts/ui/gacha_panel.gd" id="1"] [ext_resource type="Theme" uid="uid://cxab3xxy00" path="res://assets/themes/GUI_Tekton.tres" id="2"] [ext_resource type="FontFile" uid="uid://xnjx058n4tsw" path="res://assets/fonts/Nougat-ExtraBlack.ttf" id="3_font"] [ext_resource type="Texture2D" uid="uid://jqvv6s55mlsk" path="res://assets/graphics/gui/BG.png" id="4_bg"] [ext_resource type="Texture2D" uid="uid://b5pp08fke7ptd" path="res://assets/graphics/gui/lobby/gold.png" id="5_gold"] [ext_resource type="Texture2D" uid="uid://d0ouvm3x8h42c" path="res://assets/graphics/gui/lobby/star.png" id="6_star"] [ext_resource type="Texture2D" uid="uid://b6is65v4h87u8" path="res://assets/graphics/gui/lobby/star.png" id="tex_star"] [ext_resource type="Texture2D" uid="uid://be5i65v4h87u7" path="res://assets/graphics/gui/lobby/gold.png" id="tex_gold"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_OuterPanel"] content_margin_left = 12.0 content_margin_top = 12.0 content_margin_right = 12.0 content_margin_bottom = 12.0 bg_color = Color(0.14117648, 0.16862746, 0.19215687, 1) corner_radius_top_left = 12 corner_radius_top_right = 12 corner_radius_bottom_right = 12 corner_radius_bottom_left = 12 shadow_color = Color(0, 0, 0, 0.3529412) shadow_size = 4 shadow_offset = Vector2(-2, 2) [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_InnerDark"] bg_color = Color(0.1, 0.1, 0.1, 1) corner_radius_top_left = 6 corner_radius_top_right = 6 corner_radius_bottom_right = 6 corner_radius_bottom_left = 6 [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_gd4oi"] bg_color = Color(0, 0, 0, 0.48235294) border_color = Color(0.92941177, 0.91764706, 0.8862745, 1) corner_radius_top_left = 3 corner_radius_top_right = 3 corner_radius_bottom_right = 3 corner_radius_bottom_left = 3 [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_tab_inactive"] content_margin_left = 16.0 content_margin_top = 14.0 content_margin_right = 16.0 content_margin_bottom = 14.0 bg_color = Color(0.33, 0.62, 0.78, 1) corner_radius_top_left = 8 corner_radius_top_right = 8 corner_radius_bottom_right = 8 corner_radius_bottom_left = 8 [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_tab_active"] content_margin_left = 16.0 content_margin_top = 14.0 content_margin_right = 16.0 content_margin_bottom = 14.0 bg_color = Color(0.1, 0.19, 0.27, 1) corner_radius_top_left = 8 corner_radius_top_right = 8 corner_radius_bottom_right = 8 corner_radius_bottom_left = 8 [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_banner_tab_inactive"] bg_color = Color(0.33, 0.62, 0.78, 1) corner_radius_top_left = 8 corner_radius_top_right = 8 corner_radius_bottom_right = 8 corner_radius_bottom_left = 8 [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_banner_tab_active"] bg_color = Color(0.1, 0.19, 0.27, 1) corner_radius_top_left = 8 corner_radius_top_right = 8 corner_radius_bottom_right = 8 corner_radius_bottom_left = 8 [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_BtnDark"] bg_color = Color(0.15, 0.15, 0.15, 1) corner_radius_top_left = 8 corner_radius_top_right = 8 corner_radius_bottom_right = 8 corner_radius_bottom_left = 8 [node name="GachaPanel" type="Control"] layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 theme = ExtResource("2") script = ExtResource("1") [node name="Background" type="ColorRect" parent="."] visible = false layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 color = Color(0.0627451, 0.0745098, 0.101961, 1) [node name="BackgroundTexture" type="TextureRect" parent="."] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 texture = ExtResource("4_bg") expand_mode = 2 [node name="MainMargin" type="MarginContainer" parent="."] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 theme_override_constants/margin_left = 28 theme_override_constants/margin_top = 20 theme_override_constants/margin_right = 28 theme_override_constants/margin_bottom = 20 [node name="MainVBox" type="VBoxContainer" parent="MainMargin"] layout_mode = 2 theme_override_constants/separation = 14 [node name="TopBar" type="HBoxContainer" parent="MainMargin/MainVBox"] layout_mode = 2 theme_override_constants/separation = 10 [node name="BackBtn" type="Button" parent="MainMargin/MainVBox/TopBar"] unique_name_in_owner = true custom_minimum_size = Vector2(44, 44) layout_mode = 2 text = "←" [node name="TitleLabel" type="Label" parent="MainMargin/MainVBox/TopBar"] layout_mode = 2 theme_override_colors/font_color = Color(1.0, 0.85, 0.25, 1) theme_override_fonts/font = ExtResource("3_font") theme_override_font_sizes/font_size = 26 text = "✨ Gacha" [node name="CurrencyRow" type="HBoxContainer" parent="MainMargin/MainVBox/TopBar"] layout_mode = 2 size_flags_horizontal = 3 theme_override_constants/separation = 8 alignment = 2 [node name="StarPanel" type="PanelContainer" parent="MainMargin/MainVBox/TopBar/CurrencyRow"] custom_minimum_size = Vector2(100, 0) layout_mode = 2 theme_override_styles/panel = SubResource("StyleBoxFlat_InnerDark") [node name="Margin" type="MarginContainer" parent="MainMargin/MainVBox/TopBar/CurrencyRow/StarPanel"] layout_mode = 2 theme_override_constants/margin_left = 6 theme_override_constants/margin_top = 4 theme_override_constants/margin_right = 6 theme_override_constants/margin_bottom = 4 [node name="HBox" type="HBoxContainer" parent="MainMargin/MainVBox/TopBar/CurrencyRow/StarPanel/Margin"] layout_mode = 2 theme_override_constants/separation = 4 [node name="Icon" type="TextureRect" parent="MainMargin/MainVBox/TopBar/CurrencyRow/StarPanel/Margin/HBox"] custom_minimum_size = Vector2(20, 20) layout_mode = 2 size_flags_vertical = 4 texture = ExtResource("tex_star") expand_mode = 1 stretch_mode = 5 [node name="StarLabel" type="Label" parent="MainMargin/MainVBox/TopBar/CurrencyRow/StarPanel/Margin/HBox"] unique_name_in_owner = true layout_mode = 2 size_flags_horizontal = 3 theme_override_fonts/font = ExtResource("3_font") theme_override_font_sizes/font_size = 14 text = "0" horizontal_alignment = 2 [node name="GoldPanel" type="PanelContainer" parent="MainMargin/MainVBox/TopBar/CurrencyRow"] custom_minimum_size = Vector2(100, 0) layout_mode = 2 theme_override_styles/panel = SubResource("StyleBoxFlat_InnerDark") [node name="Margin" type="MarginContainer" parent="MainMargin/MainVBox/TopBar/CurrencyRow/GoldPanel"] layout_mode = 2 theme_override_constants/margin_left = 6 theme_override_constants/margin_top = 4 theme_override_constants/margin_right = 6 theme_override_constants/margin_bottom = 4 [node name="HBox" type="HBoxContainer" parent="MainMargin/MainVBox/TopBar/CurrencyRow/GoldPanel/Margin"] layout_mode = 2 theme_override_constants/separation = 4 [node name="Icon" type="TextureRect" parent="MainMargin/MainVBox/TopBar/CurrencyRow/GoldPanel/Margin/HBox"] custom_minimum_size = Vector2(20, 20) layout_mode = 2 size_flags_vertical = 4 texture = ExtResource("tex_gold") expand_mode = 1 stretch_mode = 5 [node name="GoldLabel" type="Label" parent="MainMargin/MainVBox/TopBar/CurrencyRow/GoldPanel/Margin/HBox"] unique_name_in_owner = true layout_mode = 2 size_flags_horizontal = 3 theme_override_fonts/font = ExtResource("3_font") theme_override_font_sizes/font_size = 14 text = "0" horizontal_alignment = 2 [node name="CraftBtn" type="Button" parent="MainMargin/MainVBox/TopBar"] unique_name_in_owner = true custom_minimum_size = Vector2(130, 40) layout_mode = 2 theme_override_colors/font_color = Color(0.4, 1.0, 0.7, 1) theme_override_fonts/font = ExtResource("3_font") theme_override_font_sizes/font_size = 14 theme_override_styles/normal = SubResource("StyleBoxFlat_tab_inactive") theme_override_styles/hover = SubResource("StyleBoxFlat_tab_inactive") theme_override_styles/pressed = SubResource("StyleBoxFlat_tab_active") text = "🧩 Fragment Craft" [node name="BannerTabs" type="HBoxContainer" parent="MainMargin/MainVBox"] layout_mode = 2 theme_override_constants/separation = 12 alignment = 1 [node name="StarTabBtn" type="Button" parent="MainMargin/MainVBox/BannerTabs"] unique_name_in_owner = true custom_minimum_size = Vector2(130, 38) layout_mode = 2 theme_override_fonts/font = ExtResource("3_font") theme_override_font_sizes/font_size = 14 theme_override_styles/normal = SubResource("StyleBoxFlat_tab_inactive") theme_override_styles/hover = SubResource("StyleBoxFlat_tab_inactive") theme_override_styles/pressed = SubResource("StyleBoxFlat_tab_active") text = "✦ Star Banner" [node name="GoldTabBtn" type="Button" parent="MainMargin/MainVBox/BannerTabs"] unique_name_in_owner = true custom_minimum_size = Vector2(130, 38) layout_mode = 2 theme_override_fonts/font = ExtResource("3_font") theme_override_font_sizes/font_size = 14 theme_override_styles/normal = SubResource("StyleBoxFlat_tab_inactive") theme_override_styles/hover = SubResource("StyleBoxFlat_tab_inactive") theme_override_styles/pressed = SubResource("StyleBoxFlat_tab_active") text = "▤ Gold Banner" [node name="ContentHBox" type="HBoxContainer" parent="MainMargin/MainVBox"] layout_mode = 2 size_flags_vertical = 3 theme_override_constants/separation = 20 [node name="LeftPanel" type="PanelContainer" parent="MainMargin/MainVBox/ContentHBox"] custom_minimum_size = Vector2(320, 0) layout_mode = 2 theme_override_styles/panel = SubResource("StyleBoxFlat_OuterPanel") [node name="LeftMargin" type="MarginContainer" parent="MainMargin/MainVBox/ContentHBox/LeftPanel"] layout_mode = 2 theme_override_constants/margin_left = 18 theme_override_constants/margin_top = 18 theme_override_constants/margin_right = 18 theme_override_constants/margin_bottom = 18 [node name="LeftVBox" type="VBoxContainer" parent="MainMargin/MainVBox/ContentHBox/LeftPanel/LeftMargin"] layout_mode = 2 theme_override_constants/separation = 14 [node name="BannerLabel" type="Label" parent="MainMargin/MainVBox/ContentHBox/LeftPanel/LeftMargin/LeftVBox"] unique_name_in_owner = true layout_mode = 2 theme_override_colors/font_color = Color(1.0, 0.85, 0.25, 1) theme_override_fonts/font = ExtResource("3_font") theme_override_font_sizes/font_size = 22 text = "Star Banner" horizontal_alignment = 1 [node name="BalanceRow" type="HBoxContainer" parent="MainMargin/MainVBox/ContentHBox/LeftPanel/LeftMargin/LeftVBox"] layout_mode = 2 theme_override_constants/separation = 6 alignment = 1 [node name="GoldPanel" type="Panel" parent="MainMargin/MainVBox/ContentHBox/LeftPanel/LeftMargin/LeftVBox/BalanceRow"] custom_minimum_size = Vector2(100, 30) layout_mode = 2 theme_override_styles/panel = SubResource("StyleBoxFlat_gd4oi") [node name="MarginContainer" type="MarginContainer" parent="MainMargin/MainVBox/ContentHBox/LeftPanel/LeftMargin/LeftVBox/BalanceRow/GoldPanel"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 theme_override_constants/margin_left = 3 theme_override_constants/margin_top = 3 theme_override_constants/margin_right = 6 theme_override_constants/margin_bottom = 3 [node name="HBoxContainer" type="HBoxContainer" parent="MainMargin/MainVBox/ContentHBox/LeftPanel/LeftMargin/LeftVBox/BalanceRow/GoldPanel/MarginContainer"] layout_mode = 2 [node name="TextureRect" type="TextureRect" parent="MainMargin/MainVBox/ContentHBox/LeftPanel/LeftMargin/LeftVBox/BalanceRow/GoldPanel/MarginContainer/HBoxContainer"] layout_mode = 2 size_flags_horizontal = 0 size_flags_vertical = 4 texture = ExtResource("5_gold") [node name="GoldLabel" type="Label" parent="MainMargin/MainVBox/ContentHBox/LeftPanel/LeftMargin/LeftVBox/BalanceRow/GoldPanel/MarginContainer/HBoxContainer"] unique_name_in_owner = true layout_mode = 2 size_flags_horizontal = 3 theme_override_fonts/font = ExtResource("3_font") theme_override_font_sizes/font_size = 18 text = "0" horizontal_alignment = 2 [node name="StarPanel" type="Panel" parent="MainMargin/MainVBox/ContentHBox/LeftPanel/LeftMargin/LeftVBox/BalanceRow"] custom_minimum_size = Vector2(100, 30) layout_mode = 2 theme_override_styles/panel = SubResource("StyleBoxFlat_gd4oi") [node name="MarginContainer" type="MarginContainer" parent="MainMargin/MainVBox/ContentHBox/LeftPanel/LeftMargin/LeftVBox/BalanceRow/StarPanel"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 theme_override_constants/margin_left = 3 theme_override_constants/margin_top = 3 theme_override_constants/margin_right = 6 theme_override_constants/margin_bottom = 3 [node name="HBoxContainer" type="HBoxContainer" parent="MainMargin/MainVBox/ContentHBox/LeftPanel/LeftMargin/LeftVBox/BalanceRow/StarPanel/MarginContainer"] layout_mode = 2 [node name="TextureRect" type="TextureRect" parent="MainMargin/MainVBox/ContentHBox/LeftPanel/LeftMargin/LeftVBox/BalanceRow/StarPanel/MarginContainer/HBoxContainer"] layout_mode = 2 size_flags_horizontal = 0 size_flags_vertical = 4 texture = ExtResource("6_star") [node name="StarLabel" type="Label" parent="MainMargin/MainVBox/ContentHBox/LeftPanel/LeftMargin/LeftVBox/BalanceRow/StarPanel/MarginContainer/HBoxContainer"] unique_name_in_owner = true layout_mode = 2 size_flags_horizontal = 3 theme_override_fonts/font = ExtResource("3_font") theme_override_font_sizes/font_size = 18 text = "0" horizontal_alignment = 2 [node name="BalanceLbl" type="Label" parent="MainMargin/MainVBox/ContentHBox/LeftPanel/LeftMargin/LeftVBox/BalanceRow"] visible = false layout_mode = 2 theme_override_colors/font_color = Color(0.7, 0.7, 0.7, 1) theme_override_font_sizes/font_size = 13 text = "Balance:" horizontal_alignment = 1 [node name="BalanceLabel" type="Label" parent="MainMargin/MainVBox/ContentHBox/LeftPanel/LeftMargin/LeftVBox/BalanceRow"] unique_name_in_owner = true visible = false layout_mode = 2 theme_override_colors/font_color = Color(0.9, 0.75, 0.2, 1) theme_override_fonts/font = ExtResource("3_font") theme_override_font_sizes/font_size = 18 text = "✦ 0" horizontal_alignment = 2 [node name="PityLabel" type="Label" parent="MainMargin/MainVBox/ContentHBox/LeftPanel/LeftMargin/LeftVBox"] unique_name_in_owner = true layout_mode = 2 theme_override_colors/font_color = Color(0.6, 0.6, 0.9, 1) theme_override_font_sizes/font_size = 13 text = "Pity: 0 / 90" horizontal_alignment = 1 [node name="HSep1" type="HSeparator" parent="MainMargin/MainVBox/ContentHBox/LeftPanel/LeftMargin/LeftVBox"] layout_mode = 2 [node name="Pull1Row" type="HBoxContainer" parent="MainMargin/MainVBox/ContentHBox/LeftPanel/LeftMargin/LeftVBox"] layout_mode = 2 theme_override_constants/separation = 8 [node name="Pull1Btn" type="Button" parent="MainMargin/MainVBox/ContentHBox/LeftPanel/LeftMargin/LeftVBox/Pull1Row"] unique_name_in_owner = true custom_minimum_size = Vector2(0, 44) layout_mode = 2 size_flags_horizontal = 3 theme_override_fonts/font = ExtResource("3_font") theme_override_font_sizes/font_size = 16 theme_override_styles/normal = SubResource("StyleBoxFlat_tab_inactive") theme_override_styles/hover = SubResource("StyleBoxFlat_tab_inactive") theme_override_styles/pressed = SubResource("StyleBoxFlat_tab_active") text = "1× Pull" [node name="Cost1Label" type="Label" parent="MainMargin/MainVBox/ContentHBox/LeftPanel/LeftMargin/LeftVBox/Pull1Row"] unique_name_in_owner = true layout_mode = 2 theme_override_colors/font_color = Color(0.9, 0.75, 0.2, 1) theme_override_fonts/font = ExtResource("3_font") theme_override_font_sizes/font_size = 14 text = "✦ 160" [node name="Pull10Row" type="HBoxContainer" parent="MainMargin/MainVBox/ContentHBox/LeftPanel/LeftMargin/LeftVBox"] layout_mode = 2 theme_override_constants/separation = 8 [node name="Pull10Btn" type="Button" parent="MainMargin/MainVBox/ContentHBox/LeftPanel/LeftMargin/LeftVBox/Pull10Row"] unique_name_in_owner = true custom_minimum_size = Vector2(0, 44) layout_mode = 2 size_flags_horizontal = 3 theme_override_fonts/font = ExtResource("3_font") theme_override_font_sizes/font_size = 16 theme_override_styles/normal = SubResource("StyleBoxFlat_tab_inactive") theme_override_styles/hover = SubResource("StyleBoxFlat_tab_inactive") theme_override_styles/pressed = SubResource("StyleBoxFlat_tab_active") text = "10× Pull" [node name="Cost10Label" type="Label" parent="MainMargin/MainVBox/ContentHBox/LeftPanel/LeftMargin/LeftVBox/Pull10Row"] unique_name_in_owner = true layout_mode = 2 theme_override_colors/font_color = Color(0.9, 0.75, 0.2, 1) theme_override_fonts/font = ExtResource("3_font") theme_override_font_sizes/font_size = 14 text = "✦ 1440" [node name="StatusLabel" type="Label" parent="MainMargin/MainVBox/ContentHBox/LeftPanel/LeftMargin/LeftVBox"] unique_name_in_owner = true layout_mode = 2 theme_override_colors/font_color = Color(1.0, 1.0, 1.0, 1) theme_override_font_sizes/font_size = 13 horizontal_alignment = 1 text = "" [node name="RightPanel" type="PanelContainer" parent="MainMargin/MainVBox/ContentHBox"] layout_mode = 2 size_flags_horizontal = 3 theme_override_styles/panel = SubResource("StyleBoxFlat_OuterPanel") [node name="RightMargin" type="MarginContainer" parent="MainMargin/MainVBox/ContentHBox/RightPanel"] layout_mode = 2 theme_override_constants/margin_left = 16 theme_override_constants/margin_top = 16 theme_override_constants/margin_right = 16 theme_override_constants/margin_bottom = 16 [node name="RatesLabel" type="RichTextLabel" parent="MainMargin/MainVBox/ContentHBox/RightPanel/RightMargin"] unique_name_in_owner = true layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 3 theme_override_colors/default_color = Color(0.75, 0.78, 0.82, 1) theme_override_font_sizes/font_size = 13 text = "" fit_content = true [node name="ResultPanel" type="PanelContainer" parent="."] unique_name_in_owner = true visible = false layout_mode = 1 theme_override_styles/panel = SubResource("StyleBoxFlat_OuterPanel") anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = -450.0 offset_top = -260.0 offset_right = 450.0 offset_bottom = 260.0 grow_horizontal = 2 grow_vertical = 2 [node name="ResultVBox" type="VBoxContainer" parent="ResultPanel"] layout_mode = 2 theme_override_constants/separation = 10 [node name="ResultTitle" type="Label" parent="ResultPanel/ResultVBox"] layout_mode = 2 theme_override_colors/font_color = Color(1, 0.9, 0.3, 1) theme_override_fonts/font = ExtResource("3_font") theme_override_font_sizes/font_size = 20 text = "Pull Results" horizontal_alignment = 1 [node name="ScrollContainer" type="ScrollContainer" parent="ResultPanel/ResultVBox"] layout_mode = 2 size_flags_vertical = 3 custom_minimum_size = Vector2(0, 160) [node name="ResultGrid" type="GridContainer" parent="ResultPanel/ResultVBox/ScrollContainer"] unique_name_in_owner = true layout_mode = 2 size_flags_horizontal = 3 theme_override_constants/h_separation = 8 theme_override_constants/v_separation = 8 columns = 5 [node name="CloseResultBtn" type="Button" parent="ResultPanel/ResultVBox"] unique_name_in_owner = true custom_minimum_size = Vector2(0, 38) layout_mode = 2 theme_override_fonts/font = ExtResource("3_font") theme_override_styles/normal = SubResource("StyleBoxFlat_tab_inactive") theme_override_styles/hover = SubResource("StyleBoxFlat_tab_inactive") theme_override_styles/pressed = SubResource("StyleBoxFlat_tab_active") text = "Close"