Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Information

When creating a node, the UI is created by using different kinds of XML code.
The styles here provide an UI overview.

UI styles

Text

Example

Doesn’t feature all available options

<text value="Localization:" width="90" font_weight="bold" align="left" />

Options

-valuewidthfont_weightalign
OptionsAny / No textAny numberbold, extra_boldleft, right
ExplanationWhat is shown as pre-selectedSets the UI widthStyles textSets the text alignment

List

Example

Doesn’t feature all available options

<list source="blueprints" text="item" filter="items/" width="240" id="database.Strings.StringData[0].value" value="items/weapons/plasma_item" font_weight="bold" />

Options

-sourcetextfilterwidthidvaluefont_weightdelimiterhide_stringalignnot_emptyvalid_ruletooltiptype
OptionsAny text, Int, Float etc.Any / No textex:
items/
Any numberex: database.Strings.StringData[1].valueAny / No textbold, extra_bold/ex:
voice_over/
left, right[0,1]not_emptyAny / No textselector, multi
ExplanationWhat is available to choose in the Gui. Often used in combination with the Lua file to allow a selectionWhat text to showShows only entries which contain that filterSets the UI widthTakes a value from the key-value pair declared topWhat is shown as pre-selectedStyles textWhich symbol separates optionsDon’t show entries which contain that stringSets the text alignmentAllows / Disallows emptyChecks if a rule condition is met(Doesn’t seem to work currently)How to choose an entry

Input

Example

Doesn’t feature all available options

<input width="240" type="int" text="count" id="database.Integers.IntData[0].value" value="0" font_weight="bold" />

Options

-sourcetextwidthidvaluefont_weightnot_emptyvalid_ruletypeminmaxstep
OptionsAny text, Int, Float etc.Any / No textAny numberself_id /
ex: database.Strings.StringData[1].value
Any / No textbold, extra_bold[0,1]not_emptyfloat, intAny IntAny IntAny Int
ExplanationWhat is available to choose in the Gui. Often used in combination with the Lua file to allow a selectionWhat text to showSets the UI widthSets the id of this input /
Takes a value from the key-value pair declared top
What is shown as pre-selectedStyles textAllows / Disallows emptyChecks if a rule condition is metSets the type of the input boxSets a minimum allowed input valueSets a maximum allowed input valueThe Int sets the steps in which to increase / decrease the value

Button

Example

Doesn’t feature all available options

<button value="False"  action="add;condition_false.xml"  width="100"   target="conditions"/>

Options

-widthvaluefont_weightactiontargetbgcolortooltip
OptionsAny numberAny / No textbold, extra_bold[add + xml-file],
[script + show_translation / play_sound / show_dialog_translation / edit_embedded_script / generate_int_branches / open_graph / update_bindings]
A key-value pair declared top, dialogs, conditions, graph, EnemiesAny hex colorAny / No text
ExplanationSets the button widthWhat is shown on the buttonStyles textTriggers an action from the “graph_nodes/sub_event” folder
(Can only be seen in the workspace editor)
Action targetSets button color(Doesn’t seem to work currently)