mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-20 12:33:14 +00:00
Change SplashDialog from WindowDialog to AcceptDialog
This eliminates the need of the dialog having a rect_min_size, which lets users resize it to make it even smaller. The OK button is being hidden at the start, so visually it should look almost the same.
This commit is contained in:
parent
7bfcabc466
commit
500fc5ac47
2 changed files with 13 additions and 17 deletions
|
@ -1,4 +1,4 @@
|
|||
extends WindowDialog
|
||||
extends AcceptDialog
|
||||
|
||||
var artworks := [
|
||||
[
|
||||
|
@ -34,6 +34,10 @@ var art_by_label: Button
|
|||
onready var version_text: TextureRect = find_node("VersionText")
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
get_ok().visible = false
|
||||
|
||||
|
||||
func _on_SplashDialog_about_to_show() -> void:
|
||||
splash_art_texturerect = find_node("SplashArt")
|
||||
art_by_label = find_node("ArtistName")
|
||||
|
|
|
@ -22,17 +22,19 @@ bg_color = Color( 1, 1, 1, 0 )
|
|||
[sub_resource type="StyleBoxFlat" id=3]
|
||||
bg_color = Color( 0.6, 0.6, 0.6, 0 )
|
||||
|
||||
[node name="SplashDialog" type="WindowDialog"]
|
||||
margin_right = 640.0
|
||||
margin_bottom = 583.0
|
||||
rect_min_size = Vector2( 640, 583 )
|
||||
[node name="SplashDialog" type="AcceptDialog"]
|
||||
margin_right = 656.0
|
||||
margin_bottom = 611.0
|
||||
resizable = true
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="Contents" type="VBoxContainer" parent="."]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_bottom = -46.0
|
||||
margin_left = 8.0
|
||||
margin_top = 8.0
|
||||
margin_right = -8.0
|
||||
margin_bottom = -36.0
|
||||
custom_constants/separation = 8
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
|
@ -41,7 +43,6 @@ __meta__ = {
|
|||
[node name="SplashArt" type="TextureRect" parent="Contents"]
|
||||
margin_right = 640.0
|
||||
margin_bottom = 406.0
|
||||
rect_min_size = Vector2( 640, 406 )
|
||||
size_flags_vertical = 3
|
||||
texture = ExtResource( 2 )
|
||||
expand = true
|
||||
|
@ -237,7 +238,7 @@ margin_right = 284.0
|
|||
margin_bottom = 32.0
|
||||
rect_min_size = Vector2( 230, 0 )
|
||||
size_flags_vertical = 8
|
||||
text = "MysteryStudio"
|
||||
text = "ShikadiGum"
|
||||
autowrap = true
|
||||
|
||||
[node name="PatronsLabel3" type="Label" parent="Contents/ButtonsPatronsLogos/Info/PatronContainer"]
|
||||
|
@ -246,15 +247,6 @@ margin_right = 284.0
|
|||
margin_bottom = 50.0
|
||||
rect_min_size = Vector2( 230, 0 )
|
||||
size_flags_vertical = 8
|
||||
text = "ShikadiGum"
|
||||
autowrap = true
|
||||
|
||||
[node name="PatronsLabel4" type="Label" parent="Contents/ButtonsPatronsLogos/Info/PatronContainer"]
|
||||
margin_top = 54.0
|
||||
margin_right = 284.0
|
||||
margin_bottom = 68.0
|
||||
rect_min_size = Vector2( 230, 0 )
|
||||
size_flags_vertical = 8
|
||||
text = "Hugo Locurcio"
|
||||
autowrap = true
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue