跳至主要內容

Class: node

muzzik大约 1 分钟

index / language / node

Class: node

language.node

多语言节点

Hierarchy

Table of contents

Properties

Accessors

Methods

Properties

language_s

language_s: "zh_cn" | "en_us" = global_config.language.default_type_s

语言

Defined in

assets/@framework/language/component/mk_language_node.ts:53open in new window


node_as

node_as: node[] = []

语言节点列表

Defined in

assets/@framework/language/component/mk_language_node.ts:100open in new window


layout_adaptation_b

layout_adaptation_b: boolean = false

layout 适配

Defined in

assets/@framework/language/component/mk_language_node.ts:107open in new window


_use_layer_b

Protected _use_layer_b: boolean = false

Overrides

mk_life_cycle._use_layer_b

Defined in

assets/@framework/language/component/mk_language_node.ts:116open in new window

Accessors

language

get language(): number

语言

Returns

number

Defined in

assets/@framework/language/component/mk_language_node.ts:60open in new window

set language(value_n_): void

Parameters

NameType
value_n_number

Returns

void

Defined in

assets/@framework/language/component/mk_language_node.ts:64open in new window


current_node

get current_node(): null | Node

当前语言节点

Returns

null | Node

Defined in

assets/@framework/language/component/mk_language_node.ts:111open in new window

Methods

create

Protected create(): void | Promise<void>

创建

Returns

void | Promise<void>

Remarks

可在此处初始化视图状态

  • 静态模块:onLoad 时调用

  • 动态模块:addChild 后调用

Overrides

life_cycle.create

Defined in

assets/@framework/language/component/mk_language_node.ts:121open in new window


open

Protected open(): void | Promise<void>

打开

Returns

void | Promise<void>

Remarks

init 后执行,在此处执行无需 init_data 支持的模块初始化操作

Overrides

life_cycle.open

Defined in

assets/@framework/language/component/mk_language_node.ts:125open in new window

📣 觉得很赞?分享给你的朋友吧!