-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
z\afm\addons\spotlight_block |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |