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:
parent
37bd074983
commit
f417151be4
2 changed files with 3 additions and 5 deletions
|
|
@ -111,7 +111,7 @@ var data: SteamAppData:
|
|||
|
||||
func _ready() -> void:
|
||||
%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 selected_steam_game != 0:
|
||||
get_app_info(STEAM_APP_IDS[selected_steam_game])
|
||||
|
|
@ -205,9 +205,6 @@ func load_texture_from_url(url: String) -> ImageTexture:
|
|||
http.queue_free()
|
||||
return tex
|
||||
|
||||
func _on_btn_close_png_pressed() -> void:
|
||||
hide()
|
||||
|
||||
func _on_btn_visit_page_pressed() -> void:
|
||||
if data:
|
||||
OS.shell_open(data.short_url)
|
||||
|
|
|
|||
|
|
@ -167,6 +167,7 @@ metadata/_custom_type_script = "uid://chgufd1youdel"
|
|||
[node name="Background" type="TextureRect" parent="." unique_id=2131684228]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
expand_mode = 1
|
||||
|
||||
[node name="v" type="VBoxContainer" parent="." unique_id=711622106]
|
||||
layout_mode = 2
|
||||
|
|
@ -191,7 +192,7 @@ stretch_mode = 5
|
|||
layout_mode = 2
|
||||
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
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 8
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue