mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-21 13:03:13 +00:00
Made image effect dialog previews centered & made them expand vertically
This commit is contained in:
parent
b52a7c224a
commit
b53926724e
8 changed files with 26 additions and 19 deletions
|
@ -23,6 +23,8 @@ __meta__ = {
|
||||||
margin_right = 263.0
|
margin_right = 263.0
|
||||||
margin_bottom = 200.0
|
margin_bottom = 200.0
|
||||||
rect_min_size = Vector2( 200, 200 )
|
rect_min_size = Vector2( 200, 200 )
|
||||||
|
size_flags_horizontal = 4
|
||||||
|
size_flags_vertical = 3
|
||||||
expand = true
|
expand = true
|
||||||
stretch_mode = 5
|
stretch_mode = 5
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,7 @@ margin_right = 233.0
|
||||||
margin_bottom = 200.0
|
margin_bottom = 200.0
|
||||||
rect_min_size = Vector2( 200, 200 )
|
rect_min_size = Vector2( 200, 200 )
|
||||||
size_flags_horizontal = 4
|
size_flags_horizontal = 4
|
||||||
|
size_flags_vertical = 3
|
||||||
expand = true
|
expand = true
|
||||||
stretch_mode = 5
|
stretch_mode = 5
|
||||||
|
|
||||||
|
|
|
@ -25,9 +25,12 @@ __meta__ = {
|
||||||
}
|
}
|
||||||
|
|
||||||
[node name="Preview" type="TextureRect" parent="VBoxContainer"]
|
[node name="Preview" type="TextureRect" parent="VBoxContainer"]
|
||||||
margin_right = 285.0
|
margin_left = 42.0
|
||||||
margin_bottom = 100.0
|
margin_right = 242.0
|
||||||
rect_min_size = Vector2( 0, 100 )
|
margin_bottom = 200.0
|
||||||
|
rect_min_size = Vector2( 200, 200 )
|
||||||
|
size_flags_horizontal = 4
|
||||||
|
size_flags_vertical = 3
|
||||||
expand = true
|
expand = true
|
||||||
stretch_mode = 5
|
stretch_mode = 5
|
||||||
|
|
||||||
|
@ -35,9 +38,9 @@ stretch_mode = 5
|
||||||
show_behind_parent = true
|
show_behind_parent = true
|
||||||
|
|
||||||
[node name="OptionsContainer" type="GridContainer" parent="VBoxContainer"]
|
[node name="OptionsContainer" type="GridContainer" parent="VBoxContainer"]
|
||||||
margin_top = 104.0
|
margin_top = 204.0
|
||||||
margin_right = 285.0
|
margin_right = 285.0
|
||||||
margin_bottom = 204.0
|
margin_bottom = 304.0
|
||||||
columns = 2
|
columns = 2
|
||||||
|
|
||||||
[node name="Label" type="Label" parent="VBoxContainer/OptionsContainer"]
|
[node name="Label" type="Label" parent="VBoxContainer/OptionsContainer"]
|
||||||
|
|
|
@ -25,6 +25,8 @@ __meta__ = {
|
||||||
margin_right = 447.0
|
margin_right = 447.0
|
||||||
margin_bottom = 200.0
|
margin_bottom = 200.0
|
||||||
rect_min_size = Vector2( 200, 200 )
|
rect_min_size = Vector2( 200, 200 )
|
||||||
|
size_flags_horizontal = 4
|
||||||
|
size_flags_vertical = 3
|
||||||
expand = true
|
expand = true
|
||||||
stretch_mode = 5
|
stretch_mode = 5
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,8 @@ __meta__ = {
|
||||||
margin_right = 263.0
|
margin_right = 263.0
|
||||||
margin_bottom = 200.0
|
margin_bottom = 200.0
|
||||||
rect_min_size = Vector2( 200, 200 )
|
rect_min_size = Vector2( 200, 200 )
|
||||||
|
size_flags_horizontal = 4
|
||||||
|
size_flags_vertical = 3
|
||||||
expand = true
|
expand = true
|
||||||
stretch_mode = 5
|
stretch_mode = 5
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,8 @@ __meta__ = {
|
||||||
margin_right = 312.0
|
margin_right = 312.0
|
||||||
margin_bottom = 200.0
|
margin_bottom = 200.0
|
||||||
rect_min_size = Vector2( 200, 200 )
|
rect_min_size = Vector2( 200, 200 )
|
||||||
|
size_flags_horizontal = 4
|
||||||
|
size_flags_vertical = 3
|
||||||
expand = true
|
expand = true
|
||||||
stretch_mode = 5
|
stretch_mode = 5
|
||||||
|
|
||||||
|
|
|
@ -11,17 +11,9 @@ func set_nodes() -> void:
|
||||||
preview = $VBoxContainer/Preview
|
preview = $VBoxContainer/Preview
|
||||||
|
|
||||||
|
|
||||||
func set_sprite(sprite : Image) -> void:
|
|
||||||
preview_image.copy_from(sprite)
|
|
||||||
current_cel = sprite
|
|
||||||
preview_texture.create_from_image(preview_image, 0)
|
|
||||||
preview.texture = preview_texture
|
|
||||||
|
|
||||||
|
|
||||||
func _about_to_show() -> void:
|
func _about_to_show() -> void:
|
||||||
._about_to_show()
|
._about_to_show()
|
||||||
$VBoxContainer/HBoxContainer/HSlider.value = 0
|
$VBoxContainer/HBoxContainer/HSlider.value = 0
|
||||||
# set_sprite(current_cel)
|
|
||||||
|
|
||||||
|
|
||||||
func _confirmed() -> void:
|
func _confirmed() -> void:
|
||||||
|
|
|
@ -25,9 +25,12 @@ __meta__ = {
|
||||||
}
|
}
|
||||||
|
|
||||||
[node name="Preview" type="TextureRect" parent="VBoxContainer"]
|
[node name="Preview" type="TextureRect" parent="VBoxContainer"]
|
||||||
margin_right = 229.0
|
margin_left = 14.0
|
||||||
margin_bottom = 145.0
|
margin_right = 214.0
|
||||||
|
margin_bottom = 200.0
|
||||||
rect_min_size = Vector2( 200, 200 )
|
rect_min_size = Vector2( 200, 200 )
|
||||||
|
size_flags_horizontal = 4
|
||||||
|
size_flags_vertical = 3
|
||||||
expand = true
|
expand = true
|
||||||
stretch_mode = 5
|
stretch_mode = 5
|
||||||
|
|
||||||
|
@ -35,9 +38,9 @@ stretch_mode = 5
|
||||||
show_behind_parent = true
|
show_behind_parent = true
|
||||||
|
|
||||||
[node name="HBoxContainer2" type="HBoxContainer" parent="VBoxContainer"]
|
[node name="HBoxContainer2" type="HBoxContainer" parent="VBoxContainer"]
|
||||||
margin_top = 149.0
|
margin_top = 204.0
|
||||||
margin_right = 229.0
|
margin_right = 229.0
|
||||||
margin_bottom = 169.0
|
margin_bottom = 224.0
|
||||||
|
|
||||||
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer2"]
|
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer2"]
|
||||||
margin_top = 3.0
|
margin_top = 3.0
|
||||||
|
@ -54,9 +57,9 @@ size_flags_horizontal = 3
|
||||||
size_flags_vertical = 3
|
size_flags_vertical = 3
|
||||||
|
|
||||||
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
|
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
|
||||||
margin_top = 173.0
|
margin_top = 228.0
|
||||||
margin_right = 229.0
|
margin_right = 229.0
|
||||||
margin_bottom = 197.0
|
margin_bottom = 252.0
|
||||||
|
|
||||||
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer"]
|
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer"]
|
||||||
margin_top = 5.0
|
margin_top = 5.0
|
||||||
|
|
Loading…
Add table
Reference in a new issue