Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions addons/accessiblity/$PBOPREFIX$
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
x\cba\addons\accessiblity
5 changes: 5 additions & 0 deletions addons/accessiblity/CfgEventhandlers.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class Extended_PreInit_EventHandlers {
class ADDON {
init = QUOTE(call COMPILE_FILE(XEH_preInit));
};
};
14 changes: 14 additions & 0 deletions addons/accessiblity/CfgMarkerColors.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#define GET_COLOR(index,varName,defaultR,defaultG,defaultB) QUOTE((missionNamespace getVariable [ARR_2(QQGVAR(varName), [ARR_3(defaultR,defaultG,defaultB)])]) select index)

class CfgMarkerColors {
class Default;
class ColorRed: Default {
color[] = {GET_COLOR(0,red,1,0,0), GET_COLOR(1,red,1,0,0), GET_COLOR(2,red,1,0,0), 1};
};
class ColorGreen: Default {
color[] = {GET_COLOR(0,green,0,1,0), GET_COLOR(1,green,0,1,0), GET_COLOR(2,green,0,1,0), 1};
};
class ColorBlue: Default {
color[] = {GET_COLOR(0,blue,0,0,1), GET_COLOR(1,blue,0,0,1), GET_COLOR(2,blue,0,0,1), 1};
};
};
7 changes: 7 additions & 0 deletions addons/accessiblity/XEH_preInit.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include "script_component.hpp"

ADDON = false;

#include "initSettings.sqf"

ADDON = true;
17 changes: 17 additions & 0 deletions addons/accessiblity/config.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include "script_component.hpp"

class CfgPatches {
class ADDON {
author = "$STR_CBA_Author";
name = CSTRING(component);
url = "$STR_CBA_URL";
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"cba_settings"};
version = VERSION;
};
};

#include "CfgEventhandlers.hpp"
#include "CfgMarkerColors.hpp"
26 changes: 26 additions & 0 deletions addons/accessiblity/initSettings.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
QGVAR(red), "COLOR",
["str_team_red"],
["CBA Accessiblity"],
[0.9, 0, 0, 1],
2, // setting can't be overwritten
{TRACE_1("red",_this);}
] call CBA_settings_fnc_init;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CBA_fnc_addSetting


[
QGVAR(blue), "COLOR",
["str_team_blue"],
["CBA Accessiblity"],
[0, 0, 1, 1],
2, // setting can't be overwritten
{TRACE_1("blue",_this);}
] call CBA_settings_fnc_init;

[
QGVAR(green), "COLOR",
["str_team_green"],
["CBA Accessiblity"],
[0, 0.8, 0, 1],
2, // setting can't be overwritten
{TRACE_1("green",_this);}
] call CBA_settings_fnc_init;
14 changes: 14 additions & 0 deletions addons/accessiblity/script_component.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#define COMPONENT accessiblity
#include "\x\cba\addons\main\script_mod.hpp"

#define DEBUG_MODE_FULL

#ifdef DEBUG_ENABLED_ACCESSIBLITY
#define DEBUG_MODE_FULL
#endif

#ifdef DEBUG_SETTINGS_HELP
#define DEBUG_SETTINGS DEBUG_SETTINGS_ACCESSIBLITY
#endif

#include "\x\cba\addons\main\script_macros.hpp"
5 changes: 5 additions & 0 deletions addons/accessiblity/stringtable.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project name="CBA_A3">
<Package name="accessiblity">
</Package>
</Project>