Fandom

武装突袭 Wiki

CtrlMapScreenToWorld

简体 | 繁體

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

您使用了广告屏蔽软件!


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

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

  

点击图片可看到更多讯息

开始使用于

游戏:
Armed Assault
版本:
1.05

描述

描述:
Convert screen coordinates in map to world coordinates.

基本句法

句法:
map ctrlMapScreenToWorld [x, y]
参数:
map: Control

[x, y]: Array
返回值:
Array (Position2D Format)

范例

范例1:
_WorldCoord = _Control ctrlMapScreenToWorld _ScreenCoord
范例2:
_WorldCoord = _Control ctrlMapScreenToWorld [_x,_y]

额外资讯

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

ctrlMapWorldToScreenposScreenToWorldposWorldToScreen

注意事项

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

Notes


Posted on April 6, 2007 - 23:41
LowFly
Notes:

You can get the screen coordinates by the UI Event Handlers onMouseButtonDown, onMouseButtonUp, onMouseButtonClick, onMouseButtonDblClick.

The return Array is in 2-D, you can use it with all set-position commands.

_x = returnArray select 0;
_y = returnArray select 1;


Posted on December 2, 2009 - 16:10
Besselinksjm
Notes:

In VBS2 1.23 this command does not seem to work properly. Therefore when defining UI Event Handlers onMouseButtonClick and onMouseButtonDblClick the functions onMapSingleClick and onDoubleClick (VBS2) can be used instead, these already provide access to the world coordinates of the click event.

Ceeeb
The command parameters are screen position coordinates, which may not equate to to the map control's coordinates. A map control's screen coordinates and size can be found use the ctrlPosition command. This is an issue when using the Arma 3 in-game map, which is not fullscreen (all previous titles used full screen map controls, so map control coords did equate to screen coords).

Bottom Section

更多维基

随机维基