diff --git a/addons/spotlight_block/$PBOPREFIX$ b/addons/spotlight_block/$PBOPREFIX$ new file mode 100644 index 0000000..a58c141 --- /dev/null +++ b/addons/spotlight_block/$PBOPREFIX$ @@ -0,0 +1 @@ +z\afm\addons\spotlight_block diff --git a/addons/spotlight_block/config.cpp b/addons/spotlight_block/config.cpp new file mode 100644 index 0000000..705c558 --- /dev/null +++ b/addons/spotlight_block/config.cpp @@ -0,0 +1,45 @@ +#include "script_component.hpp" + +class CfgPatches { + class ADDON { + name = COMPONENT_NAME; + units[] = {}; + weapons[] = {}; + requiredVersion = REQUIRED_VERSION; + requiredAddons[] = { + "A3_Ui_F" // minimal required addons so this component loads as early as possible + }; + author = "ArmaForces"; + authors[] = {"veteran29"}; + VERSION_CONFIG; + }; +}; + +#define HIDE_CONTROL \ + x = 0; \ + y = 0; \ + w = 0; \ + h = 0 + +class RscStandardDisplay; +class RscDisplayMain: RscStandardDisplay { + class controls { + class BackgroundSpotlightRight; + class GVAR(BackgroundSpotlightNoDelete): BackgroundSpotlightRight { + HIDE_CONTROL; + }; + + class Spotlight1; + class GVAR(Spotlight1NoDelete): Spotlight1 { + HIDE_CONTROL; + }; + class Spotlight2; + class GVAR(Spotlight2NoDelete): Spotlight2 { + HIDE_CONTROL; + }; + class Spotlight3; + class GVAR(Spotlight3NoDelete): Spotlight3 { + HIDE_CONTROL; + }; + }; +}; diff --git a/addons/spotlight_block/script_component.hpp b/addons/spotlight_block/script_component.hpp new file mode 100644 index 0000000..c38d9b4 --- /dev/null +++ b/addons/spotlight_block/script_component.hpp @@ -0,0 +1,14 @@ +#define COMPONENT spotlight_block +#include "\z\afm\addons\main\script_mod.hpp" + +// #define DEBUG_MODE_FULL +// #define DISABLE_COMPILE_CACHE + +#ifdef DEBUG_ENABLED_SPOTLIGHT_BLOCK + #define DEBUG_MODE_FULL +#endif + #ifdef DEBUG_SETTINGS_SPOTLIGHT_BLOCK + #define DEBUG_SETTINGS DEBUG_SETTINGS_SPOTLIGHT_BLOCK +#endif + +#include "\z\afm\addons\main\script_macros.hpp"