1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

Set the presets of CreateNewImage and FrameTagDialog color pickers to be invisible

This commit is contained in:
OverloadedOrama 2020-05-06 20:24:22 +03:00
parent 1be6662b75
commit 85d438a9c4
4 changed files with 6 additions and 4 deletions

View file

@ -53,6 +53,7 @@ var TStrings ={
func _ready() -> void:
fill_color_node.get_picker().presets_visible = false
ratio_box.connect("pressed", self, "_on_RatioCheckBox_toggled", [ratio_box.pressed])
templates_options.connect("item_selected", self, "_on_TemplatesOptions_item_selected")

View file

@ -2,8 +2,6 @@
[ext_resource path="res://src/UI/Dialogs/CreateNewImage.gd" type="Script" id=1]
[node name="CreateNewImage" type="ConfirmationDialog"]
margin_right = 300.0
margin_bottom = 200.0
@ -119,6 +117,7 @@ margin_top = 108.0
margin_right = 189.0
margin_bottom = 128.0
rect_min_size = Vector2( 64, 20 )
mouse_default_cursor_shape = 2
color = Color( 0, 0, 0, 0 )
[connection signal="about_to_show" from="." to="." method="_on_CreateNewImage_about_to_show"]
[connection signal="confirmed" from="." to="." method="_on_CreateNewImage_confirmed"]

View file

@ -10,6 +10,10 @@ onready var add_tag_button : TextureButton = $VBoxContainer/ScrollContainer/VBox
onready var options_dialog = $TagOptions
func _ready() -> void:
$"TagOptions/GridContainer/ColorPickerButton".get_picker().presets_visible = false
func _on_FrameTagDialog_about_to_show() -> void:
Global.can_draw = false
for vbox in tag_vboxes:

View file

@ -3,8 +3,6 @@
[ext_resource path="res://src/UI/Dialogs/FrameTagDialog.gd" type="Script" id=1]
[ext_resource path="res://assets/graphics/dark_themes/timeline/new_frame.png" type="Texture" id=2]
[node name="FrameTagDialog" type="AcceptDialog"]
margin_right = 83.0
margin_bottom = 58.0