forked from Mirrors/openclonk
Add EditorActions for spin wheel
parent
c8aa5fff8f
commit
b795248da2
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue