From 1cbfcaf4faeea49cf995af185f76891436f9424a Mon Sep 17 00:00:00 2001 From: Yael Atletl Date: Thu, 7 Nov 2019 17:11:12 -0600 Subject: [PATCH] Start context menu --- UI.tscn | 1 + VBoxContainer.gd | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/UI.tscn b/UI.tscn index 67813f6..e18b30d 100644 --- a/UI.tscn +++ b/UI.tscn @@ -238,6 +238,7 @@ margin_bottom = 360.0 size_flags_horizontal = 3 size_flags_vertical = 3 columns = 3 +allow_rmb_select = true drop_mode_flags = 2 select_mode = 2 diff --git a/VBoxContainer.gd b/VBoxContainer.gd index f38e533..41cc6cd 100644 --- a/VBoxContainer.gd +++ b/VBoxContainer.gd @@ -26,8 +26,8 @@ func create_layer(Name, icon): var current = Layers.create_item(Layers.get_selected()) current.set_cell_mode(2,TreeItem.CELL_MODE_CHECK) current.set_editable(2,true) -# current.set_selectable(1, false) -# current.set_selectable(0, false) + current.set_selectable(2, false) + current.set_selectable(0, false) current.set_checked(2,true) current.set_editable(1,true) current.set_text (1, Name)