2015-06-05 07:34:27 +00:00
|
|
|
#define COMPONENT spottingscope
|
2016-06-20 09:41:17 +00:00
|
|
|
#define COMPONENT_BEAUTIFIED Spotting Scope
|
2015-06-05 07:34:27 +00:00
|
|
|
#include "\z\ace\addons\main\script_mod.hpp"
|
|
|
|
|
2016-01-29 05:26:02 +00:00
|
|
|
// #define DEBUG_MODE_FULL
|
|
|
|
// #define DISABLE_COMPILE_CACHE
|
|
|
|
// #define ENABLE_PERFORMANCE_COUNTERS
|
|
|
|
|
2015-06-05 07:34:27 +00:00
|
|
|
#ifdef DEBUG_ENABLED_SPOTTINGSCOPE
|
|
|
|
#define DEBUG_MODE_FULL
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef DEBUG_SETTINGS_SPOTTINGSCOPE
|
|
|
|
#define DEBUG_SETTINGS DEBUG_SETTINGS_SPOTTINGSCOPE
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "\z\ace\addons\main\script_macros.hpp"
|
2016-06-06 15:22:17 +00:00
|
|
|
|
|
|
|
#define IDC_RETICLE 10000
|
|
|
|
#define IDC_BODY 10001
|
|
|
|
#define IDC_BLACK_LEFT 10002
|
|
|
|
#define IDC_BLACK_RIGHT 10003
|
|
|
|
|
2016-06-06 19:36:29 +00:00
|
|
|
#define MAGIC_SCOPE_NUMBER 0.0235
|
|
|
|
//#define MAGIC_SCOPE_NUMBER (uiNamespace getVariable ['magic', 1])
|
2016-06-06 15:22:17 +00:00
|
|
|
|
2016-06-06 19:36:29 +00:00
|
|
|
#define POS_X_BASE(size) safezoneX + 0.5 * safezoneW - 0.5 * (size) / (getResolution select 5)
|
|
|
|
#define POS_Y_BASE(size) safezoneY + 0.5 * safezoneH - 0.5 * (size) / (getResolution select 5) * 4/3
|
|
|
|
#define POS_W_BASE(size) (size) / (getResolution select 5)
|
|
|
|
#define POS_H_BASE(size) (size) / (getResolution select 5) * 4/3
|
2016-06-06 17:22:24 +00:00
|
|
|
|
2016-06-06 19:36:29 +00:00
|
|
|
#define SIZEX 1.05
|
2016-06-06 17:22:24 +00:00
|
|
|
|
|
|
|
#define POS_X QUOTE(POS_X_BASE(SIZEX))
|
|
|
|
#define POS_Y QUOTE(POS_Y_BASE(SIZEX))
|
|
|
|
#define POS_W QUOTE(POS_W_BASE(SIZEX))
|
|
|
|
#define POS_H QUOTE(POS_H_BASE(SIZEX))
|