Epoch/Sources/epoch_config/Configs/CfgDynamicHUD.hpp
vbawol 810fe5d65c bump version to 0.4
* Adds experimental test of new HUD from @raymix
* Hud elements are added and removed dynamically so that all active
icons are always right justified.
* Icons scale in size when critical levels are reached.
* added use of new A3 features to control angle and scale of hud icons.
* warning and critical levels are controlled via customVarsDefaults.

* Added larger group sizes up to 64 players and increased Krypto costs.
* reworked Finsh login in login fsm to wait for display 46 not to be
Null.
2016-08-08 14:45:39 -05:00

64 lines
1.4 KiB
C++

/*
defaultPos:
0 - top left
1 - top center
2 - top right
3 - mid left
4 - mid center
5 - mid right
6 - bottom left
7 - bottom center
8 - bottom right
defaultPopulate:
0 - right
1 - left
2 - down
3 - up
4 - horizontal grow
5 - vertical grow
offSetX: Positive = right, Negative = left
offSetY: Positive = down, Negative = up
Offsets group of controls, unit measurement is width or height of group. The bigger the group the more it will be offset.
Offsets are optional, don't have to be included
classname:
https://community.bistudio.com/wiki/ctrlCreate/classnames
Obtaining Controls:
use epoch_getHUDCtrl function to obtain controls for manipulation
_name = Config name of your group
_index = each group hosts multiple elements, each element has it's index, starting from 0
[_ConfigName, _index] call epoch_getHUDCtrl;
["myHUDname", 3] call epoch_getHUDCtrl;
*/
class rmx_dynamicHUD
{
class topRight //ConfigName matters to be able to use function!
{
classname = "RscPicture";
defaultPos = 2;
defaultPopulate = 1;
arraySize = 10;
width = 4;
height = 4;
offSetX = 0;
offSetY = 0;
angle[] = {15, 0.5, 0.5, 1.5}; // [start degrees, x, y, tilt]
scale[] = {1, 0.05}; // [start scale, size reduction]
};
class botcenter
{
classname = "RscPicture";
defaultPos = 7;
defaultPopulate = 4;
arraySize = 9;
width = 5;
height = 5;
//angle[] = {25, 0.5, 0.5};
};
};