ACE3/addons/bft_drawing/script_component.hpp
2016-09-03 09:35:37 +02:00

69 lines
2.1 KiB
C++

#define COMPONENT bft_drawing
#include "\z\ace\addons\main\script_mod.hpp"
// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE
// #define CBA_DEBUG_SYNCHRONOUS
// #define ENABLE_PERFORMANCE_COUNTERS
#ifdef DEBUG_ENABLED_BFT_DRAWING
#define DEBUG_MODE_FULL
#endif
#ifdef DEBUG_SETTINGS_BFT_DRAWING
#define DEBUG_SETTINGS DEBUG_SETTINGS_BFT_DRAWING
#endif
#include "\z\ace\addons\main\script_macros.hpp"
#include "\z\ace\addons\bft\device_getters.hpp"
// data for blueforce tracking icons
#define CTRL (_display displayCtrl _idc)
// colors
#define COLOR_ALLIED 0,0.3,0.6,1
#define COLOR_ENEMY 0.5,0,0,1
#define COLOR_BLACK 0.035,0.035,0.035,1
#define COLOR_BLACK_LIGHT 0.135,0.135,0.135,1
#define COLOR_DARKGREY 0.3,0.3,0.3,1
#define COLOR_DARKGREY_LIGHT 0.4,0.4,0.4,1
#define COLOR_GREY 0.5,0.5,0.5,1
#define COLOR_INVISIBLE 0,0,0,0
#define COLOR_WEST 0,0.3,0.6,1
#define COLOR_WEST_DARK 0,0.1,0.2,1
#define COLOR_EAST 0.5,0,0,1
#define COLOR_EAST_DARK 0.2,0,0,1
#define COLOR_GUER 0,0.5,0,1
#define COLOR_GUER_DARK 0,0.2,0,1
#define COLOR_CIV 0.4,0,0.5,1
#define COLOR_CIV_DARK 0.4,0,0.5,1
// sizes
#define MAP_ICON_SIZE 30
#define MAP_TEXT_SIZE 0.05
#define SIZE_MULTIPLIER_MIN 0.5
#define SIZE_MULTIPLIER_MAX 2
// --- GUI --- //
// tooltip macros
#define W_TO_H(Y) (4/3 * Y)
#define TT_W 0.35
#define TT_MARGIN 0.005
#define TT_TEXT_H 0.04
// --- IDDs & IDCs --- //
// define gui idd
#define IDC_TOOLTIP 3350
#define IDC_TOOLTIP_TITLE 335000
#define IDC_TOOLTIP_SUBTITLE 335001
#define IDC_TOOLTIP_INFORMATION 335002
#define DIK_LCONTROL 0x1D
#define MAPANIMZOOM 0.05