Add EditorActions for spin wheel

alut-include-path
Sven Eberhardt 2017-02-26 11:23:55 -05:00
parent c8aa5fff8f
commit b795248da2
3 changed files with 12 additions and 0 deletions

View File

@ -110,6 +110,12 @@ local Plane = 200;
local Components = {Wood = 3, Metal = 1};
local up_action, down_action; // Custom editor-selected actions on switch handling
local EditorActions = {
SwitchLeft = { Name = "$ControlUp$", Command = "ControlUp()" },
SwitchRight = { Name = "$ControlDown$", Command = "ControlDown()" },
ConnectClosestDoor = { Name = "$ConnectNearestDoor$", Command = "ConnectNearestDoor()" }
};
func Definition(def)
{
SetProperty("PictureTransformation", Trans_Mul(Trans_Scale(800), Trans_Translate(0,0,0),Trans_Rotate(-20,1,0,0),Trans_Rotate(-30,0,1,0)), def);

View File

@ -3,3 +3,6 @@ Description=Öffne oder schließe die verbundene Burgtür mit [Hoch] oder [Runte
Target=Ziel
UpAction=Aktion 'Hoch'
DownAction=Aktion 'Runter'
ConnectNearestDoor=Tuer verbinden
ControlUp=Winde hoch
ControlDown=Winde runter

View File

@ -3,3 +3,6 @@ Description=Open and close connected castle door with [Up] and [Down] respective
Target=Target
UpAction='Up' action
DownAction='Down' action
ConnectNearestDoor=Connect door
ControlUp=Wheel up
ControlDown=Wheel down