Eden Editor: Entity Context Menu: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Removed: Description of simple expressions. That one belongs to the Simple Expressions page, not here.)
(fixed incorrect condition)
Line 61: Line 61:
| <!-- Description -->True when hovering an object which can fly
| <!-- Description -->True when hovering an object which can fly
|-
|-
| <!-- Condition --> hoverObjectCanFly
| <!-- Condition --> hoverObjectFlying
| <!-- Description -->True when hovering an object which is flying
| <!-- Description -->True when hovering an object which is flying
|-
|-

Revision as of 15:59, 5 December 2016

WIP

Conditions

  • Context menu entries can have different conditions which need to be true in order for the entry to appear.
  • The condition is defined by the conditionShow config entry.

class YourEntry { action = "call BIS_fnc_someFunction"; // Can be any kind of expression defined as string text = "Delete Crew"; // Name shown in the context menu conditionShow = "hoverObjectVehicle"; // Condition };

The condition is a Simple Expression and can use one of the variables below:

Condition Description
selected True when an Eden entity is selected
hoverObjectBrain True when hovering over an object with simulation "soldier" or "UAVpilot"
hoverObjectVehicle True when hovering over a vehicle
hoverObject True when hovering over any object
hoverGroup True when hovering over any group
hoverTrigger True when hovering over any trigger
hoverWaypoint True when hovering over any waypoint
hoverLogic True when hovering over any logic
hoverMarker True when hovering over any marker
isMultiplayer True when editing in multiplayer environment
hoverObjectUav True when hovering over an UAV
isEditList True when the menu is opened from entity menu
hoverLayer True when hovering over a Layer
hoverObjectCanFly True when hovering an object which can fly
hoverObjectFlying True when hovering an object which is flying
selectedObject True when an object is selected
selectedWaypoint True when a waypoint is selected
selectedLogic True when a logic is selected
selectedMarker True when a Marker is selected