Esempio n. 1
0
 def _draw_ui_for_new_seq(context: Context, layout: UILayout):
     gs = _global_setting(context)
     # new sequence button per character
     if len(gs.characters) > 0:
         _box = layout.box()
         _row = _box.row()
         for chara in gs.characters:  # type: KiritanifyCharacterSetting
             op: KIRITANIFY_OT_NewScriptSequence \
               = _row.operator(
               operator=KIRITANIFY_OT_NewScriptSequence.bl_idname,
               text=f'{chara.chara_name}',
             )
             op.chara_name = chara.chara_name
Esempio n. 2
0
 def _draw_ui_for_new_seq(context: Context, layout: UILayout):
     gs = _global_setting(context)
     # new sequence button per character
     if len(gs.characters) > 0:
         for chara in gs.characters:  # type: KiritanifyCharacterSetting
             _box = layout.box()
             _box.label(text=f'{chara.chara_name}')
             for seqs in split_per_num(chara.tachie_files(), 4):
                 _row = _box.row()
                 for e in seqs:  # type: Path
                     op: KIRITANIFY_OT_NewTachieSequences \
                       = _row.operator(
                       operator=KIRITANIFY_OT_NewTachieSequences.bl_idname,
                       text=f'{e.name}',
                     )
                     op.chara_name = chara.chara_name
                     op.image_path = str(e)
             layout.separator()