mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-03-14 15:25:17 +00:00
Removed "Add Frame Tag" from framebutton's popupmenu
This commit is contained in:
parent
6056ff4857
commit
c900909514
2 changed files with 4 additions and 8 deletions
|
@ -35,7 +35,7 @@ __meta__ = {
|
||||||
margin_right = 20.0
|
margin_right = 20.0
|
||||||
margin_bottom = 20.0
|
margin_bottom = 20.0
|
||||||
mouse_default_cursor_shape = 2
|
mouse_default_cursor_shape = 2
|
||||||
items = [ "Remove Frame", null, 0, false, true, -1, 0, null, "", false, "Clone Frame", null, 0, false, false, -1, 0, null, "", false, "Move Left", null, 0, false, true, -1, 0, null, "", false, "Move Right", null, 0, false, true, -1, 0, null, "", false, "Add Frame Tag", null, 0, false, false, 4, 0, null, "", false, "Unlink Cel", null, 0, false, true, 5, 0, null, "", false ]
|
items = [ "Remove Frame", null, 0, false, true, -1, 0, null, "", false, "Clone Frame", null, 0, false, false, -1, 0, null, "", false, "Move Left", null, 0, false, true, -1, 0, null, "", false, "Move Right", null, 0, false, true, -1, 0, null, "", false, "Unlink Cel", null, 0, false, true, -1, 0, null, "", false ]
|
||||||
|
|
||||||
[node name="LinkedIndicator" type="Polygon2D" parent="."]
|
[node name="LinkedIndicator" type="Polygon2D" parent="."]
|
||||||
visible = false
|
visible = false
|
||||||
|
|
|
@ -9,10 +9,10 @@ func _ready() -> void:
|
||||||
hint_tooltip = "Frame: %s, Layer: %s" % [frame, layer]
|
hint_tooltip = "Frame: %s, Layer: %s" % [frame, layer]
|
||||||
if Global.canvases[frame] in Global.layers[layer][5]:
|
if Global.canvases[frame] in Global.layers[layer][5]:
|
||||||
get_node("LinkedIndicator").visible = true
|
get_node("LinkedIndicator").visible = true
|
||||||
popup_menu.set_item_disabled(5, false) # Unlink cel
|
popup_menu.set_item_disabled(4, false) # Unlink cel
|
||||||
else:
|
else:
|
||||||
get_node("LinkedIndicator").visible = false
|
get_node("LinkedIndicator").visible = false
|
||||||
popup_menu.set_item_disabled(5, true) # Unlink cel
|
popup_menu.set_item_disabled(4, true) # Unlink cel
|
||||||
|
|
||||||
func _on_FrameButton_pressed() -> void:
|
func _on_FrameButton_pressed() -> void:
|
||||||
if Input.is_action_just_released("left_mouse"):
|
if Input.is_action_just_released("left_mouse"):
|
||||||
|
@ -87,11 +87,7 @@ func _on_PopupMenu_id_pressed(ID : int) -> void:
|
||||||
change_frame_order(-1)
|
change_frame_order(-1)
|
||||||
3: # Move Right
|
3: # Move Right
|
||||||
change_frame_order(1)
|
change_frame_order(1)
|
||||||
4: # Add Frame Tag
|
4: # Unlink Cel
|
||||||
Global.tag_dialog.popup_centered()
|
|
||||||
Global.tag_dialog.get_node("GridContainer/FromSpinBox").value = frame + 1
|
|
||||||
Global.tag_dialog.get_node("GridContainer/ToSpinBox").value = frame + 1
|
|
||||||
5: # Unlink Cel
|
|
||||||
var cel_index : int = Global.layers[layer][5].find(Global.canvases[frame])
|
var cel_index : int = Global.layers[layer][5].find(Global.canvases[frame])
|
||||||
Global.layers[layer][5].remove(cel_index)
|
Global.layers[layer][5].remove(cel_index)
|
||||||
_ready()
|
_ready()
|
||||||
|
|
Loading…
Add table
Reference in a new issue