can resize tool
This commit is contained in:
parent
85740ade1d
commit
4edf4f5024
3 changed files with 42 additions and 3 deletions
18
main.tscn
18
main.tscn
|
|
@ -46,9 +46,10 @@ anchor_bottom = 1.0
|
|||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="TitleBar" type="PanelContainer" parent="VBoxContainer"]
|
||||
[node name="TitleBar" type="PanelContainer" parent="VBoxContainer" node_paths=PackedStringArray("options_menu")]
|
||||
layout_mode = 2
|
||||
script = ExtResource("1_ig7tw")
|
||||
options_menu = NodePath("../../StatusIndicator/PopupMenu")
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/TitleBar"]
|
||||
layout_mode = 2
|
||||
|
|
@ -163,11 +164,24 @@ icon = ExtResource("3_h2yge")
|
|||
menu = NodePath("PopupMenu")
|
||||
|
||||
[node name="PopupMenu" type="PopupMenu" parent="StatusIndicator"]
|
||||
item_count = 1
|
||||
item_count = 5
|
||||
item_0/text = "Exit"
|
||||
item_0/id = 0
|
||||
item_1/id = 1
|
||||
item_1/separator = true
|
||||
item_2/text = "Small"
|
||||
item_2/checkable = 2
|
||||
item_2/checked = true
|
||||
item_2/id = 2
|
||||
item_3/text = "Medium"
|
||||
item_3/checkable = 2
|
||||
item_3/id = 3
|
||||
item_4/text = "Large"
|
||||
item_4/checkable = 2
|
||||
item_4/id = 4
|
||||
|
||||
[connection signal="gui_input" from="VBoxContainer/TitleBar" to="VBoxContainer/TitleBar" method="_on_TitleBar_gui_input"]
|
||||
[connection signal="pressed" from="VBoxContainer/Buttons/OffTaskButton" to="." method="_on_off_task_button_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Buttons/PauseButton" to="." method="_on_pause_button_pressed"]
|
||||
[connection signal="id_pressed" from="StatusIndicator/PopupMenu" to="." method="_on_popup_menu_id_pressed"]
|
||||
[connection signal="id_pressed" from="StatusIndicator/PopupMenu" to="VBoxContainer/TitleBar" method="_on_popup_menu_id_pressed"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue