API 参考
正在准备搜索索引…

FontEffectInstancer

使用局部属性及 JS 回调的原生字体效果工厂。

注册使回调保留至关闭,即使注册已被替换。回调可操作属性副本、字典和字体效果, 并委托其他实例器。递归实例化、解析、注册及 DOM/运行时变更会抛错。 异常在最外层边界传播。

源码与继承
成员目录7

构造函数

方法

构造函数

方法

  • 暴露受保护的 Rml::FontEffectInstancer::RegisterProperty。

    参数

    name
    string

    局部属性名。

    defaultValue
    string

    原始默认声明。

    affectsGeneration
    boolean = true

    原生生成标记,默认为 true。

    返回值

    可修改定义;同名注册保留首次定义。

    源码与继承
  • 暴露受保护的 Rml::FontEffectInstancer::RegisterShorthand。

    参数

    name
    string

    匿名 RCSS 参数使用 "font-effect"。

    properties
    string

    逗号分隔的属性或简写名称。

    type

    原生解析策略。

    返回值

    局部编号;重复或组成项缺失时为 Invalid。

    源码与继承

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0