Added console panel with device and host console, logs and domain console.
This commit is contained in:
1 parent
6038b816b7
commit
b98ed82619
17 files changed
+551
-22
No files matched your search
@@ -55,7 +55,7 @@ func set_edit_mode(active: bool) -> void:
|
||||
cancel_interaction()
|
||||
edit_mode = active
|
||||
for item in _items:
|
||||
item.mouse_behavior_recursive = Control.MOUSE_BEHAVIOR_DISABLED if active else Control.MOUSE_BEHAVIOR_INHERITED
|
||||
_set_item_interaction(item)
|
||||
if not active:
|
||||
selected = null
|
||||
overlay.visible = active
|
||||
@@ -182,7 +182,7 @@ func add_element(element_type: String) -> Control:
|
||||
_items.append(item)
|
||||
item.cell_rect = rect
|
||||
item.show()
|
||||
item.mouse_behavior_recursive = Control.MOUSE_BEHAVIOR_DISABLED
|
||||
_set_item_interaction(item)
|
||||
selected = item
|
||||
arrange_items()
|
||||
save_layout()
|
||||
@@ -297,7 +297,7 @@ func _apply_records(records: Array) -> void:
|
||||
_items.append(item)
|
||||
item.cell_rect = record.rect
|
||||
item.show()
|
||||
item.mouse_behavior_recursive = Control.MOUSE_BEHAVIOR_DISABLED if edit_mode else Control.MOUSE_BEHAVIOR_INHERITED
|
||||
_set_item_interaction(item)
|
||||
arrange_items()
|
||||
|
||||
func _migrate_legacy() -> void:
|
||||
@@ -337,3 +337,9 @@ func _update_overlay() -> void:
|
||||
actions.position = selected.position + Vector2(selected.size.x - 116, 4)
|
||||
overlay.show_candidate = not _operation.is_empty()
|
||||
overlay.queue_redraw()
|
||||
|
||||
func _set_item_interaction(item: Control) -> void:
|
||||
item.mouse_behavior_recursive = Control.MOUSE_BEHAVIOR_DISABLED if edit_mode else Control.MOUSE_BEHAVIOR_INHERITED
|
||||
var content := item.get_node_or_null("Content")
|
||||
if content != null and content.has_method("set_layout_editing"):
|
||||
content.set_layout_editing(edit_mode)
|
||||
Reference in new issue
Block a user