Divooka Reference

Styles

5 nodes

On this page 5

Built-in Style Names

Function

The 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

NamesText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Styles
Package
Novella Visual Novels

Set Style Background

Function

A 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: Text
StyleLook SetStyleBackground(
    StyleLook style,
    ImageSource background,
    string state = "")

Parameters

nametypedefaultdescription
styleStyle Look—The style.
backgroundImage Source—What its box is drawn on.
stateText—The state it applies in, as for Set Style Property, or empty for all.

Returns

StyleStyle Look
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Styles
Package
Novella Visual Novels

Set Style Property

Function

A 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: Text
StyleLook SetStyleProperty(
    StyleLook style,
    string property,
    string value,
    string state = "")

Parameters

nametypedefaultdescription
styleStyle Look—The style.
propertyText—The property: font, size, color, background, borders, padding, text_align...
valueText—Its value, as a script writes it.
stateText—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

StyleStyle Look
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Styles
Package
Novella Visual Novels

Start Style

Function

A style with no properties yet.

Signature
StartStyle(name: Text, parent: Text) -> Style Look
StyleLook StartStyle(string name, string parent = "")

Parameters

nametypedefaultdescription
nameText—What screens, characters and other styles name it by; one of Novella's own names restyles that part of the game.
parentText—The style it inherits what it does not set from: button, text, frame; empty for none of its own.

Returns

StyleStyle Look
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Styles
Package
Novella Visual Novels

Style To Script

Function

A style as a script writes it.

Signature
StyleToScript(style: Style Look) -> Text
string StyleToScript(StyleLook style)

Parameters

nametypedefaultdescription
styleStyle Look—

Returns

ScriptText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Styles
Package
Novella Visual Novels