Skip to content

Commit

Permalink
Update Files
Browse files Browse the repository at this point in the history
  • Loading branch information
heschy committed Jan 27, 2022
1 parent 275eb68 commit 8723ecf
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 11 deletions.
8 changes: 5 additions & 3 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
from bpy import ops as O
from bpy import props as P
import bpy
from .modules import *
import .modules.nodes as sgg_nodes
import .modules.op as sgg_ops
import .modukes.submethods as sgg_submethods

bl_info = {
"name": "StarGate Generator",
Expand All @@ -32,8 +34,8 @@ class STARGATE_PT_MAINPANEL(T.Panel):

def draw(self, context):
layout = self.layout


row = layout.row()
row.operator('stargate.addmilkygate_operator', icon='PLUS')
#row = layout.row() # Uncomment when Atlantis is Ready
Expand Down
29 changes: 22 additions & 7 deletions modules/op.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,29 @@

#
operators = {
'mknaquadah': 'stargate_generator.createnaquadah_material',
'mkchevron': 'stargate_generator.createchevron_material'
'mknaquadah': 'stargate_generator.createnaquadah_material',
'mkchevron': 'stargate_generator.createchevron_material',
'mkwormhole': 'stargate_generator.createwormhole_material',
'mkgeonodes': 'stargate_gererator.creategeometrynode_modifier'
}

class CREATEGATE_OT_creategeometrynodes(T.Operator):
bl_label = 'Create Basic Stargate'
bl_idname = operators['mkgeonodes']

def execute(self, context):
return {'FINSISHED'}

def invoke(self, context, event):
return context.window_manager.invoke_props_dialog(self)

class CREATEGATE_OT_createnaquadahshader(T.Operator):
bl_label = 'Create Naquadah Shader'
bl_idname = operators['mknaquadah']
bl_label = 'Create Naquadah Shader'
bl_idname = operators['mknaquadah']

def execute(self, context):
# TODO Create the Operator
return {'FINISHED'}

def execute(self, context):
# TODO Create the Operator
return {'FINISHED'}
def invoke(self, context, event):
return context.window_manager.invoke_props_dialog(self)
2 changes: 1 addition & 1 deletion modules/submethods.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def pattern(string):
def removeold(name, items):
name = pattern(name)
for item in items:
if regex(name, item.name):
if regex(name, item.name): # If it is named Name.001 or Name.002 ... it will be deleted.
items.remove(item)

# This is a Placeholder function.
Expand Down

0 comments on commit 8723ecf

Please sign in to comment.