mirror of
https://github.com/NRZ7/modChecker---Exile-version.git
synced 2024-08-30 17:32:11 +00:00
Adding ExAd compatible. by jmayr2000 and tweak
This commit is contained in:
parent
f185d10250
commit
192ec3d1d3
BIN
ExAdClient/XM8/Apps/modchecker/modChecker.paa
Normal file
BIN
ExAdClient/XM8/Apps/modchecker/modChecker.paa
Normal file
Binary file not shown.
0
ExAdClient/XM8/Apps/modchecker/onClose.sqf
Normal file
0
ExAdClient/XM8/Apps/modchecker/onClose.sqf
Normal file
35
ExAdClient/XM8/Apps/modchecker/onLoad.sqf
Normal file
35
ExAdClient/XM8/Apps/modchecker/onLoad.sqf
Normal file
@ -0,0 +1,35 @@
|
||||
/*
|
||||
onLoad.sqf
|
||||
|
||||
Copyright 2016 Jan Babor
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
params["_display","_slide","_idc"];
|
||||
|
||||
_pW = 0.025;
|
||||
_pH = 0.04;
|
||||
_leftCol = 0;
|
||||
_leftColW = 12.8;
|
||||
_rightCol = _leftCol + _leftColW + 2;
|
||||
_rightColW = _leftColW + 3;
|
||||
_margin = 0.2;
|
||||
|
||||
_slideClass = "ExAd_ModChecker";
|
||||
|
||||
[_display,_slide,([_slideClass,"backButton"] call ExAd_fnc_getNextIDC),[27 * _pW, 17 * _pH, 6 * _pW, 1 * _pH],'["extraApps", 1] call ExileClient_gui_xm8_slide;',"Go Back"] call ExAd_fnc_createButton;
|
||||
|
||||
_newParent = [_display,_slide,([_slideClass,"ctrlGrp"] call ExAd_fnc_getNextIDC),[_leftCol * _pW, 1 * _pH, (_leftColW + _rightCol + 6) * _pW, 16 * _pH]] call ExAd_fnc_createCtrlGrp;
|
||||
[_display,_newParent,([_slideClass,"strTxt"] call ExAd_fnc_getNextIDC),[_leftCol * _pW, 1.5 * _pH, (_leftColW + _rightCol + 5) * _pW, 15 * _pH],"","PuristaMedium",1,"#ffffff","right",1] call ExAd_fnc_createStructuredText;
|
||||
|
||||
true
|
54
ExAdClient/XM8/Apps/modchecker/onOpen.sqf
Normal file
54
ExAdClient/XM8/Apps/modchecker/onOpen.sqf
Normal file
@ -0,0 +1,54 @@
|
||||
private["_display","_message","_strTxt","_pos"];
|
||||
|
||||
try
|
||||
{
|
||||
_message = preprocessFileLineNumbers "ExAdClient\XM8\Apps\ModChecker\xm8modChecker.sqf";
|
||||
_message = _message select [(_message find "ExAdClient") + (count "ExAdClient\XM8\Apps\ModChecker\xm8modChecker.sqf") + 1];
|
||||
|
||||
if(count _message == 0)exitWith{
|
||||
throw "No server info provided";
|
||||
};
|
||||
|
||||
if ((firstCheck == 0) && (errorLevel > 0)) then { player allowdamage false }; // God Mode ON to avoid die and close dialog only if ModCheckerDisplay is auto executed.
|
||||
|
||||
disableSerialization;
|
||||
[
|
||||
"",
|
||||
0,
|
||||
0.2,
|
||||
10,
|
||||
0,
|
||||
0,
|
||||
8
|
||||
] spawn BIS_fnc_dynamicText;
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// CUSTOMIZABLE PART HERE
|
||||
// Remember to add-delete-modify the same mod variable names used in xm8modChecker.sqf
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "..\..\..\..\addons\modChecker\modCheckerDisplayConfig.hpp"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// END OF CUSTOMIZABLE TEXT, DO NOT TOUCH UNDER THIS LINE IF YOU DON'T KWOW WHAT ARE YOU DOING
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
_display = uiNameSpace getVariable ["RscExileXM8", displayNull];
|
||||
if(isNull _display)exitWith{
|
||||
throw "XM8 not loaded!";
|
||||
};
|
||||
|
||||
_strTxt = [_display,"ExAd_ModChecker","strTxt"] call ExAd_fnc_getAppCtrl;
|
||||
_strTxt ctrlSetStructuredText parseText format[_message];
|
||||
|
||||
_pos = ctrlPosition _strTxt;
|
||||
_strTxt ctrlSetPosition [_pos select 0, _pos select 1, _pos select 2, ctrlTextHeight _strTxt];
|
||||
_strTxt ctrlcommit 0;
|
||||
([_display,"ExAd_ModChecker","strTxt"] call ExAd_fnc_getAppCtrl) ctrlEnable true;
|
||||
}
|
||||
catch
|
||||
{
|
||||
["ErrorTitleAndText", ["ExAd - Mod Checker", _exception]] call ExileClient_gui_toaster_addTemplateToast;
|
||||
["extraApps", 1] call ExileClient_gui_xm8_slide
|
||||
}
|
||||
|
14
ExAdClient/XM8/Apps/modchecker/xm8modChecker.sqf
Normal file
14
ExAdClient/XM8/Apps/modchecker/xm8modChecker.sqf
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
errorLevel = 0; // Do not touch. Set errors to 0 before run modChecker.sqf
|
||||
|
||||
#include "..\..\..\..\addons\modChecker\modCheckerConfig.hpp"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// DO NOT TOUCH UNDER THIS LINE IF DON'T KNOW WHAT ARE YOU DOING
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
if (errorLevel > 0) then {
|
||||
warnMessage = "<t color='#ff0000' size='1.3' shadow='1' shadowColor='#000000' align='center'>Some is WRONG with your MODS</t><br/>"; // General error message
|
||||
} else {
|
||||
warnMessage = "<t color='#2fd402' size='1.3' shadow='1' shadowColor='#000000' align='center'>All MODS are FINE</t><br/>"; // All mods are loaded message
|
||||
};
|
@ -5,116 +5,28 @@
|
||||
// @file Name: modChecker.sqf
|
||||
// @file Author: NRZ7 (www.standarol.com)
|
||||
// @description: This script check the mods loaded by the client. If any mod is not loaded, pop's a screen with detailed information and clickable community links (modCheckerDisplay.sqf).
|
||||
// You can configure requiered addons (errorLevel 99) or optional addons (errorLevel 1). If any mod fails or this script is manually executed, launch modCheckerDisplay.sqf
|
||||
// You can execute this script running this code in local // [] execVM "addons\scripts\modChecker.sqf"
|
||||
// You can configure requiered addons (error 99) or optional addons (error 1). If any required mod fails, the client load "You Loose" screen after close the dialog.
|
||||
//
|
||||
|
||||
|
||||
errorLevel = 0; // Do not touch. Set errors to 0 before run modChecker.sqf
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Exile_Client Example - READ TO UNDERSTAND - DO NOT TOUCH - READ - DO NOT TOUCH - READ - DO NOT TOUCH
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Change "Exile_Client" to name of the CfgPatches from desired mod.
|
||||
// You can find under editor. ("Tools" - "Config Viewer" - "Configfile" - "CfgPatches")
|
||||
if (isClass(configFile >> "CfgPatches" >> "Exile_Client")) then {
|
||||
// Change checkExile to your desired and unique mod variable name
|
||||
// Change "Exile Mod is" to your mod string. For advanced users, can change size, color, allign, etc.
|
||||
checkExile = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>Exile Mod is</t><t color='#2fd402' size='0.9' shadow='1' shadowColor='#000000' align='center'> found!</t><br/>";
|
||||
} else {
|
||||
// Change "Exile Mod is" to your mod string
|
||||
checkExile = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>Exile Mod is</t><t color='#ff0000' size='0.9' shadow='1' shadowColor='#000000' align='center'> NOT FOUND!</t><br/>";
|
||||
// Set 99 to Required, Set 1 to optional
|
||||
errorLevel = errorLevel + 99
|
||||
};
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// START OF MODS CONFIG - EDIT OR DELETE UNDER THIS LINE
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Esseker Example - DELETE OR MODIFY
|
||||
if (isClass(configFile >> "CfgPatches" >> "Esseker")) then {
|
||||
checkEsseker = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>Esseker Map is</t><t color='#2fd402' size='0.9' shadow='1' shadowColor='#000000' align='center'> found!</t><br/>";
|
||||
} else {
|
||||
checkEsseker = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>Esseker Map is</t><t color='#ff0000' size='0.9' shadow='1' shadowColor='#000000' align='center'> NOT FOUND!</t><br/>";
|
||||
errorLevel = errorLevel + 99
|
||||
};
|
||||
|
||||
// Zombis & Demonds Example - DELETE OR MODIFY
|
||||
if (isClass(configFile >> "CfgPatches" >> "Ryanzombies")) then {
|
||||
checkRyan = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>Zombies and Demonds is</t><t color='#2fd402' size='0.9' shadow='1' shadowColor='#000000' align='center'> found!</t><br/>";
|
||||
} else {
|
||||
checkRyan = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>Zombies and Demonds is</t><t color='#ff0000' size='0.9' shadow='1' shadowColor='#000000' align='center'> NOT FOUND!</t><br/>";
|
||||
errorLevel = errorLevel + 99
|
||||
};
|
||||
|
||||
// CUP_Weapons Example - DELETE OR MODIFY
|
||||
if (isClass(configFile >> "CfgPatches" >> "CUP_Weapons_WeaponsCore")) then {
|
||||
checkWeapons = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>CUP Weapons is</t><t color='#2fd402' size='0.9' shadow='1' shadowColor='#000000' align='center'> found!</t><br/>";
|
||||
} else {
|
||||
checkWeapons = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>CUP Weapons is</t><t color='#ff0000' size='0.9' shadow='1' shadowColor='#000000' align='center'> NOT FOUND!</t><br/>";
|
||||
errorLevel = errorLevel + 99
|
||||
};
|
||||
|
||||
// CUP_Vehicles Example - DELETE OR MODIFY
|
||||
if (isClass(configFile >> "CfgPatches" >> "CUP_Vehicles_Core")) then {
|
||||
checkVehicles = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>CUP Vehicles is</t><t color='#2fd402' size='0.9' shadow='1' shadowColor='#000000' align='center'> found!</t><br/>";
|
||||
} else {
|
||||
checkVehicles = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>CUP Vehicles is</t><t color='#ff0000' size='0.9' shadow='1' shadowColor='#000000' align='center'> NOT FOUND!</t><br/>";
|
||||
errorLevel = errorLevel + 99
|
||||
};
|
||||
|
||||
// CUP_TerrainCore Example - DELETE OR MODIFY
|
||||
if (isClass(configFile >> "CfgPatches" >> "CUP_Worlds")) then {
|
||||
checkTerrain = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>CUP Terrain Core is</t><t color='#2fd402' size='0.9' shadow='1' shadowColor='#000000' align='center'> found!</t><br/>";
|
||||
} else {
|
||||
checkTerrain = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>CUP Terrain Core is</t><t color='#ff0000' size='0.9' shadow='1' shadowColor='#000000' align='center'> NOT FOUND!</t><br/>";
|
||||
errorLevel = errorLevel + 1
|
||||
};
|
||||
|
||||
// CUP_Units Example - DELETE OR MODIFY
|
||||
if (isClass(configFile >> "CfgPatches" >> "CUP_Creatures_People_Core")) then {
|
||||
checkUnits = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>CUP Units is</t><t color='#2fd402' size='0.9' shadow='1' shadowColor='#000000' align='center'> found!</t><br/>";
|
||||
} else {
|
||||
checkUnits = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>CUP Units is</t><t color='#ff0000' size='0.9' shadow='1' shadowColor='#000000' align='center'> NOT FOUND!</t><br/>";
|
||||
errorLevel = errorLevel + 99
|
||||
};
|
||||
|
||||
// Community Base Addon Example - DELETE OR MODIFY
|
||||
if (isClass(configFile >> "CfgPatches" >> "CBA_main")) then {
|
||||
checkCBA = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>CBA_A3 is</t><t color='#2fd402' size='0.9' shadow='1' shadowColor='#000000' align='center'> found!</t><br/>";
|
||||
} else {
|
||||
checkCBA = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>CBA_A3 is</t><t color='#ff0000' size='0.9' shadow='1' shadowColor='#000000' align='center'> NOT FOUND!</t><br/>";
|
||||
errorLevel = errorLevel + 1
|
||||
};
|
||||
|
||||
|
||||
// YOU CAN ADD MORE MODS, ADD FOR EACH SOME CODE LIKE THIS
|
||||
|
||||
/*
|
||||
if (isClass(configFile >> "CfgPatches" >> "YOUR_MOD_CLASSNAME")) then {
|
||||
checkYOURMOD = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>YOUR MOD is</t><t color='#2fd402' size='0.9' shadow='1' shadowColor='#000000' align='center'> found!</t><br/>";
|
||||
} else {
|
||||
checkYOURMOD = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>YOUR MOD is</t><t color='#ff0000' size='0.9' shadow='1' shadowColor='#000000' align='center'> NOT FOUND!</t><br/>";
|
||||
errorLevel = errorLevel + 1
|
||||
};
|
||||
*/
|
||||
errorLevel = 0;
|
||||
|
||||
#include "modCheckerConfig.hpp"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// DO NOT TOUCH UNDER THIS LINE IF DON'T KNOW WHAT ARE YOU DOING
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
if (errorLevel > 0) then {
|
||||
warnMessage = "<t color='#ff0000' size='1.3' shadow='1' shadowColor='#000000' align='center'>Some is WRONG with your MODS</t><br/>"; // General error message
|
||||
warnMessage = "<t color='#ff0000' size='1.3' shadow='1' shadowColor='#000000' align='center'>Some is WRONG with your MODS</t><br/>";
|
||||
} else {
|
||||
warnMessage = "<t color='#2fd402' size='1.3' shadow='1' shadowColor='#000000' align='center'>All MODS are FINE</t><br/>"; // All mods are loaded message
|
||||
warnMessage = "<t color='#2fd402' size='1.3' shadow='1' shadowColor='#000000' align='center'>All MODS are FINE</t><br/>";
|
||||
};
|
||||
|
||||
if ((errorLevel == 0) && (firstCheck == 0)) then {
|
||||
firstCheck = 1
|
||||
if ((errorLevel == 0) && (firstCheck == 0)) then {
|
||||
firstCheck = 1 // Do nothing
|
||||
} else {
|
||||
execVM "addons\modChecker\modCheckerDisplay.sqf"
|
||||
execVM "addons\modChecker\modCheckerDisplay.sqf"
|
||||
};
|
||||
|
||||
// execVM "addons\modChecker\modCheckerDisplay.sqf"
|
||||
|
69
addons/modChecker/modCheckerConfig.hpp
Normal file
69
addons/modChecker/modCheckerConfig.hpp
Normal file
@ -0,0 +1,69 @@
|
||||
// Exile_Client Example
|
||||
// Change "Exile_Client" to name of the Cfg patche from desired mod
|
||||
if (isClass(configFile >> "CfgPatches" >> "Exile_Client")) then {
|
||||
// Change checkExile to your desired mod variable name
|
||||
// Change "Exile Mod is" to your mod string
|
||||
checkExile = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>Exile Mod is</t><t color='#2fd402' size='0.9' shadow='1' shadowColor='#000000' align='center'> found!</t><br/>";
|
||||
} else {
|
||||
// Change "Exile Mod is" to your mod string
|
||||
checkExile = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>Exile Mod is</t><t color='#ff0000' size='0.9' shadow='1' shadowColor='#000000' align='center'> NOT FOUND!</t><br/>";
|
||||
// Set 99 to Required, Set 1 to optional
|
||||
errorLevel = errorLevel + 99
|
||||
};
|
||||
|
||||
// Esseker Example - DELETE OR MODIFY
|
||||
if (isClass(configFile >> "CfgPatches" >> "Esseker")) then {
|
||||
checkEsseker = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>Esseker Map is</t><t color='#2fd402' size='0.9' shadow='1' shadowColor='#000000' align='center'> found!</t><br/>";
|
||||
} else {
|
||||
checkEsseker = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>Esseker Map is</t><t color='#ff0000' size='0.9' shadow='1' shadowColor='#000000' align='center'> NOT FOUND!</t><br/>";
|
||||
errorLevel = errorLevel + 99
|
||||
};
|
||||
|
||||
// Zombis & Demonds Example - DELETE OR MODIFY
|
||||
if (isClass(configFile >> "CfgPatches" >> "Ryanzombies")) then {
|
||||
checkRyan = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>Zombies and Demonds is</t><t color='#2fd402' size='0.9' shadow='1' shadowColor='#000000' align='center'> found!</t><br/>";
|
||||
} else {
|
||||
checkRyan = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>Zombies and Demonds is</t><t color='#ff0000' size='0.9' shadow='1' shadowColor='#000000' align='center'> NOT FOUND!</t><br/>";
|
||||
errorLevel = errorLevel + 99
|
||||
};
|
||||
|
||||
// CUP_Weapons Example - DELETE OR MODIFY
|
||||
if (isClass(configFile >> "CfgPatches" >> "CUP_Weapons_WeaponsCore")) then {
|
||||
checkWeapons = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>CUP Weapons is</t><t color='#2fd402' size='0.9' shadow='1' shadowColor='#000000' align='center'> found!</t><br/>";
|
||||
} else {
|
||||
checkWeapons = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>CUP Weapons is</t><t color='#ff0000' size='0.9' shadow='1' shadowColor='#000000' align='center'> NOT FOUND!</t><br/>";
|
||||
errorLevel = errorLevel + 99
|
||||
};
|
||||
|
||||
// CUP_Vehicles Example - DELETE OR MODIFY
|
||||
if (isClass(configFile >> "CfgPatches" >> "CUP_Vehicles_Core")) then {
|
||||
checkVehicles = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>CUP Vehicles is</t><t color='#2fd402' size='0.9' shadow='1' shadowColor='#000000' align='center'> found!</t><br/>";
|
||||
} else {
|
||||
checkVehicles = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>CUP Vehicles is</t><t color='#ff0000' size='0.9' shadow='1' shadowColor='#000000' align='center'> NOT FOUND!</t><br/>";
|
||||
errorLevel = errorLevel + 99
|
||||
};
|
||||
|
||||
// CUP_TerrainCore Example - DELETE OR MODIFY
|
||||
if (isClass(configFile >> "CfgPatches" >> "CUP_Worlds")) then {
|
||||
checkTerrain = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>CUP Terrain Core is</t><t color='#2fd402' size='0.9' shadow='1' shadowColor='#000000' align='center'> found!</t><br/>";
|
||||
} else {
|
||||
checkTerrain = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>CUP Terrain Core is</t><t color='#ff0000' size='0.9' shadow='1' shadowColor='#000000' align='center'> NOT FOUND!</t><br/>";
|
||||
errorLevel = errorLevel + 1
|
||||
};
|
||||
|
||||
// CUP_Units Example - DELETE OR MODIFY
|
||||
if (isClass(configFile >> "CfgPatches" >> "CUP_Creatures_People_Core")) then {
|
||||
checkUnits = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>CUP Units is</t><t color='#2fd402' size='0.9' shadow='1' shadowColor='#000000' align='center'> found!</t><br/>";
|
||||
} else {
|
||||
checkUnits = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>CUP Units is</t><t color='#ff0000' size='0.9' shadow='1' shadowColor='#000000' align='center'> NOT FOUND!</t><br/>";
|
||||
errorLevel = errorLevel + 99
|
||||
};
|
||||
|
||||
// Community Base Addon Example - DELETE OR MODIFY
|
||||
if (isClass(configFile >> "CfgPatches" >> "CBA_main")) then
|
||||
{
|
||||
checkCBA = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>CBA_A3 is</t><t color='#2fd402' size='0.9' shadow='1' shadowColor='#000000' align='center'> found!</t><br/>";
|
||||
} else {
|
||||
checkCBA = "<t size='0.9' shadow='1' shadowColor='#000000' align='center'>CBA_A3 is</t><t color='#ff0000' size='0.9' shadow='1' shadowColor='#000000' align='center'> NOT FOUND!</t><br/>";
|
||||
errorLevel = errorLevel + 1
|
||||
};
|
@ -40,29 +40,7 @@ _text2 = _display displayCtrl 1102;
|
||||
// Remember to add-delete-modify the same mod variable names used in modChecker.sqf
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Display header
|
||||
_message = "";
|
||||
_message = _message + "<t align='center' size='2' shadow='0'></t><br />"; // <br /> is equal to line jump
|
||||
_message = _message + "<t align='center' size='2' shadow='0'>Welcome to Mod Checker</t><br />";
|
||||
_message = _message + "<t align='center'>______________________________________________________________________________________<br /><br />";
|
||||
_message = _message + warnMessage;
|
||||
_message = _message + "<t align='center'><br />";
|
||||
|
||||
//Mod variable names - MODIFY HERE
|
||||
_message = _message + checkExile;
|
||||
_message = _message + checkEsseker;
|
||||
_message = _message + checkRyan;
|
||||
_message = _message + checkWeapons;
|
||||
_message = _message + checkVehicles;
|
||||
_message = _message + checkUnits;
|
||||
_message = _message + checkTerrain;
|
||||
_message = _message + checkCBA;
|
||||
|
||||
// Custom message with community links - MODIFY HERE
|
||||
_message = _message + "<br />"; // <br /> is equal to line jump
|
||||
_message = _message + "If you get any error, please, read the following links<br /><br />";
|
||||
_message = _message + "Download the mods from <a href= 'http://steamcommunity.com/sharedfiles/filedetails/?id=752130537' color='#ff9900'>Steam Workshop</a> Only click on Subscribe!<br />";
|
||||
_message = _message + "<a href= 'http://standarol.com/index.php/topic,674.0.html' color='#ff9900'>Guía de lanzamiento e instalación de mods [ESPAÑOL]</a> </t><br /><br />";
|
||||
#include "modCheckerDisplayConfig.hpp"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// END OF CUSTOMIZABLE TEXT, DO NOT TOUCH UNDER THIS LINE IF YOU DON'T KWOW WHAT ARE YOU DOING
|
||||
|
23
addons/modChecker/modCheckerDisplayConfig.hpp
Normal file
23
addons/modChecker/modCheckerDisplayConfig.hpp
Normal file
@ -0,0 +1,23 @@
|
||||
// Display header
|
||||
_message = "";
|
||||
_message = _message + "<t align='center' size='2' shadow='0'></t><br />";
|
||||
_message = _message + "<t align='center' size='2' shadow='0'>Welcome to Mod Checker</t><br />";
|
||||
_message = _message + "<t align='center'>______________________________________________________________________________________<br /><br />";
|
||||
_message = _message + warnMessage;
|
||||
_message = _message + "<t align='center'><br />";
|
||||
|
||||
//Mod variable names - MODIFY HERE
|
||||
_message = _message + checkExile;
|
||||
_message = _message + checkEsseker;
|
||||
_message = _message + checkRyan;
|
||||
_message = _message + checkWeapons;
|
||||
_message = _message + checkVehicles;
|
||||
_message = _message + checkUnits;
|
||||
_message = _message + checkTerrain;
|
||||
_message = _message + checkCBA;
|
||||
|
||||
// Custom message with community links - MODIFY HERE
|
||||
_message = _message + "<br />";
|
||||
_message = _message + "If you get any error, please, read the following links<br /><br />";
|
||||
_message = _message + "Download the mods from <a href= 'http://steamcommunity.com/sharedfiles/filedetails/?id=752130537' color='#ff9900'>Steam Workshop</a> Only click on Subscribe!<br />";
|
||||
_message = _message + "<a href= 'http://standarol.com/index.php/topic,674.0.html' color='#ff9900'>Guía de lanzamiento e instalación de mods [ESPAÑOL]</a> </t><br /><br />";
|
12
config.cpp
12
config.cpp
@ -1,12 +1,14 @@
|
||||
class CfgXM8
|
||||
{
|
||||
extraApps[] = {"modChecker"};
|
||||
extraApps[] = {"ExAd_modChecker"};
|
||||
|
||||
class modChecker
|
||||
class ExAd_modChecker
|
||||
{
|
||||
title = "Mod Checker";
|
||||
logo = "addons\modChecker\modChecker.paa";
|
||||
quickFunction = "[] execVM 'addons\modChecker\modChecker.sqf'";
|
||||
|
||||
controlID = 99999;
|
||||
logo = "ExadClient\XM8\Apps\modChecker\modChecker.paa";
|
||||
onLoad = "ExAdClient\XM8\Apps\modChecker\onLoad.sqf";
|
||||
onOpen = "ExAdClient\XM8\Apps\modChecker\onOpen.sqf";
|
||||
onClose = "ExAdClient\XM8\Apps\modChecker\onClose.sqf";
|
||||
};
|
||||
};
|
Loading…
Reference in New Issue
Block a user