元编程参考文档

样式

5 个节点

本页内容 5

内置样式名称

函数

The names of Novella's own styles, which its screens draw with: restyle one by adding a style of the same name.

签名
内置样式名称() -> 文本
string BuiltInStyleNames()

返回

名称文本
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
样式
所属包
Novella 视觉小说

设置样式背景

函数

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.

签名
设置样式背景 -> Style Look
    样式: Style Look
    背景: Image Source
    状态: 文本
StyleLook SetStyleBackground(
    StyleLook style,
    ImageSource background,
    string state = "")

参数

名称类型默认值说明
样式Style Look—The style.
背景Image Source—What its box is drawn on.
状态文本—The state it applies in, as for Set Style Property, or empty for all.

返回

样式Style Look
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
样式
所属包
Novella 视觉小说

设置样式属性

函数

A style with a property set, for every state or for one: color, or with the state hover, hover_color.

签名
设置样式属性 -> Style Look
    样式: Style Look
    属性: 文本
    值: 文本
    状态: 文本
StyleLook SetStyleProperty(
    StyleLook style,
    string property,
    string value,
    string state = "")

参数

名称类型默认值说明
样式Style Look—The style.
属性文本—The property: font, size, color, background, borders, padding, text_align...
值文本—Its value, as a script writes it.
状态文本—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.

返回

样式Style Look
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
样式
所属包
Novella 视觉小说

开始样式

函数

A style with no properties yet.

签名
开始样式(名称: 文本, 父节点: 文本) -> Style Look
StyleLook StartStyle(string name, string parent = "")

参数

名称类型默认值说明
名称文本—What screens, characters and other styles name it by; one of Novella's own names restyles that part of the game.
父节点文本—The style it inherits what it does not set from: button, text, frame; empty for none of its own.

返回

样式Style Look
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
样式
所属包
Novella 视觉小说

样式转为脚本

函数

A style as a script writes it.

签名
样式转为脚本(样式: Style Look) -> 文本
string StyleToScript(StyleLook style)

参数

名称类型默认值说明
样式Style Look—

返回

脚本文本
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
样式
所属包
Novella 视觉小说