Commit 413d1dd9 authored by Jan Speichert's avatar Jan Speichert
Browse files

Update to new CBA Version

parent d0b8b3a1
class CfgPatches
{
class clearchat_gui
class clearhud_gui
{
units[]={};
weapons[]={};
requiredVersion=1.01;
requiredAddons[]=
{
"clearchat_main"
"clearhud_main"
};
version="1.0.0.300";
author[]=
......@@ -21,11 +21,11 @@ class CfgAddons
{
class PreloadAddons
{
class clearchat_gui
class clearhud_gui
{
list[]=
{
"clearchat_gui"
"clearhud_gui"
};
};
};
......
#define COMPONENT gui
#include "\sol\clearchat\addons\main\script_mod.hpp"
#include "\sol\clearhud\addons\main\script_mod.hpp"
// #define DEBUG_MODE_FULL
#include "\sol\clearchat\addons\main\script_macros.hpp"
\ No newline at end of file
#include "\sol\clearhud\addons\main\script_macros.hpp"
\ No newline at end of file
No preview for this file type
#define COMPONENT main
#include "\sol\clearchat\addons\main\script_mod.hpp"
#include "\sol\clearhud\addons\main\script_mod.hpp"
#ifdef DEBUG_ENABLED_MAIN
#define DEBUG_MODE_FULL
......
// COMPONENT should be defined in the script_component.hpp and included BEFORE this hpp
#define MAINPREFIX sol
#define PREFIX clearchat
#define PREFIX clearhud
//--BUILDPREFIX
#include "\sol\clearchat\addons\main\script_version.hpp"
#include "\sol\clearhud\addons\main\script_version.hpp"
//--ENDBUILDPREFIX
#define VERSION MAJOR.MINOR.PATCHLVL.BUILD
......
#include "script_component.hpp"
#include "\userconfig\sol_clearchat\usersettings.hpp"
#include "\userconfig\sol_clearhud\usersettings.hpp"
//For each client, register the keybind
......@@ -7,7 +7,7 @@
//deactivate the chat by default in MP and assign it to a handle
if (isMultiplayer) then {
if(sol_clearchat_chatison) then{
if(sol_clearhud_nochat) then{
GVAR(handle) = [{clearRadio;}, 0, []] call CBA_fnc_addPerFrameHandler;
GVAR(activated) = true;
hint parseText "Chat <t color='#ff0000'>disabled</t>";
......
......@@ -7,7 +7,7 @@ class CfgPatches
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"clearchat_main"};
requiredAddons[] = {"clearhud_main"};
version = VERSION;
author[] = {"Soldia"};
authorUrl = URL;
......
#include "script_component.hpp"
#include "\a3\editor_f\Data\Scripts\dikCodes.h"
private ["_addon", "_description", "_key", "_modifier", "_keybind"];
private ["_addon", "_actionid", "_tooltip", "_description", "_key", "_modifier", "_keybind"];
//define all parameters for the cba keybinding
_addon = "Soldias Chat Disabler";
_actionid = "SwitchChat";
_actionname = "Disable / Enable Chat";
_tooltip = "Press to toggle the chat suppression";
_key = DIK_COMMA;
_modifier = [true, false, false];
//initiate the cba keybind, will return the current keybind
_keybind = [_addon, _actionname, {_this call clearchat_suppress_fnc_suppressChat}, [_key, _modifier]] call CBA_fnc_registerKeybind;
_keybind = [_addon, _actionid,[_actionname,_tooltip], {_this call clearhud_suppress_fnc_suppressChat}, "", [_key, _modifier]] call CBA_fnc_addKeybind;
true
\ No newline at end of file
#define COMPONENT suppress
#include "\sol\clearchat\addons\main\script_mod.hpp"
#include "\sol\clearhud\addons\main\script_mod.hpp"
// #define DEBUG_MODE_FULL
#include "\sol\clearchat\addons\main\script_macros.hpp"
\ No newline at end of file
#include "\sol\clearhud\addons\main\script_macros.hpp"
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment