ACE3/addons/spectator/script_component.hpp

63 lines
1.5 KiB
C++
Raw Normal View History

2015-06-29 02:34:21 +00:00
#define COMPONENT spectator
2016-06-20 09:41:17 +00:00
#define COMPONENT_BEAUTIFIED Spectator
2015-06-29 02:34:21 +00:00
#include "\z\ace\addons\main\script_mod.hpp"
// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE
// #define ENABLE_PERFORMANCE_COUNTERS
2015-06-29 02:34:21 +00:00
#ifdef DEBUG_ENABLED_SPECTATOR
#define DEBUG_MODE_FULL
#endif
#ifdef DEBUG_SETTINGS_SPECTATOR
#define DEBUG_SETTINGS DEBUG_SETTINGS_SPECTATOR
#endif
2015-07-09 16:30:18 +00:00
#include "\z\ace\addons\main\script_macros.hpp"
2015-07-18 12:12:34 +00:00
// UI grid
2015-07-09 16:30:18 +00:00
#define SIZEX ((safezoneW / safezoneH) min 1.2)
#define SIZEY (SIZEX / 1.2)
#define W_PART(num) (num * (SIZEX / 40))
#define H_PART(num) (num * (SIZEY / 25))
#define X_PART(num) (W_PART(num) + (safezoneX + (safezoneW - SIZEX)/2))
#define Y_PART(num) (H_PART(num) + (safezoneY + (safezoneH - SIZEY)/2))
2015-07-18 12:12:34 +00:00
// UI tools
2015-07-09 16:30:18 +00:00
#define TOOL_H H_PART(1)
#define TOOL_W W_PART(5)
2015-07-15 10:38:33 +00:00
#define MARGIN TOOL_W * 0.05
2015-07-09 16:30:18 +00:00
2015-07-18 12:12:34 +00:00
// UI compass
2015-07-09 17:03:11 +00:00
#define COMPASS_W (TOOL_W * 4)
2015-07-18 12:12:34 +00:00
#define COMPASS_X (safeZoneX + safeZoneW * 0.5 - COMPASS_W * 0.5)
2015-07-15 10:38:33 +00:00
2015-07-18 12:12:34 +00:00
// UI IDCs
2015-07-16 18:47:55 +00:00
#define IDC_COMP 4490
2015-07-17 00:44:49 +00:00
#define IDC_COMP_0 5000
#define IDC_COMP_90 5090
#define IDC_COMP_180 5180
#define IDC_COMP_270 5270
2015-07-16 18:47:55 +00:00
#define IDC_HELP 7631
2015-07-21 22:20:41 +00:00
#define IDC_HELP_LIST 7622
2015-07-17 00:44:49 +00:00
#define IDC_MAP 6791
2015-07-16 18:47:55 +00:00
2015-07-17 00:44:49 +00:00
#define IDC_TOOL 3000
2015-07-16 22:58:58 +00:00
#define IDC_TOOL_CLOCK 3003
#define IDC_TOOL_FOV 3005
#define IDC_TOOL_NAME 3001
#define IDC_TOOL_SPEED 3006
#define IDC_TOOL_VIEW 3002
2015-07-21 16:10:04 +00:00
#define IDC_TOOL_VISION 3004
2015-07-16 18:47:55 +00:00
2015-07-17 00:44:49 +00:00
#define IDC_UNIT 6002
#define IDC_UNIT_TREE 6005
2015-07-18 12:12:34 +00:00
// UI colours
#define COL_BACK 0.1,0.1,0.1,0.7
2015-07-18 12:12:34 +00:00
#define COL_FORE 1,1,1,1
#define COL_FORE_D 0.1,0.1,0.1,0.8