Add clonk EditorAction: Turn around

directional-lights
Sven Eberhardt 2016-11-20 13:04:34 -05:00
parent 27291ec977
commit 4b508134f8
3 changed files with 10 additions and 2 deletions

View File

@ -1274,6 +1274,10 @@ func Definition(def) {
Target = UserAction->GetObjectEvaluator("IsClonk", "Clonk"),
MaxContentsCount = new UserAction.Evaluator.Integer { Name="$MaxContentsCount$", EmptyName = Format("$Default$ (%d)", def.MaxContentsCount) }
} } );
// Turn around
if (!def.EditorActions) def.EditorActions = {};
def.EditorActions.turn_around = { Name="$TurnAround$", EditorHelp="$TurnAroundHelp$", Command="SetDir(1-GetDir())" };
_inherited(def);
}

View File

@ -17,4 +17,6 @@ MaxContentsCount=Anzahl Inventarplaetze
Default=Standard
Skin=Skin
SkinHelp=Aussehen des Clonks.
SkinHelp=Aussehen des Clonks.
TurnAround=Umdrehen
TurnAroundHelp=Wechselt die Blickrichtung des Clonks.

View File

@ -17,4 +17,6 @@ MaxContentsCount=Inventory slot count
Default=Default
Skin=Skin
SkinHelp=How the clonk looks.
SkinHelp=How the clonk looks.
TurnAround=Turn around
TurnAroundHelp=Changes the view direction of the clonk.