Fandom

武装突袭 Wiki

User Interface Macros

简体 | 繁體

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

您使用了广告屏蔽软件!


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

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

Take On Helicopters offers unbinarized user interface macros and parent classes for anybody who wants to include them in their Config.cpp or Description.ext.

Knowledge of PreProcessor Commands is required for use.

defineDIKCodes.inc 编辑

#include "\hsim\UI_H\hpp\defineDIKCodes.inc"

DIK codes of every keyboard key. Useful for User Interface Event Handlers and button shortcuts.

Sample code 编辑

shortcuts[] = {INPUT_CTRL_OFFSET + DIK_P}; //--- Button is activated when Ctrl+S is pressed


defineResincl.inc 编辑

#include "\hsim\UI_H\hpp\defineResincl.inc"

Latest defined constants for use in Display and Control classes. Amont others contains control types, colors, grids

Sample code 编辑

style = ST_LEFT + ST_MULTI; //--- Text in control can contain multiple lines and is alligned to left


defineCommon.inc 编辑

Requires defineResincl.inc

#include "\hsim\UI_H\hpp\defineCommon.inc"

Game specific grids, colors, text sizes etc.

Sample code 编辑

//--- Control position alligned to defined grid
x = 1 * GUI_GRID_W + GUI_GRID_X;
y = 18 * GUI_GRID_H + GUI_GRID_Y;
w = 10 * GUI_GRID_W;
h = 1 * GUI_GRID_H;


rscCommon.inc 编辑

Requires defineResincl.inc and defineCommon.inc

#include "\hsim\UI_H\hpp\rscCommon.inc"

Basic parent classes.

Sample code 编辑

//--- Control inherited from RscText base class
class textColorG: RscText
{
};

更多维基

随机维基