forked from LeenkxTeam/LNXSDK
Repe [T3DU] and Moises Jpelaez updates
This commit is contained in:
@ -92,16 +92,6 @@ class LNX_PT_ObjectPropsPanel(bpy.types.Panel):
|
||||
|
||||
if obj.type == 'MESH':
|
||||
layout.prop(obj, 'lnx_instanced')
|
||||
wrd = bpy.data.worlds['Lnx']
|
||||
layout.prop_search(obj, "lnx_tilesheet", wrd, "lnx_tilesheetlist", text="Tilesheet")
|
||||
if obj.lnx_tilesheet != '':
|
||||
selected_ts = None
|
||||
for ts in wrd.lnx_tilesheetlist:
|
||||
if ts.name == obj.lnx_tilesheet:
|
||||
selected_ts = ts
|
||||
break
|
||||
layout.prop_search(obj, "lnx_tilesheet_action", selected_ts, "lnx_tilesheetactionlist", text="Action")
|
||||
layout.prop(obj, "lnx_use_custom_tilesheet_node")
|
||||
|
||||
# Properties list
|
||||
lnx.props_properties.draw_properties(layout, obj)
|
||||
@ -227,6 +217,7 @@ class LNX_PT_ParticlesPropsPanel(bpy.types.Panel):
|
||||
layout.prop(obj.settings, 'lnx_auto_start')
|
||||
layout.prop(obj.settings, 'lnx_dynamic_emitter')
|
||||
layout.prop(obj.settings, 'lnx_is_unique')
|
||||
layout.prop(obj.settings, 'lnx_local_coords')
|
||||
layout.prop(obj.settings, 'lnx_loop')
|
||||
layout.prop(obj.settings, 'lnx_count_mult')
|
||||
|
||||
@ -864,11 +855,13 @@ class LNX_PT_LeenkxPlayerPanel(bpy.types.Panel):
|
||||
row.operator("lnx.play", icon="PLAY")
|
||||
else:
|
||||
if bpy.app.version < (3, 0, 0):
|
||||
row.operator("lnx.stop", icon="CANCEL", text="")
|
||||
elif bpy.app.version > (3, 0, 0) and bpy.app.version < (4, 3, 2):
|
||||
row.operator("lnx.stop", icon="SEQUENCE_COLOR_01", text="")
|
||||
row.operator("lnx.stop", icon="CANCEL")
|
||||
elif bpy.app.version > (3, 0, 0) and bpy.app.version < (4, 5, 0):
|
||||
row.operator("lnx.stop", icon="SEQUENCE_COLOR_01")
|
||||
elif bpy.app.version >= (4, 5, 0):
|
||||
row.operator("lnx.stop", icon="STRIP_COLOR_01")
|
||||
else:
|
||||
row.operator("lnx.stop", icon="EVENT_MEDIASTOP", text="")
|
||||
row.operator("lnx.stop", icon="EVENT_MEDIASTOP")
|
||||
row.operator("lnx.clean_menu", icon="BRUSH_DATA")
|
||||
|
||||
col = layout.box().column()
|
||||
@ -1369,6 +1362,7 @@ class LeenkxStopButton(bpy.types.Operator):
|
||||
elif state.proc_build != None:
|
||||
state.proc_build.terminate()
|
||||
state.proc_build = None
|
||||
make.clear_external_scenes()
|
||||
|
||||
lnx.write_probes.check_last_cmft_time()
|
||||
|
||||
@ -1550,11 +1544,13 @@ class LNX_PT_TopbarPanel(bpy.types.Panel):
|
||||
row.operator("lnx.play", icon="PLAY", text="")
|
||||
else:
|
||||
if bpy.app.version < (3, 0, 0):
|
||||
row.operator("lnx.stop", icon="CANCEL", text="")
|
||||
elif bpy.app.version > (3, 0, 0) and bpy.app.version < (4, 3, 2):
|
||||
row.operator("lnx.stop", icon="SEQUENCE_COLOR_01", text="")
|
||||
row.operator("lnx.stop", icon="CANCEL")
|
||||
elif bpy.app.version > (3, 0, 0) and bpy.app.version < (4, 5, 0):
|
||||
row.operator("lnx.stop", icon="SEQUENCE_COLOR_01")
|
||||
elif bpy.app.version >= (4, 5, 0):
|
||||
row.operator("lnx.stop", icon="STRIP_COLOR_01")
|
||||
else:
|
||||
row.operator("lnx.stop", icon="EVENT_MEDIASTOP", text="")
|
||||
row.operator("lnx.stop", icon="EVENT_MEDIASTOP")
|
||||
row.operator("lnx.clean_menu", icon="BRUSH_DATA", text="")
|
||||
row.operator("lnx.open_editor", icon="DESKTOP", text="")
|
||||
row.operator("lnx.open_project_folder", icon="FILE_FOLDER", text="")
|
||||
@ -2435,64 +2431,6 @@ class LNX_PT_TerrainPanel(bpy.types.Panel):
|
||||
layout.operator('lnx.generate_terrain')
|
||||
layout.prop(scn, 'lnx_terrain_object')
|
||||
|
||||
class LNX_PT_TilesheetPanel(bpy.types.Panel):
|
||||
bl_label = "Leenkx Tilesheet"
|
||||
bl_space_type = "PROPERTIES"
|
||||
bl_region_type = "WINDOW"
|
||||
bl_context = "material"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
layout.use_property_split = True
|
||||
layout.use_property_decorate = False
|
||||
wrd = bpy.data.worlds['Lnx']
|
||||
|
||||
rows = 2
|
||||
if len(wrd.lnx_tilesheetlist) > 1:
|
||||
rows = 4
|
||||
row = layout.row()
|
||||
row.template_list("LNX_UL_TilesheetList", "The_List", wrd, "lnx_tilesheetlist", wrd, "lnx_tilesheetlist_index", rows=rows)
|
||||
col = row.column(align=True)
|
||||
col.operator("lnx_tilesheetlist.new_item", icon='ADD', text="")
|
||||
col.operator("lnx_tilesheetlist.delete_item", icon='REMOVE', text="")
|
||||
|
||||
if len(wrd.lnx_tilesheetlist) > 1:
|
||||
col.separator()
|
||||
op = col.operator("lnx_tilesheetlist.move_item", icon='TRIA_UP', text="")
|
||||
op.direction = 'UP'
|
||||
op = col.operator("lnx_tilesheetlist.move_item", icon='TRIA_DOWN', text="")
|
||||
op.direction = 'DOWN'
|
||||
|
||||
if wrd.lnx_tilesheetlist_index >= 0 and len(wrd.lnx_tilesheetlist) > 0:
|
||||
dat = wrd.lnx_tilesheetlist[wrd.lnx_tilesheetlist_index]
|
||||
layout.prop(dat, "tilesx_prop")
|
||||
layout.prop(dat, "tilesy_prop")
|
||||
layout.prop(dat, "framerate_prop")
|
||||
|
||||
layout.label(text='Actions')
|
||||
rows = 2
|
||||
if len(dat.lnx_tilesheetactionlist) > 1:
|
||||
rows = 4
|
||||
row = layout.row()
|
||||
row.template_list("LNX_UL_TilesheetList", "The_List", dat, "lnx_tilesheetactionlist", dat, "lnx_tilesheetactionlist_index", rows=rows)
|
||||
col = row.column(align=True)
|
||||
col.operator("lnx_tilesheetactionlist.new_item", icon='ADD', text="")
|
||||
col.operator("lnx_tilesheetactionlist.delete_item", icon='REMOVE', text="")
|
||||
|
||||
if len(dat.lnx_tilesheetactionlist) > 1:
|
||||
col.separator()
|
||||
op = col.operator("lnx_tilesheetactionlist.move_item", icon='TRIA_UP', text="")
|
||||
op.direction = 'UP'
|
||||
op = col.operator("lnx_tilesheetactionlist.move_item", icon='TRIA_DOWN', text="")
|
||||
op.direction = 'DOWN'
|
||||
|
||||
if dat.lnx_tilesheetactionlist_index >= 0 and len(dat.lnx_tilesheetactionlist) > 0:
|
||||
adat = dat.lnx_tilesheetactionlist[dat.lnx_tilesheetactionlist_index]
|
||||
layout.prop(adat, "start_prop")
|
||||
layout.prop(adat, "end_prop")
|
||||
layout.prop(adat, "loop_prop")
|
||||
|
||||
class LnxPrintTraitsButton(bpy.types.Operator):
|
||||
bl_idname = 'lnx.print_traits'
|
||||
bl_label = 'Print All Traits'
|
||||
@ -3058,7 +2996,6 @@ __REG_CLASSES = (
|
||||
LNX_PT_LodPanel,
|
||||
LnxGenTerrainButton,
|
||||
LNX_PT_TerrainPanel,
|
||||
LNX_PT_TilesheetPanel,
|
||||
LnxPrintTraitsButton,
|
||||
LNX_PT_MaterialNodePanel,
|
||||
LNX_OT_UpdateFileSDK,
|
||||
|
||||
Reference in New Issue
Block a user