From 13a339b0d6b86cab8519f38e19deee1c4f2eedf8 Mon Sep 17 00:00:00 2001 From: Jorge Bernal Date: Tue, 2 Mar 2021 23:54:32 +0100 Subject: [PATCH 1/2] Remove Python Components from Logic Node Editor This system already has a place in the logic bricks editor (and additionally in the near future will be moved to Object Properties tab) --- __init__.py | 1 - ui/__init__.py | 39 --------------------------------------- 2 files changed, 40 deletions(-) diff --git a/__init__.py b/__init__.py index 4ded46f..00648a2 100644 --- a/__init__.py +++ b/__init__.py @@ -495,7 +495,6 @@ def draw(self, context): ui.BGE_PT_HelpPanel, ui.BGE_PT_LogicNodeSettingsObject, ui.BGE_PT_LogicTreeOptions, - ui.BGE_PT_GameComponentPanel, ui.BGE_PT_GamePropertyPanel3DView, ui.BGE_PT_PropertiesPanelObject, ui.BGE_PT_LogicTreeGroups diff --git a/ui/__init__.py b/ui/__init__.py index e5cd8b9..79f189d 100644 --- a/ui/__init__.py +++ b/ui/__init__.py @@ -57,45 +57,6 @@ class BGEGroupName(bpy.types.PropertyGroup): enabled: bpy.props.BoolProperty() -class BGE_PT_GameComponentPanel(bpy.types.Panel): - bl_label = "Components" - bl_space_type = "NODE_EDITOR" - bl_region_type = "UI" - bl_category = "Item" - # module = bpy.StringProperty() - - @classmethod - def poll(cls, context): - ob = context.active_object - return ob and ob.name - - def draw(self, context): - layout = self.layout - - ob = context.active_object - game = ob.game - - row = layout.row() - row.operator("logic.python_component_register", text="Register", icon="PLUS") - row.operator("logic.python_component_create", text="Create", icon="PLUS") - - for i, c in enumerate(game.components): - box = layout.box() - row = box.row() - row.prop(c, "show_expanded", text="", emboss=False) - row.label(text=c.name) - row.operator("logic.python_component_reload", text="", icon='RECOVER_LAST').index = i - row.operator("logic.python_component_remove", text="", icon='X').index = i - - if c.show_expanded and len(c.properties) > 0: - box = box.box() - for prop in c.properties: - row = box.row() - row.label(text=prop.name) - col = row.column() - col.prop(prop, "value", text="") - - class BGE_PT_GamePropertyPanel(bpy.types.Panel): bl_label = "Object Properties" bl_space_type = "NODE_EDITOR" From c15625c00d4716d68ec4de35e21e7deed09c8fd6 Mon Sep 17 00:00:00 2001 From: Jorge Bernal Date: Wed, 3 Mar 2021 00:08:18 +0100 Subject: [PATCH 2/2] remove .gitignore --- .gitignore | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 .gitignore diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 01c64ff..0000000 --- a/.gitignore +++ /dev/null @@ -1,10 +0,0 @@ -# QtCreator -CMakeLists.txt.user -*.cflags -*.config -*.cxxflags -*.files -*.includes -*.user -*.creator -*.creator.user