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)
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))
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);")