Example #1
0
def addRTrigger():
    global cursor, stdscr, theWorld

    dst = cursor.gMap[cursor.pos]
    text = ""
    if 'rtrigger' in dst:
        text = dst['rtrigger']
    dst['rtrigger'] = textbox.textEdit(theWorld, "Add rtrigger code", text)
Example #2
0
def executeCode():
    global theWorld
    text = textbox.textEdit(theWorld,'hack')
    theWorld.evalCode(text)
    theWorld.lastExecuted = text