A list of all Actions, Conditions and Expressions supported in this addon.
Action buttons
-
Actions
Add action button {0} labelled {1} doing {2} on tab {3}
Add a button to the action bar, or reconfigure one that already exists. A custom button only fires On action button clicked and leaves the rest to you; the built-in kinds work on whichever tab is open, and Save to file writes under the tab's label. Leave the tab empty to show the button on every tab, or name one to move it to its own bar underneath.
Clear action buttons
Remove every action button, from both bars.
Remove action button {0}
Remove one action button. The bar disappears once it holds none.
-
Conditions
On action button {0} clicked
Triggered when that action button is pressed. Built-in buttons fire it too, after they have done their work.
On any action button clicked
Triggered when any action button is pressed. Use Action button ID to tell which.
-
Expressions
ActionButtonId
The ID of the action button that was last pressed.
Config: editing
-
Actions
Set add buttons to {0}
Which kinds of new entry the add bars offer.
Set adding and removing array elements {0}
Whether elements can be added to and removed from arrays.
Set adding and removing object keys {0}
Whether keys can be added to and removed from plain objects.
Set renaming keys {0}
Whether object key names can be edited in place.
Set reordering array elements {0}
Whether the move up and move down buttons are shown.
Set resizing c2arrays {0}
Whether the width, height and depth of a c2array can be changed.
Set detecting c2arrays {0}
Whether an object holding c2array data is shown as a grid.
Set detecting c2arrays inside strings {0}
Whether string values holding a serialised c2array are parsed and edited as grids.
Set detecting c2dictionaries {0}
Whether an object holding c2dictionary data is shown as a flat key list.
Set detecting c2dictionaries inside strings {0}
Whether string values holding a serialised c2dictionary are parsed and edited as key lists.
Set editing values {0}
Whether scalar values can be edited.
Set showing the c2array size inputs {0}
Whether the width x height x depth inputs are shown on a c2array.
Set showing the c2array z plane bar {0}
Whether the z plane selector is shown on a c2array deeper than one plane.
Config: top bar
-
Actions
Set close behaviour to {0}
What the close button does after flushing pending edits. On close clicked fires either way.
Set tab bar to {0}
When the tab bar should be shown.
Set UI scale to {0}
Multiply the base font size the whole editor is laid out in. Everything is sized in em, so this scales the tree as a whole.
Set the close button {0}
Whether a close button is shown in the tab bar.
Set the Collapse all button {0}
Whether the Collapse all button is shown in the toolbar.
Set the filter box {0}
Whether the key filter input is shown in the toolbar.
Navigation
-
Actions
Collapse all
Clear the filter and close everything, down to the outer braces.
Collapse {0}
Close one branch, leaving the rest of the tree alone.
Expand all
Open every branch of the current tab. Slow on a large document, since the whole tree is built at once.
Expand {0}
Open a branch and everything above it.
Scroll to {0}
Open a branch and scroll it into view.
Set filter to {0}
Filter the tree to keys matching this text. An empty string clears the filter.
-
Expressions
FilterText
The filter text last set by an action.
Source
-
Actions
Refresh
Re-read every tab's source now. Only needed when auto refresh is off.
Set auto refresh {0}
Turn periodic re-reading of the source on or off.
Set refresh interval to {0} ms
How often the source is re-read while auto refresh is on.
Set source of tab {1} to {0}
Point the editor at a JSON, Dictionary or Array object. The first instance is used unless one is picked.
Set source of tab {0} to global variables
Point a tab at the project's global variables instead of an object.
Set source of tab {1} to UID {0}
Point the editor at one specific instance, by its unique ID.
Tabs
-
Actions
Add tab {0} labelled {1} for global variables
Add a tab showing the project's global variables. Keys cannot be added or removed, and each write is coerced back to the type the variable already holds.
Add tab {0} labelled {1} for {2}
Add a tab bound to an object, or reconfigure one that already exists. How to read the object is worked out from its type. The tab bar appears once there is more than one tab.
Clear tabs
Remove every tab, leaving the editor unbound.
Remove tab {0}
Remove a tab and everything the editor remembered about it.
Select tab {0}
Switch to a tab, as clicking its button would.
-
Conditions
On tab selected
Triggered when the user switches to a different tab.
-
Expressions
CurrentTab
The ID of the tab currently being shown.
LastTabId
The ID of the tab the last edit or tab change happened on.
Theme
-
Actions
Load CSS file {0} ({1})
Load a .css file from the project's Files folder. Adding it on top means the file only has to override the --je-* variables it cares about; replacing means it becomes the theme. The layout layer is applied first either way and is never affected.
Load CSS {0} ({1})
Apply CSS supplied directly, for a theme built or fetched by events. Adding it on top means it only has to override the --je-* variables it cares about; replacing means it becomes the theme. The layout layer is applied first either way and is never affected.
Set theme to {0}
Switch to one of the built-in themes. Any CSS loaded on top of the previous theme is cleared.
-
Expressions
Theme
The name of the current built-in theme, or "custom" when a stylesheet replaced it.
Events
-
Conditions
On any edit
Triggered after any edit at all, in addition to the specific trigger for it.
On close clicked
Triggered when the close button is clicked, after pending edits have been written.
On element added
Triggered after an element has been added to an array or a c2array.
On element removed
Triggered after an element has been removed from an array or a c2array.
On element reordered
Triggered after an array element has been moved. LastOldValue holds the index it came from.
On field blurred
Triggered when a value field loses focus. LastPath holds its path.
On field focused
Triggered when the user puts the caret in a value field. LastPath holds its path.
On key added
Triggered after a key has been added to an object or a dictionary.
On key removed
Triggered after a key has been removed from an object or a dictionary.
On key renamed
Triggered after a key has been renamed. LastOldValue holds the previous name.
On value changed
Triggered after a value edited in the editor has been written to the source.
-
Expressions
LastKey
The key or index the last edit touched.
LastOldValue
What was there before the last edit: the previous value, the previous key name, or the index an element came from.
LastPath
The dot separated path of the last edit or focus change, such as player.inventory.2.name.
LastValue
The value the last edit wrote. Empty for removals.