Fandom

武装突袭 Wiki

HtmlLoad

简体 | 繁體

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

您使用了广告屏蔽软件!


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

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

  

点击图片可看到更多讯息

开始使用于

游戏:
Armed Assault
版本:
1.00

描述

描述:
Load HTML from file to given control. File path is relative to current mission dir or an absolute path (with drive letter etc.).

基本句法

句法:
control htmlLoad filename
参数:
control: Control

filename: String
返回值:
Nothing

范例

范例1:
_control htmlLoad "briefing.html";

范例2:
_control htmlLoad "http://www.bistudio.com/newsfeed/arma3_news.php?build=main&language=English";//[1]

范例3:
Display news item:0 = 0 spawn { disableSerialization; _html = findDisplay 46 createDisplay "RscCredits" ctrlCreate ["RscHTML", -1]; _html ctrlSetBackgroundColor [0,0,0,0.8]; _html ctrlSetPosition [safeZoneX, safeZoneY, safeZoneW, safeZoneH]; _html ctrlCommit 0; _html htmlLoad "http://www.bistudio.com/newsfeed/arma3_news.php?build=main&language=English"; };

额外资讯

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

ctrlHTMLLoadedloadFilepreprocessFilepreprocessFileLineNumbers

注意事项

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

Notes

Bottom Section

Posted on September 7, 2014 - 18:02 (UTC)
BrotherhoodOfHam

htmlLoad works with URL's as well as html files.

Posted on September 7, 2014 - 19:35 (UTC)
Killzone Kid
While surprisingly htmlLoad does work with URLs as pointed above, the operation is blocking, meaning the whole game will freeze until the operation is complete. Therefore it is not recommended to use this command in such way.

Posted on April 21, 2015 - 18:08 (UTC)
Benargee
Example use of URL can be found in BIS_fnc_GUInewsfeed with the function browser.

Posted on October 7, 2015 - 22:03 (UTC)
Tupolov
(Arma 3) In order to use URLs, they must be included in CfgCommands -> allowedHTMLLoadURIs. In order to use URIs with params a wildcard * character is supported

Script Example: _newsOnline = "http://alivemod.com/alive_news.php?map=" + _map + "&mission=" + _mission + "&player=" + _player; _ctrlHTML htmlLoad _newsOnline; Config Example:
class CfgCommands {

  allowedHTMLLoadURIs[] += {
     "http://alivemod.com/alive_news.php*"
  };

};

更多维基

随机维基