just a little note, if you hit cntrl z as your first key stroke going into the script editor is erases everything
scared me first time i did it
maybe it might have something to do with ctrl + z being the keyboard shortcut for "undo" but i'm just guessing.
Quotemaybe it might have something to do with ctrl + z being the keyboard shortcut for "undo" but i'm just guessing.
Yep, that is. Just when the script editor is opened having no text inside it save that state. Then AGS loads script file so when you pressing Ctrl-Z it processes the undo command and erases the whole script.
There are also some useful hotkeys:
Ctrl - A: select all
Ctrl - T: swap two lines
Ctrl - L: delete current line
Ctrl - J: return (enter key)
Ctrl - M (or Shift - Enter): return but to the 1st column
Ctrl - Backspace: delete the word before the cursor
Ctrl - Delete: delete the word after the cursor
Ctrl - +, /, - (gray): change font size
Ctrl - End: goto last line
Ctrl - Home: goto first line
there are also useful shortcuts like Ctrl - Right/Left/Up/Down, Alt - Right/Left, Shift - Right/Left/Up/Down/Home/End
-Cheers
Hehe yeah, Scorpiorus has got why this happens - a bit unnerving I agree, but I'm not sure if it's worth the time to fix.
ah but you did....
but you did...
check mate Christopher Jones......
Hehe, my apologies Sir Eric.
why isn't there an undo on things like GUI edits/ moves? lol or why isn't my ags ctrl-z not work in GUI layout/data fields :)
.... aaaand the first prize for necromancy goes to notsleeping! :D
@Nonsleeping, you may add your suggestion regarding improving the editor in this subforum: http://www.adventuregamestudio.co.uk/forums/index.php?board=18.0
Also, there's an issue tracker for the same purpose: http://www.adventuregamestudio.co.uk/forums/index.php?project=5;area=issues
BTW I am supporting you on this issue. :)
interesting, so this is where that control-t shortcut comes from! I still wonder whatever is the point of that, though.