mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-03-16 08:15:18 +00:00
* Add Flip X, Flip Y, Rotate 90, Rotate 180, Rotate 270 * node placement * flip_rotate for BrushButton * flip corrected for BrushButton (x, y was reversed) * code changed for github static checks * github static checks * github static checks 2 * remove " _ " before my variable name hope this was the problem * var brush_texture_rotation * Hide Flip/Rotate buttons where it is unnecessary * btns flip/rotate hide when a non-image brush is selected * rotate ButtonGroup (radio btn) * expand button for flip/rotate * radio btn grp 2 * expand button (forgot to add the tscn ) * cursor shape to pointing hand * tooltip R90 R180 R270 i dont add txt to the Translations.pot bc not sure to understand and dont want to make mistake * shading.tscn (nodes placement debreaking) back as before * Revert "expand button (forgot to add the tscn )" This reverts commit3062afe73f
. * Revert "expand button for flip/rotate" This reverts commit51189ac793
. * Collapsible Container change "expend buton" to the pixelorama custum node "CollapsibleContainer" * remove thick white outline when CollapseContainer is pressed and focus * styleboxflat when CollapseContainer is pressed and empty for checkbox * Revert "styleboxflat when CollapseContainer is pressed and empty for checkbox" This reverts commit0af0e1f427
. * StyleboxEmpty for normal / keep hover unchanged * Revert "StyleboxEmpty for normal / keep hover unchanged" This reverts commit14b3745053
. * Revert "remove thick white outline when CollapseContainer is pressed and focus" This reverts commitb80ab1ad5c
. * "flip_rotateD" + "Flat CollapsibleContainer'" * conflicts Resolved signal color_changed(color: Color, button: int) --------- Co-authored-by: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com>
53 lines
1.7 KiB
Text
53 lines
1.7 KiB
Text
[gd_scene load_steps=3 format=3 uid="uid://ckg78y8l0rmf3"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://3pmb60gpst7b" path="res://src/UI/Nodes/TransparentChecker.tscn" id="1"]
|
|
[ext_resource type="Script" path="res://src/UI/Buttons/BrushButton.gd" id="2"]
|
|
|
|
[node name="BrushButton" type="Button"]
|
|
custom_minimum_size = Vector2(36, 36)
|
|
offset_right = 36.0
|
|
offset_bottom = 36.0
|
|
button_mask = 7
|
|
script = ExtResource("2")
|
|
|
|
[node name="BrushTexture" type="TextureRect" parent="."]
|
|
custom_minimum_size = Vector2(32, 32)
|
|
layout_mode = 0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = 2.0
|
|
offset_top = 2.0
|
|
offset_right = -2.0
|
|
offset_bottom = -2.0
|
|
pivot_offset = Vector2(16, 16)
|
|
expand_mode = 1
|
|
stretch_mode = 6
|
|
|
|
[node name="TransparentChecker" parent="BrushTexture" instance=ExtResource("1")]
|
|
show_behind_parent = true
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="DeleteButton" type="Button" parent="."]
|
|
visible = false
|
|
modulate = Color(1, 0.00392157, 0.00392157, 0.878431)
|
|
layout_mode = 0
|
|
anchor_left = 1.0
|
|
anchor_right = 1.0
|
|
offset_left = -12.0
|
|
offset_top = 2.0
|
|
offset_right = 8.0
|
|
offset_bottom = 22.0
|
|
scale = Vector2(0.5, 0.5)
|
|
text = "X"
|
|
|
|
[connection signal="mouse_entered" from="." to="." method="_on_BrushButton_mouse_entered"]
|
|
[connection signal="mouse_exited" from="." to="." method="_on_BrushButton_mouse_exited"]
|
|
[connection signal="pressed" from="." to="." method="_on_BrushButton_pressed"]
|
|
[connection signal="mouse_entered" from="DeleteButton" to="." method="_on_BrushButton_mouse_entered"]
|
|
[connection signal="mouse_exited" from="DeleteButton" to="." method="_on_BrushButton_mouse_exited"]
|
|
[connection signal="pressed" from="DeleteButton" to="." method="_on_DeleteButton_pressed"]
|