1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-03-12 22:35:18 +00:00

Disable "open last project" option in HTML5

This commit is contained in:
OverloadedOrama 2020-07-15 18:36:46 +03:00
parent 8ec3256ce6
commit ebf19c7bfe
3 changed files with 8 additions and 2 deletions

View file

@ -26,6 +26,9 @@ func _on_SplashDialog_about_to_show() -> void:
get_stylebox("panel", "WindowDialog").bg_color = Global.control.theme.get_stylebox("panel", "WindowDialog").bg_color
get_stylebox("panel", "WindowDialog").border_color = Global.control.theme.get_stylebox("panel", "WindowDialog").border_color
if OS.get_name() == "HTML5":
$Contents/ButtonsPatronsLogos/Buttons/OpenLastBtn.visible = false
func _on_ArtCredits_pressed() -> void:

View file

@ -98,7 +98,7 @@ margin_bottom = 20.0
mouse_default_cursor_shape = 2
text = "New"
[node name="OpenBtn " type="Button" parent="Contents/ButtonsPatronsLogos/Buttons"]
[node name="OpenBtn" type="Button" parent="Contents/ButtonsPatronsLogos/Buttons"]
margin_top = 30.0
margin_right = 290.0
margin_bottom = 50.0
@ -276,7 +276,7 @@ rect_min_size = Vector2( 4, 0 )
[connection signal="about_to_show" from="." to="." method="_on_SplashDialog_about_to_show"]
[connection signal="pressed" from="Contents/SplashArt/ArtBy/ArtistName" to="." method="_on_ArtCredits_pressed"]
[connection signal="pressed" from="Contents/ButtonsPatronsLogos/Buttons/NewBtn" to="." method="_on_NewBtn_pressed"]
[connection signal="pressed" from="Contents/ButtonsPatronsLogos/Buttons/OpenBtn " to="." method="_on_OpenBtn__pressed"]
[connection signal="pressed" from="Contents/ButtonsPatronsLogos/Buttons/OpenBtn" to="." method="_on_OpenBtn__pressed"]
[connection signal="pressed" from="Contents/ButtonsPatronsLogos/Buttons/OpenLastBtn" to="." method="_on_OpenLastBtn_pressed"]
[connection signal="pressed" from="Contents/ButtonsPatronsLogos/Info/Sponsors/PatronContainer/VBoxContainer/BecomePlatinum" to="." method="_on_TakeThisSpot_pressed"]
[connection signal="pressed" from="Contents/ButtonsPatronsLogos/Info/Sponsors/PatronContainer/VBoxContainer/BecomeGold" to="." method="_on_TakeThisSpot_pressed"]

View file

@ -34,6 +34,9 @@ func setup_file_menu() -> void:
file_menu.connect("id_pressed", self, "file_menu_id_pressed")
if OS.get_name() == "HTML5":
file_menu.set_item_disabled(2, true)
func setup_edit_menu() -> void:
var edit_menu_items := {