Scripting / UI
InstructionModifierLayout
Widget for InstructionModifier subclasses. Extends InstructionLayout to add a child instruction drop zone where players can drag a single instruction to be modified.
Properties & Fields
| Member | Type | Description |
|---|---|---|
OnActionDropEventCaller | DropActionEventCaller | Drop zone that listens for an instruction being dragged into the child slot. Calls SetInstruction() when triggered. |
Methods
| Method | Description |
|---|---|
SetInstruction(Action action) | Creates the child instruction from action, attaches it to the modifier, and updates the widget visuals. Rejects sequence actions. |
SetDirection(Direction) | Override — propagates the direction change to the child instruction as well. |