Styles
5 nodes
On this page 5
Built-in Style Names
FunctionThe names of Novella's own styles, which its screens draw with: restyle one by adding a style of the same name.
Signature
BuiltInStyleNames() -> Text
string BuiltInStyleNames()
Returns
| Names | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Styles
- Package
- Novella Visual Novels
Set Style Background
FunctionA style with its background set to an image source - a Frame Image, a Filtered Image, a Composite Image, a Color Image - for every state or for one.
Signature
SetStyleBackground -> Style Look
style: Style Look
background: Image Source
state: TextStyleLook SetStyleBackground(
StyleLook style,
ImageSource background,
string state = "")Parameters
| name | type | default | description |
|---|---|---|---|
| style | Style Look | — | The style. |
| background | Image Source | — | What its box is drawn on. |
| state | Text | — | The state it applies in, as for Set Style Property, or empty for all. |
Returns
| Style | Style Look |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Styles
- Package
- Novella Visual Novels
Set Style Property
FunctionA style with a property set, for every state or for one: color, or with the state hover, hover_color.
Signature
SetStyleProperty -> Style Look
style: Style Look
property: Text
value: Text
state: TextStyleLook SetStyleProperty(
StyleLook style,
string property,
string value,
string state = "")Parameters
| name | type | default | description |
|---|---|---|---|
| style | Style Look | — | The style. |
| property | Text | — | The property: font, size, color, background, borders, padding, text_align... |
| value | Text | — | Its value, as a script writes it. |
| state | Text | — | The state it applies in - hover, selected, insensitive, idle, visited, or for a selected element selected_hover, selected_idle or selected_insensitive - or empty for all. |
Returns
| Style | Style Look |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Styles
- Package
- Novella Visual Novels
Start Style
FunctionA style with no properties yet.
Signature
StartStyle(name: Text, parent: Text) -> Style Look
StyleLook StartStyle(string name, string parent = "")
Parameters
| name | type | default | description |
|---|---|---|---|
| name | Text | — | What screens, characters and other styles name it by; one of Novella's own names restyles that part of the game. |
| parent | Text | — | The style it inherits what it does not set from: button, text, frame; empty for none of its own. |
Returns
| Style | Style Look |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Styles
- Package
- Novella Visual Novels
Style To Script
FunctionA style as a script writes it.
Signature
StyleToScript(style: Style Look) -> Text
string StyleToScript(StyleLook style)
Parameters
| name | type | default | description |
|---|---|---|---|
| style | Style Look | — |
Returns
| Script | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Styles
- Package
- Novella Visual Novels