diff --git a/addons/adminMessages/$PBOPREFIX$ b/addons/adminMessages/$PBOPREFIX$ deleted file mode 100644 index 56be7f0f..00000000 --- a/addons/adminMessages/$PBOPREFIX$ +++ /dev/null @@ -1 +0,0 @@ -x\grad\addons\adminMessages diff --git a/addons/adminMessages/README.md b/addons/adminMessages/README.md deleted file mode 100644 index 545069de..00000000 --- a/addons/adminMessages/README.md +++ /dev/null @@ -1,5 +0,0 @@ -### adminMessages -This adds a message box to the escape menu. Allows players to send message to all admins and curators. You can use this to ask for tech support without ruining immersion by using global chat. - -#### Maintainer(s) -* McDiod diff --git a/addons/adminMessages/XEH_postInit.sqf b/addons/adminMessages/XEH_postInit.sqf deleted file mode 100644 index cb367417..00000000 --- a/addons/adminMessages/XEH_postInit.sqf +++ /dev/null @@ -1,4 +0,0 @@ -#include "script_component.hpp" - -ga_adminMessages_channel = radioChannelCreate [[0.9,0.1,0.1,1],"Admin","Admin",[],true]; -publicVariable "ga_adminMessages_channel"; diff --git a/addons/adminMessages/XEH_preClientInit.sqf b/addons/adminMessages/XEH_preClientInit.sqf deleted file mode 100644 index 4443f8a3..00000000 --- a/addons/adminMessages/XEH_preClientInit.sqf +++ /dev/null @@ -1,6 +0,0 @@ -#include "script_component.hpp" - -private _title = "Admin Messages"; -private _helpText = "This adds a message box to the escape menu. Allows players to send message to all admins and curators. You can use this to ask for tech support without ruining immersion by using global chat."; - -[_title,_helpText] call EFUNC(ui,addHelpRecord); diff --git a/addons/adminMessages/cfgEventHandlers.hpp b/addons/adminMessages/cfgEventHandlers.hpp deleted file mode 100644 index 4b1157c5..00000000 --- a/addons/adminMessages/cfgEventHandlers.hpp +++ /dev/null @@ -1,11 +0,0 @@ -class Extended_PostInit_EventHandlers { - class ADDON { - serverInit = QUOTE(call COMPILE_FILE(XEH_postInit)); - }; -}; - -class Extended_PreInit_EventHandlers { - class ADDON { - clientInit = QUOTE(call COMPILE_FILE(XEH_preClientInit)); - }; -}; diff --git a/addons/adminMessages/cfgFunctions.hpp b/addons/adminMessages/cfgFunctions.hpp deleted file mode 100644 index a59f46ba..00000000 --- a/addons/adminMessages/cfgFunctions.hpp +++ /dev/null @@ -1,16 +0,0 @@ -class CfgFunctions { - class grad_adminMessages { - class adminMessages { - file = "x\grad\addons\adminMessages\functions"; - - class displayMessage {}; - class initListbox {}; - class isAdminOrZeus {}; - class onRecipientChanged {}; - class receiveMessage {}; - class sendMessage {}; - class setSendButtonPosition {}; - class setTitle {}; - }; - }; -}; diff --git a/addons/adminMessages/config.cpp b/addons/adminMessages/config.cpp deleted file mode 100644 index f700f7d6..00000000 --- a/addons/adminMessages/config.cpp +++ /dev/null @@ -1,23 +0,0 @@ -#include "script_component.hpp" - -class CfgPatches { - class ADDON { - author = "$STR_grad_Author"; - name = QUOTE(ADDON); - url = "$STR_grad_URL"; - requiredVersion = 1.0; - requiredAddons[] = {"grad_main","A3_Ui_F"}; - units[] = {}; - weapons[] = {}; - VERSION_CONFIG; - authors[] = {"McDiod"}; - }; -}; - -#include "cfgEventHandlers.hpp" -#include "cfgFunctions.hpp" - -#include "gui\defines.hpp" -#include "gui\sendBoxBase.hpp" -#include "gui\interruptMenu.hpp" -#include "gui\rscTitles.hpp" diff --git a/addons/adminMessages/functions/fn_displayMessage.sqf b/addons/adminMessages/functions/fn_displayMessage.sqf deleted file mode 100644 index 7eee6b39..00000000 --- a/addons/adminMessages/functions/fn_displayMessage.sqf +++ /dev/null @@ -1,37 +0,0 @@ -#include "script_component.hpp" -#include "..\gui\defines.hpp" - -params [["_info",""],["_message",""]]; - -// chat is disabled by grad_minui >> display message in custom rscTitle -if ( - !isNil "grad_minui_fnc_setting" && - { - (!visibleMap && !(["chat_enabled"] call grad_minui_fnc_setting)) || - (visibleMap && !(["chat_enabled_map"] call grad_minui_fnc_setting)) - } -) then { - - QGVAR(customChatLayer) cutRsc [QGVAR(rscCustomChat),"PLAIN",-1,true]; - private _customChatTitleDisplay = uiNamespace getVariable [QGVAR(rscCustomChat),displayNull]; - private _ctrlText = _customChatTitleDisplay displayCtrl GA_ADMINMESSAGES_IDC_CUSTOMCHATTEXT; - - _ctrlText ctrlSetStructuredText parseText format ["%1 %2",format [localize "STR_grad_ADMINMESSAGES_CHANNEL",_info],_message]; - - private _textHeight = ctrlTextHeight _ctrlText; - /* private _textWidth = ctrlTextWidth _ctrlText; */ - - (ctrlPosition _ctrlText) params ["_origX","_origY","_origW","_origH"]; - - _ctrlText ctrlSetPosition [_origX,_origY - _textHeight,_origW,_textHeight]; - _ctrlText ctrlCommit 0; - -}; - - -// add message to chat either way >> user can check chat history on map, if enabled -ga_adminMessages_channel radioChannelAdd [player]; -ga_adminMessages_channel radioChannelSetCallsign format [localize "STR_grad_ADMINMESSAGES_CHANNEL",_info]; - -player customChat [ga_adminMessages_channel, _message]; -ga_adminMessages_channel radioChannelRemove [player]; diff --git a/addons/adminMessages/functions/fn_initListbox.sqf b/addons/adminMessages/functions/fn_initListbox.sqf deleted file mode 100644 index 2bd8dd1f..00000000 --- a/addons/adminMessages/functions/fn_initListbox.sqf +++ /dev/null @@ -1,73 +0,0 @@ -#include "script_component.hpp" - -params [["_ctrl",controlNull]]; - -if !([] call grad_adminMessages_fnc_isAdminOrZeus) exitWith {_ctrl ctrlShow false}; - -private _fnc_getHeadlineText = { - params ["_locStr"]; - private _text = localize _locStr; - _text = _text + " ======================================================================================="; - _text = [_text,0,30] call BIS_fnc_trimString; - _text -}; - -private _fnc_addHeadline = { - params ["_locStr"]; - private _index = [[_locStr] call _fnc_getHeadlineText,-1] call _fnc_addEntry; - _ctrl lbSetColor [_index,[0.7,0.7,0.7,1]]; -}; - -private _fnc_addEntry = { - params ["_text","_data"]; - private _index = _ctrl lbAdd _text; - _ctrl lbSetData [_index,if !(_data isEqualType "") then {str _data} else {_data}]; - _index -}; - - -//LATEST CONVERSATIONS ========================================================= -if (!isNil "grad_adminMessages_latestConvos" && {count grad_adminMessages_latestConvos > 0}) then { - ["STR_grad_ADMINMESSAGES_LATESTCONVOS"] call _fnc_addHeadline; - { - _x call _fnc_addEntry; - false - } count grad_adminMessages_latestConvos; - ["",-1] call _fnc_addEntry; -}; - - -//BY SIDE ====================================================================== -["STR_grad_ADMINMESSAGES_BYCATEGORY"] call _fnc_addHeadline; -[localize "STR_grad_ADMINMESSAGES_EVERYONE",-2] call _fnc_addEntry; -[localize "STR_grad_ADMINMESSAGES_OTHERADMINS",-3] call _fnc_addEntry; -["BLUFOR",-4] call _fnc_addEntry; -["OPFOR",-5] call _fnc_addEntry; -["INDEPENDENT",-6] call _fnc_addEntry; -["CIVILIAN",-7] call _fnc_addEntry; -["",-1] call _fnc_addEntry; - - -//LIST OF PLAYERS ============================================================== -["STR_grad_ADMINMESSAGES_BYPLAYER"] call _fnc_addHeadline; -private _playerData = []; -{ - _playerData pushBack [toUpper ([_x,true] call BIS_fnc_getName),getPlayerUID _x]; - false -} count ([] call CBA_fnc_players); -_playerData sort false; - -{ - _x call _fnc_addEntry; - false -} count _playerData; - - -//SET CURSEL =================================================================== -if (lbCurSel _ctrl < 0 || lbCurSel _ctrl >= lbSize _ctrl) then { - _ctrl lbSetCurSel 1; -} else { - if (call compile (_ctrl lbData (lbCursel _ctrl)) < 0) then { - _ctrl lbSetCurSel 1; - }; -}; diff --git a/addons/adminMessages/functions/fn_isAdminOrZeus.sqf b/addons/adminMessages/functions/fn_isAdminOrZeus.sqf deleted file mode 100644 index 174402bb..00000000 --- a/addons/adminMessages/functions/fn_isAdminOrZeus.sqf +++ /dev/null @@ -1,4 +0,0 @@ -#include "script_component.hpp" - -serverCommandAvailable "#kick" || -!isNull (getAssignedCuratorlogic player) diff --git a/addons/adminMessages/functions/fn_onRecipientChanged.sqf b/addons/adminMessages/functions/fn_onRecipientChanged.sqf deleted file mode 100644 index 9ed91a8a..00000000 --- a/addons/adminMessages/functions/fn_onRecipientChanged.sqf +++ /dev/null @@ -1,15 +0,0 @@ -#include "script_component.hpp" - -params [["_ctrl",controlNull],["_selID",-1]]; - -private _data = call compile (_ctrl lbData _selID); - -private _sendButton = uiNamespace getVariable ["grad_adminMessages_sendBoxButtonCtrl",controlNull]; - -if (!(_data isEqualType 0) || {_data == -1}) then { - _sendButton ctrlEnable false; - _sendButton ctrlSetText (localize "STR_grad_ADMINMESSAGES_SELECTVALIDRECIP"); -} else { - _sendButton ctrlEnable true; - _sendButton ctrlSetText format [(localize "STR_grad_ADMINMESSAGES_SENDTO"),_ctrl lbText _selID]; -}; diff --git a/addons/adminMessages/functions/fn_receiveMessage.sqf b/addons/adminMessages/functions/fn_receiveMessage.sqf deleted file mode 100644 index ad124eac..00000000 --- a/addons/adminMessages/functions/fn_receiveMessage.sqf +++ /dev/null @@ -1,19 +0,0 @@ -#include "script_component.hpp" - -params ["_sender","_UID","_message",["_receiveCondition",{[] call grad_adminMessages_fnc_isAdminOrZeus}],["_receiveConditionParams",[]]]; - -if !(hasInterface) exitWith {}; -if !(_receiveConditionParams call _receiveCondition) exitWith {}; -if (profileName == _sender) exitWith {}; - -if (isNil "grad_adminMessages_latestConvos") then {grad_adminMessages_latestConvos = []}; -if (grad_adminMessages_latestConvos find [toUpper _sender,_UID] < 0) then { - reverse grad_adminMessages_latestConvos; - grad_adminMessages_latestConvos pushBack [toUpper _sender,_UID]; - reverse grad_adminMessages_latestConvos; -}; -if (count grad_adminMessages_latestConvos > 5) then {grad_adminMessages_latestConvos resize 5}; - -[_sender,_message] call FUNC(displayMessage); - -playSound "3DEN_notificationWarning"; diff --git a/addons/adminMessages/functions/fn_sendMessage.sqf b/addons/adminMessages/functions/fn_sendMessage.sqf deleted file mode 100644 index 591be1a0..00000000 --- a/addons/adminMessages/functions/fn_sendMessage.sqf +++ /dev/null @@ -1,49 +0,0 @@ -#include "script_component.hpp" - -private _editBox = uiNamespace getVariable ["grad_adminMessages_sendBoxCtrl",controlNull]; -private _listbox = uiNamespace getVariable ["grad_adminMessages_sendBoxListboxCtrl",controlNull]; - -if (isNull _editBox || isNull _listbox) exitWith {}; - -private _message = ctrlText _editBox; -if (_message == "") exitWith {}; - -_editBox ctrlSetText ""; - -if ([] call grad_adminMessages_fnc_isAdminOrZeus) then { - - private _lbCurSel = lbCurSel _listbox; - private _lbData = _listbox lbData _lbCurSel; - private _lbText = _listbox lbText _lbCurSel; - private _receiveConditionParams = []; - - private _receiveCondition = if ((call compile _lbData) < 0) then { - switch (call compile _lbData) do { - case (-2): {{true}}; //EVERYONE - case (-3): {{[] call grad_adminMessages_fnc_isAdminOrZeus}}; //OTHER ADMINS AND ZEUS - case (-4): {{playerSide == WEST}}; - case (-5): {{playerSide == EAST}}; - case (-6): {{playerSide == INDEPENDENT}}; - case (-7): {{playerSide == CIVILIAN}}; - default {{false}}; - } - } else { - _receiveConditionParams = [_lbData]; - {getPlayerUID player == (_this select 0)} - }; - - // display sent message locally - [format ["%1 %2",localize "STR_grad_ADMINMESSAGES_TO",_lbText],_message] call FUNC(displayMessage); - - // send message to recipient - [profileName,getPlayerUID player,_message,_receiveCondition,_receiveConditionParams] remoteExec ["grad_adminMessages_fnc_receiveMessage",0,false]; - -} else { - // display sent message locally - [format ["%1 %2",localize "STR_grad_ADMINMESSAGES_TO","Admin"],_message] call FUNC(displayMessage); - - // send message to recipient - [profileName,getPlayerUID player,_message] remoteExec ["grad_adminMessages_fnc_receiveMessage",0,false]; -}; - -playSound "3DEN_notificationDefault"; diff --git a/addons/adminMessages/functions/fn_setSendButtonPosition.sqf b/addons/adminMessages/functions/fn_setSendButtonPosition.sqf deleted file mode 100644 index 50297726..00000000 --- a/addons/adminMessages/functions/fn_setSendButtonPosition.sqf +++ /dev/null @@ -1,9 +0,0 @@ -#include "script_component.hpp" -#include "..\gui\defines.hpp" - -params [["_ctrl",controlNull]]; - -if !([] call grad_adminMessages_fnc_isAdminOrZeus) exitWith {}; - -_ctrl ctrlSetPosition [GA_ADMINMESSAGES_TITLE_X,GA_ADMINMESSAGES_SENDBUTTON_Y_2]; -_ctrl ctrlCommit 0; diff --git a/addons/adminMessages/functions/fn_setTitle.sqf b/addons/adminMessages/functions/fn_setTitle.sqf deleted file mode 100644 index 2478c120..00000000 --- a/addons/adminMessages/functions/fn_setTitle.sqf +++ /dev/null @@ -1,11 +0,0 @@ -#include "script_component.hpp" - -params [["_ctrl",controlNull]]; - -private _text = if ([] call grad_adminMessages_fnc_isAdminOrZeus) then { - localize "STR_grad_ADMINMESSAGES_SENDBOXTITLEADMIN" -} else { - localize "STR_grad_ADMINMESSAGES_SENDBOXTITLEPLAYER" -}; - -_ctrl ctrlSetText _text diff --git a/addons/adminMessages/functions/script_component.hpp b/addons/adminMessages/functions/script_component.hpp deleted file mode 100644 index fcf9da98..00000000 --- a/addons/adminMessages/functions/script_component.hpp +++ /dev/null @@ -1 +0,0 @@ -#include "..\script_component.hpp" diff --git a/addons/adminMessages/gui/defines.hpp b/addons/adminMessages/gui/defines.hpp deleted file mode 100644 index 22ff9f62..00000000 --- a/addons/adminMessages/gui/defines.hpp +++ /dev/null @@ -1,33 +0,0 @@ -#define GA_ADMINMESSAGES_IDC_SENDBUTTON 33500 -#define GA_ADMINMESSAGES_IDC_CUSTOMCHATTEXT 33601 - -#define GA_ADMINMESSAGES_UISIZESMALL 0.55 -#define GA_ADMINMESSAGES_UISCALE ((getResolution select 5)/GA_ADMINMESSAGES_UISIZESMALL) - -#define GA_ADMINMESSAGES_SCALEFACTOR_Y ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) -#define GA_ADMINMESSAGES_SCALESUMMAND_Y (safezoneY) - -#define GA_ADMINMESSAGES_SCALEFACTOR_X (((safezoneW / safezoneH) min 1.2) / 40) -#define GA_ADMINMESSAGES_SCALESUMMAND_X (safezoneX) - -#define GA_ADMINMESSAGES_SPACER_Y (0.1 * GA_ADMINMESSAGES_SCALEFACTOR_Y) - -#define GA_ADMINMESSAGES_TITLE_Y (1 * GA_ADMINMESSAGES_SCALEFACTOR_Y + GA_ADMINMESSAGES_SCALESUMMAND_Y) -#define GA_ADMINMESSAGES_TITLE_X (1 * GA_ADMINMESSAGES_SCALEFACTOR_X + GA_ADMINMESSAGES_SCALESUMMAND_X) - -#define GA_ADMINMESSAGES_ELEMENT_H (1 * GA_ADMINMESSAGES_SCALEFACTOR_Y) -#define GA_ADMINMESSAGES_TOTAL_W (15 * GA_ADMINMESSAGES_SCALEFACTOR_X) - -#define GA_ADMINMESSAGES_EDITBOX_BG_Y (GA_ADMINMESSAGES_TITLE_Y + GA_ADMINMESSAGES_ELEMENT_H + GA_ADMINMESSAGES_SPACER_Y) -#define GA_ADMINMESSAGES_EDITBOX_BG_H ((8 * GA_ADMINMESSAGES_ELEMENT_H) / GA_ADMINMESSAGES_UISCALE) - -#define GA_ADMINMESSAGES_EDITBOX_PADDING_Y ((0.5 * GA_ADMINMESSAGES_ELEMENT_H) / GA_ADMINMESSAGES_UISCALE) -#define GA_ADMINMESSAGES_EDITBOX_H (GA_ADMINMESSAGES_EDITBOX_BG_H - 2 * GA_ADMINMESSAGES_EDITBOX_PADDING_Y) -#define GA_ADMINMESSAGES_EDITBOX_Y (GA_ADMINMESSAGES_EDITBOX_BG_Y + GA_ADMINMESSAGES_EDITBOX_PADDING_Y) - -#define GA_ADMINMESSAGES_EDITBOX_PADDING_X (0.5 * (((safezoneW / safezoneH) min 1.2) / 40)) -#define GA_ADMINMESSAGES_EDITBOX_X (GA_ADMINMESSAGES_TITLE_X + GA_ADMINMESSAGES_EDITBOX_PADDING_X) -#define GA_ADMINMESSAGES_EDITBOX_W (GA_ADMINMESSAGES_TOTAL_W - 2 * GA_ADMINMESSAGES_EDITBOX_PADDING_X) - -#define GA_ADMINMESSAGES_SENDBUTTON_Y (GA_ADMINMESSAGES_EDITBOX_BG_Y + GA_ADMINMESSAGES_EDITBOX_BG_H + GA_ADMINMESSAGES_SPACER_Y) -#define GA_ADMINMESSAGES_SENDBUTTON_Y_2 (GA_ADMINMESSAGES_EDITBOX_BG_Y + GA_ADMINMESSAGES_EDITBOX_BG_H + 2*GA_ADMINMESSAGES_SPACER_Y + GA_ADMINMESSAGES_ELEMENT_H) diff --git a/addons/adminMessages/gui/interruptMenu.hpp b/addons/adminMessages/gui/interruptMenu.hpp deleted file mode 100644 index a4bdc300..00000000 --- a/addons/adminMessages/gui/interruptMenu.hpp +++ /dev/null @@ -1,50 +0,0 @@ -class RscStandardDisplay; -class RscDisplayMPInterrupt: RscStandardDisplay { - class controls { - class ga_adminMessages_sendBoxTitle: ga_adminMessages_sendBoxTitleBase {}; - class ga_adminMessages_sendBoxBG: ga_adminMessages_sendBoxBGBase {}; - class ga_adminMessages_sendBox: ga_adminMessages_sendBoxBase {}; - class ga_adminMessages_sendBoxButton: ga_adminMessages_sendBoxButtonBase {}; - class ga_adminMessages_sendBoxListBox: ga_adminMessages_sendBoxListboxBase {}; - }; -}; - -class RscDisplayInterruptEditorPreview: RscStandardDisplay { - class controls { - class ga_adminMessages_sendBoxTitle: ga_adminMessages_sendBoxTitleBase {}; - class ga_adminMessages_sendBoxBG: ga_adminMessages_sendBoxBGBase {}; - class ga_adminMessages_sendBox: ga_adminMessages_sendBoxBase {}; - class ga_adminMessages_sendBoxButton: ga_adminMessages_sendBoxButtonBase {}; - class ga_adminMessages_sendBoxListBox: ga_adminMessages_sendBoxListboxBase {}; - }; -}; - -class RscDisplayInterrupt: RscStandardDisplay { - class controls { - class ga_adminMessages_sendBoxTitle: ga_adminMessages_sendBoxTitleBase {}; - class ga_adminMessages_sendBoxBG: ga_adminMessages_sendBoxBGBase {}; - class ga_adminMessages_sendBox: ga_adminMessages_sendBoxBase {}; - class ga_adminMessages_sendBoxButton: ga_adminMessages_sendBoxButtonBase {}; - class ga_adminMessages_sendBoxListBox: ga_adminMessages_sendBoxListboxBase {}; - }; -}; - -class RscDisplayInterruptEditor3D: RscStandardDisplay { - class controls { - class ga_adminMessages_sendBoxTitle: ga_adminMessages_sendBoxTitleBase {}; - class ga_adminMessages_sendBoxBG: ga_adminMessages_sendBoxBGBase {}; - class ga_adminMessages_sendBox: ga_adminMessages_sendBoxBase {}; - class ga_adminMessages_sendBoxButton: ga_adminMessages_sendBoxButtonBase {}; - class ga_adminMessages_sendBoxListBox: ga_adminMessages_sendBoxListboxBase {}; - }; -}; - -class RscDisplayMovieInterrupt: RscStandardDisplay { - class controls { - class ga_adminMessages_sendBoxTitle: ga_adminMessages_sendBoxTitleBase {}; - class ga_adminMessages_sendBoxBG: ga_adminMessages_sendBoxBGBase {}; - class ga_adminMessages_sendBox: ga_adminMessages_sendBoxBase {}; - class ga_adminMessages_sendBoxButton: ga_adminMessages_sendBoxButtonBase {}; - class ga_adminMessages_sendBoxListBox: ga_adminMessages_sendBoxListboxBase {}; - }; -}; diff --git a/addons/adminMessages/gui/rscTitles.hpp b/addons/adminMessages/gui/rscTitles.hpp deleted file mode 100644 index f396a297..00000000 --- a/addons/adminMessages/gui/rscTitles.hpp +++ /dev/null @@ -1,31 +0,0 @@ -class RscStructuredText; - -class RscTitles { - class GVAR(rscCustomChat) { - duration = 20; - enableSimulation = 1; - fadeIn = 0.2; - fadeOut = 0.2; - idd = -1; - movingEnable = 0; - onLoad = QUOTE(uiNamespace setVariable [ARR_2(QQGVAR(rscCustomChat),_this select 0)]); - onUnload = QUOTE(uiNamespace setVariable [ARR_2(QQGVAR(rscCustomChat),nil)]); - - class controls { - class chatBox: RscStructuredText { - idc = GA_ADMINMESSAGES_IDC_CUSTOMCHATTEXT; - - colorBackground[] = {0,0,0,0.3}; - font = "RobotoCondensed"; - shadow = 1; - shadowColor[] = {0,0,0,0.5}; - size = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 0.8)"; - - x = "(safezoneX + 1 * (((safezoneW / safezoneH) min 1.2) / 40))"; - y = "(safezoneY + safezoneH - 10.5 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25))"; - w = "(20 *(((safezoneW / safezoneH) min 1.2) / 40))"; - h = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 0.8)"; - }; - }; - }; -}; diff --git a/addons/adminMessages/gui/sendBoxBase.hpp b/addons/adminMessages/gui/sendBoxBase.hpp deleted file mode 100644 index 12f00572..00000000 --- a/addons/adminMessages/gui/sendBoxBase.hpp +++ /dev/null @@ -1,86 +0,0 @@ -class RscText; -class RscTitle; -class RscEdit; -class RscButtonMenu; -class RscCombo; - -class ga_adminMessages_sendBoxTitleBase: RscTitle { - idc = -1; - style = 0; - - onLoad = "_this call grad_adminMessages_fnc_setTitle"; - - text = "ERROR "; - colorBackground[] = { - "(profilenamespace getvariable ['GUI_BCG_RGB_R',0.13])", - "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.54])", - "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.21])", - "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.8])" - }; - - x = GA_ADMINMESSAGES_TITLE_X; - y = GA_ADMINMESSAGES_TITLE_Y; - w = GA_ADMINMESSAGES_TOTAL_W; - h = GA_ADMINMESSAGES_ELEMENT_H; -}; - -class ga_adminMessages_sendBoxBGBase: RscText { - idc = -1; - - colorBackground[] = {0, 0, 0, 0.700000}; - - x = GA_ADMINMESSAGES_TITLE_X; - y = GA_ADMINMESSAGES_EDITBOX_BG_Y; - w = GA_ADMINMESSAGES_TOTAL_W; - h = GA_ADMINMESSAGES_EDITBOX_BG_H; -}; - -class ga_adminMessages_sendBoxBase: RscEdit { - idc = -1; - style = 16; - - autocomplete = ""; - shadow = 0; - font = "EtelkaMonospacePro"; - sizeEx = "0.7 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)"; - - onLoad = "uiNamespace setVariable [""grad_adminMessages_sendBoxCtrl"",(_this select 0)]"; - onUnLoad = "uiNamespace setVariable [""grad_adminMessages_sendBoxCtrl"",nil]"; - - x = GA_ADMINMESSAGES_EDITBOX_X; - y = GA_ADMINMESSAGES_EDITBOX_Y; - w = GA_ADMINMESSAGES_EDITBOX_W; - h = GA_ADMINMESSAGES_EDITBOX_H; -}; - -class ga_adminMessages_sendBoxButtonBase: RscButtonMenu { - idc = GA_ADMINMESSAGES_IDC_SENDBUTTON; - - onLoad = "uiNamespace setVariable [""grad_adminMessages_sendBoxButtonCtrl"",(_this select 0)]; _this call grad_adminMessages_fnc_setSendButtonPosition"; - onUnLoad = "uiNamespace setVariable [""grad_adminMessages_sendBoxButtonCtrl"",nil]"; - - text = "$STR_grad_ADMINMESSAGES_SENDBOXBUTTON"; - action = "call grad_adminMessages_fnc_sendMessage"; - - x = GA_ADMINMESSAGES_TITLE_X; - y = GA_ADMINMESSAGES_SENDBUTTON_Y; - w = GA_ADMINMESSAGES_TOTAL_W; - h = GA_ADMINMESSAGES_ELEMENT_H; -}; - -class ga_adminMessages_sendBoxListboxBase: RscCombo { - idc = -1; - - font = "EtelkaMonospacePro"; - rowHeight = 10; - /*sizeEx = "0.7 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";*/ - - onLoad = "uiNamespace setVariable [""grad_adminMessages_sendBoxListboxCtrl"",(_this select 0)]; _this call grad_adminMessages_fnc_initListbox"; - onUnLoad = "uiNamespace setVariable [""grad_adminMessages_sendBoxListboxCtrl"",nil]"; - onLBSelChanged = "_this call grad_adminMessages_fnc_onRecipientChanged"; - - x = GA_ADMINMESSAGES_TITLE_X; - y = GA_ADMINMESSAGES_SENDBUTTON_Y; - w = GA_ADMINMESSAGES_TOTAL_W; - h = GA_ADMINMESSAGES_ELEMENT_H; -}; diff --git a/addons/adminMessages/script_component.hpp b/addons/adminMessages/script_component.hpp deleted file mode 100644 index 1146e40c..00000000 --- a/addons/adminMessages/script_component.hpp +++ /dev/null @@ -1,4 +0,0 @@ -#define COMPONENT adminMessages - -#include "\x\grad\addons\main\script_mod.hpp" -#include "\x\grad\addons\main\script_macros.hpp" diff --git a/addons/adminMessages/stringtable.xml b/addons/adminMessages/stringtable.xml deleted file mode 100644 index 7ea0229d..00000000 --- a/addons/adminMessages/stringtable.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - MESSAGE ADMIN - MESSAGE ADMIN - NACHRICHT AN ADMIN - - - MESSAGE PLAYER - MESSAGE PLAYER - NACHRICHT AN SPIELER - - - SEND - SEND - SENDEN - - - SELECT VALID RECIPIENT - SELECT VALID RECIPIENT - EMPFÄNGER AUSWÄHLEN - - - SEND TO %1 - SEND TO %1 - SENDEN AN %1 - - - - - LATEST CONVERSATIONS - LATEST CONVERSATIONS - AKTUELLE GESPRÄCHE - - - CATEGORIES - CATEGORIES - KATEGORIEN - - - EVERYONE - EVERYONE - ALLE - - - OTHER ADMINS AND ZEUS - OTHER ADMINS AND ZEUS - ANDERE ADMINS UND ZEUSE - - - PLAYERS - PLAYERS - SPIELER - - - - - Adminmessage (%1): - Adminmessage (%1): - Adminnachricht (%1): - - - to - to - an - - - -