Updated SteamAppPanel

Updated Backgroudn Expand mode to cover.
Renamed ClosePanel button to Clear
Remoevd ClosePanel handler, and added Clear pressed signal connecting to
clear function.
This commit is contained in:
Mario Steele 2026-03-09 03:09:59 -05:00
parent 37bd074983
commit f417151be4
2 changed files with 3 additions and 5 deletions

View file

@ -111,7 +111,7 @@ var data: SteamAppData:
func _ready() -> void: func _ready() -> void:
%VisitPage.pressed.connect(_on_btn_visit_page_pressed) %VisitPage.pressed.connect(_on_btn_visit_page_pressed)
%ClosePanel.pressed.connect(_on_btn_close_png_pressed) %Clear.pressed.connect(clear)
if Engine.is_editor_hint(): if Engine.is_editor_hint():
if selected_steam_game != 0: if selected_steam_game != 0:
get_app_info(STEAM_APP_IDS[selected_steam_game]) get_app_info(STEAM_APP_IDS[selected_steam_game])
@ -205,9 +205,6 @@ func load_texture_from_url(url: String) -> ImageTexture:
http.queue_free() http.queue_free()
return tex return tex
func _on_btn_close_png_pressed() -> void:
hide()
func _on_btn_visit_page_pressed() -> void: func _on_btn_visit_page_pressed() -> void:
if data: if data:
OS.shell_open(data.short_url) OS.shell_open(data.short_url)

View file

@ -167,6 +167,7 @@ metadata/_custom_type_script = "uid://chgufd1youdel"
[node name="Background" type="TextureRect" parent="." unique_id=2131684228] [node name="Background" type="TextureRect" parent="." unique_id=2131684228]
unique_name_in_owner = true unique_name_in_owner = true
layout_mode = 2 layout_mode = 2
expand_mode = 1
[node name="v" type="VBoxContainer" parent="." unique_id=711622106] [node name="v" type="VBoxContainer" parent="." unique_id=711622106]
layout_mode = 2 layout_mode = 2
@ -191,7 +192,7 @@ stretch_mode = 5
layout_mode = 2 layout_mode = 2
text = "Steam App Info" text = "Steam App Info"
[node name="ClosePanel" type="Button" parent="v/m" unique_id=1693377160] [node name="Clear" type="Button" parent="v/m" unique_id=1693377160]
unique_name_in_owner = true unique_name_in_owner = true
layout_mode = 2 layout_mode = 2
size_flags_horizontal = 8 size_flags_horizontal = 8