Shortcuts for most used actions in the editor

From X-Moto
Revision as of 20:18, 5 January 2008 by Mig (talk | contribs)
Jump to: navigation, search

You can define shortcuts for the xmoto extension actions. In Linux or Mac OS X just create a file ~/.inkscape/keys/default.xml and copy-paste the code below.

Under Windows

It's a bit more tricky under Windows, but it can be done in a few steps:

  • Go to C:\Program files\Inkscape\share\keys and copy the "Default" file
  • Go to C:\Documents and Settings\user name\Application Data\Inkscape
  • Create a folder and name it Keys
  • Paste the "default" file
  • Open the default file with a text-editor
  • Replace everything with the code below
  • Save and launch inkscape

The code

<?xml version="1.0"?>
<keys name="My awesome keys">
<bind key="t" action="org.ekips.filter.changeblocktexture"/> 
<bind key="b" action="org.ekips.filter.changeblocktype"/> 
<bind key="e" action="org.ekips.filter.addedge" />
<bind key="s" action="org.ekips.filter.addsprite" />
<bind key="z" action="org.ekips.filter.addzone" />
<bind key="x" action="org.ekips.filter.launchlvl" /> 
</keys>

How it works

When inkscape has been restarted and the hotkeys loaded, try to click on a block and press "t". This will bring the texture change dialog. The hotkey list looks like this:

  • T for Texture
  • B for change Block type
  • E for add Egde
  • S for add Sprite
  • Z for convert into Zone
  • X launches the level in xmoto