[gd_scene format=3 uid="uid://bjs7jhl7a85rh"] [ext_resource type="Script" uid="uid://clkxaudy5hxfj" 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="tex_gold"] [ext_resource type="Texture2D" uid="uid://d0ouvm3x8h42c" path="res://assets/graphics/gui/lobby/star.png" id="tex_star"] [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_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_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_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 [node name="GachaPanel" type="Control" unique_id=1349292500] 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="." unique_id=1532983361] 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="." unique_id=1663610089] 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="." unique_id=139511059] 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" unique_id=691618538] layout_mode = 2 theme_override_constants/separation = 14 [node name="TopBar" type="HBoxContainer" parent="MainMargin/MainVBox" unique_id=1625524615] layout_mode = 2 theme_override_constants/separation = 10 [node name="BackBtn" type="Button" parent="MainMargin/MainVBox/TopBar" unique_id=1391183972] unique_name_in_owner = true custom_minimum_size = Vector2(44, 44) layout_mode = 2 text = "←" [node name="TitleLabel" type="Label" parent="MainMargin/MainVBox/TopBar" unique_id=1690585510] layout_mode = 2 theme_override_colors/font_color = Color(1, 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" unique_id=460847703] layout_mode = 2 size_flags_horizontal = 3 theme_override_constants/separation = 8 alignment = 2 [node name="StarPanel" type="PanelContainer" parent="MainMargin/MainVBox/TopBar/CurrencyRow" unique_id=1836425268] 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" unique_id=1930556005] 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" unique_id=187167010] layout_mode = 2 theme_override_constants/separation = 4 [node name="Icon" type="TextureRect" parent="MainMargin/MainVBox/TopBar/CurrencyRow/StarPanel/Margin/HBox" unique_id=1225334011] 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_id=522439690] 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" unique_id=35144569] 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" unique_id=1920706991] 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" unique_id=1860851243] layout_mode = 2 theme_override_constants/separation = 4 [node name="Icon" type="TextureRect" parent="MainMargin/MainVBox/TopBar/CurrencyRow/GoldPanel/Margin/HBox" unique_id=1342503990] 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_id=1096459165] 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_id=922059235] unique_name_in_owner = true custom_minimum_size = Vector2(130, 40) layout_mode = 2 theme_override_colors/font_color = Color(0.4, 1, 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/pressed = SubResource("StyleBoxFlat_tab_active") theme_override_styles/hover = SubResource("StyleBoxFlat_tab_inactive") text = "🧩 Fragment Craft" [node name="BannerTabs" type="HBoxContainer" parent="MainMargin/MainVBox" unique_id=36917097] layout_mode = 2 theme_override_constants/separation = 12 alignment = 1 [node name="StarTabBtn" type="Button" parent="MainMargin/MainVBox/BannerTabs" unique_id=267357394] 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/pressed = SubResource("StyleBoxFlat_tab_active") theme_override_styles/hover = SubResource("StyleBoxFlat_tab_inactive") text = "✦ Star Banner" [node name="GoldTabBtn" type="Button" parent="MainMargin/MainVBox/BannerTabs" unique_id=1043151664] 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/pressed = SubResource("StyleBoxFlat_tab_active") theme_override_styles/hover = SubResource("StyleBoxFlat_tab_inactive") text = "▤ Gold Banner" [node name="ContentHBox" type="HBoxContainer" parent="MainMargin/MainVBox" unique_id=1498567570] layout_mode = 2 size_flags_vertical = 3 theme_override_constants/separation = 20 [node name="LeftPanel" type="PanelContainer" parent="MainMargin/MainVBox/ContentHBox" unique_id=1542327161] 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" unique_id=443861949] 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" unique_id=1376947326] layout_mode = 2 theme_override_constants/separation = 14 [node name="BannerLabel" type="Label" parent="MainMargin/MainVBox/ContentHBox/LeftPanel/LeftMargin/LeftVBox" unique_id=128145824] unique_name_in_owner = true layout_mode = 2 theme_override_colors/font_color = Color(1, 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" unique_id=908965342] layout_mode = 2 theme_override_constants/separation = 6 alignment = 1 [node name="GoldPanel" type="Panel" parent="MainMargin/MainVBox/ContentHBox/LeftPanel/LeftMargin/LeftVBox/BalanceRow" unique_id=1862665063] 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" unique_id=375107954] 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" unique_id=21246450] layout_mode = 2 [node name="TextureRect" type="TextureRect" parent="MainMargin/MainVBox/ContentHBox/LeftPanel/LeftMargin/LeftVBox/BalanceRow/GoldPanel/MarginContainer/HBoxContainer" unique_id=65278254] layout_mode = 2 size_flags_horizontal = 0 size_flags_vertical = 4 texture = ExtResource("tex_gold") [node name="GoldLabel" type="Label" parent="MainMargin/MainVBox/ContentHBox/LeftPanel/LeftMargin/LeftVBox/BalanceRow/GoldPanel/MarginContainer/HBoxContainer" unique_id=1159494172] 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" unique_id=193442837] 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" unique_id=506401407] 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" unique_id=51102528] layout_mode = 2 [node name="TextureRect" type="TextureRect" parent="MainMargin/MainVBox/ContentHBox/LeftPanel/LeftMargin/LeftVBox/BalanceRow/StarPanel/MarginContainer/HBoxContainer" unique_id=1476183321] layout_mode = 2 size_flags_horizontal = 0 size_flags_vertical = 4 texture = ExtResource("tex_star") [node name="StarLabel" type="Label" parent="MainMargin/MainVBox/ContentHBox/LeftPanel/LeftMargin/LeftVBox/BalanceRow/StarPanel/MarginContainer/HBoxContainer" unique_id=1357103504] 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" unique_id=1997926367] 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_id=1743519745] 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_id=379092911] 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" unique_id=2009144054] layout_mode = 2 [node name="Pull1Row" type="HBoxContainer" parent="MainMargin/MainVBox/ContentHBox/LeftPanel/LeftMargin/LeftVBox" unique_id=1253450919] layout_mode = 2 theme_override_constants/separation = 8 [node name="Pull1Btn" type="Button" parent="MainMargin/MainVBox/ContentHBox/LeftPanel/LeftMargin/LeftVBox/Pull1Row" unique_id=1313297675] 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/pressed = SubResource("StyleBoxFlat_tab_active") theme_override_styles/hover = SubResource("StyleBoxFlat_tab_inactive") text = "1× Pull" [node name="Cost1Label" type="Label" parent="MainMargin/MainVBox/ContentHBox/LeftPanel/LeftMargin/LeftVBox/Pull1Row" unique_id=151347195] 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" unique_id=1677571152] layout_mode = 2 theme_override_constants/separation = 8 [node name="Pull10Btn" type="Button" parent="MainMargin/MainVBox/ContentHBox/LeftPanel/LeftMargin/LeftVBox/Pull10Row" unique_id=1681522273] 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/pressed = SubResource("StyleBoxFlat_tab_active") theme_override_styles/hover = SubResource("StyleBoxFlat_tab_inactive") text = "10× Pull" [node name="Cost10Label" type="Label" parent="MainMargin/MainVBox/ContentHBox/LeftPanel/LeftMargin/LeftVBox/Pull10Row" unique_id=191013010] 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_id=447296799] unique_name_in_owner = true layout_mode = 2 theme_override_colors/font_color = Color(1, 1, 1, 1) theme_override_font_sizes/font_size = 13 horizontal_alignment = 1 [node name="RightPanel" type="PanelContainer" parent="MainMargin/MainVBox/ContentHBox" unique_id=208396625] layout_mode = 2 size_flags_horizontal = 3 theme_override_styles/panel = SubResource("StyleBoxFlat_OuterPanel") [node name="RightMargin" type="MarginContainer" parent="MainMargin/MainVBox/ContentHBox/RightPanel" unique_id=988364101] 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_id=436846225] 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) fit_content = true [node name="ResultPanel" type="PanelContainer" parent="." unique_id=1303462967] unique_name_in_owner = true visible = false layout_mode = 1 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 theme_override_styles/panel = SubResource("StyleBoxFlat_OuterPanel") [node name="ResultVBox" type="VBoxContainer" parent="ResultPanel" unique_id=893629253] layout_mode = 2 theme_override_constants/separation = 10 [node name="ResultTitle" type="Label" parent="ResultPanel/ResultVBox" unique_id=1336286642] 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" unique_id=411371159] custom_minimum_size = Vector2(0, 160) layout_mode = 2 size_flags_vertical = 3 [node name="ResultGrid" type="GridContainer" parent="ResultPanel/ResultVBox/ScrollContainer" unique_id=1917152748] 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_id=1215289477] 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/pressed = SubResource("StyleBoxFlat_tab_active") theme_override_styles/hover = SubResource("StyleBoxFlat_tab_inactive") text = "Close"