Fandom

武装突袭 Wiki

DisableSerialization

简体 | 繁體

4,827个页面创建
于此维基上
添加新页面
评论0 Share

您使用了广告屏蔽软件!


Wikia通过广告运营为用户提供免费的服务。我们对用户通过嵌入广告屏蔽软件访问网站进行了使用调整。

如果您使用了广告屏蔽软件,将无法使用我们的服务。请您移除广告屏蔽软件,以确保页面正常加载。

  

点击图片可看到更多讯息

开始使用于

游戏:
Arma 2
版本:
1.00

描述

描述:
Disable saving of script containing this command. After this script can work with the data types which do not support serialization (UI types).

基本句法

句法:
disableSerialization
返回值:
Nothing

范例

范例1:
disableSerialization; _display = findDisplay 46;

额外资讯

多人游戏:
-
也可以看看:

DisplaydisplayAddEventHandlerdisplayRemoveAllEventHandlersdisplayRemoveEventHandleruiSleep

注意事项

此处撰写句法皆为可行用法. 可到官网[1]专页回报错误. 你可以使用讨论页面或是论坛来进行讨论.
新增注意事项 | 如何新增?

Notes

Posted on 19 June, 2010
Str
Can be used to detecting load. Scope with disabled serialization is discontinued after load, even if there's endless loop inside.

_loaded = [] spawn {disableSerialization; waitUntil {false};};
waitUntil {scriptDone _loaded;};
hint "Game was loaded!"

Works for all possible load types - loading user save, loading autosave and resuming mission from main menu.

Use with caution, as it handles two threads in memory, having impact at overall scripting time.

Posted on 23 October, 2013
Killzone_Kid

If you do not store UI elements (Display, Control) in variables, you do not need disableSerialization; UI elements are usually returned by scripting commands such as findDisplay or passed as params in UI event handler scripts (displayAddEventHandler, ctrlAddEventHandler).

This code will require disableSerialization: disableSerialization; _display = findDisplay 123; _ctrl = _display displayCtrl -1; _ctrl ctrlSetText "LOL"; This code will not: findDisplay 123 displayCtrl -1 ctrlSetText "LOL";


Bottom Section

更多维基

随机维基