예제 #1
0
def CmdStopMacros(args, charIndex):
    from partyWnd import PARTYWND
    from macro import MACROMASTER

    # Get current character index if needed.
    if charIndex == None:
        charIndex = PARTYWND.curIndex

    # Stop all running macros for required character.
    MACROMASTER.stopMacrosForChar(charIndex)
예제 #2
0
def CmdStopMacro(args, charIndex):
    from partyWnd import PARTYWND
    from macro import MACROMASTER

    # Get current character index if needed.
    if charIndex == None:
        charIndex = PARTYWND.curIndex

    # Stop the named macro for required character.
    MACROMASTER.stopNamedMacroForChar(charIndex, ' '.join(args))
예제 #3
0
 def saveMacro(self):
     from macro import MACROMASTER
     newMacro = self.createMacro()
     MACROMASTER.insertMacro(self.charIndex, self.page, self.slot, newMacro)
     TGEEval("canvas.popDialog(MacroEditorWnd);")
 def saveMacro(self):
     from macro import MACROMASTER
     newMacro = self.createMacro()
     MACROMASTER.insertMacro(self.charIndex,self.page,self.slot,newMacro)
     TGEEval("canvas.popDialog(MacroEditorWnd);")