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/civilian/$PBOPREFIX$
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
zrn\cvo\addons\civilian
14 changes: 14 additions & 0 deletions addons/civilian/CfgFunctions.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
class CfgFunctions
{
class ADDON
{
class COMPONENT
{

file = PATH_TO_FUNC;

// class example { postInit = 1; };

};
};
};
6 changes: 6 additions & 0 deletions addons/civilian/XEH/CfgXEH.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// No need to change anything here
class Extended_PreInit_EventHandlers {
class ADDON {
init = QUOTE(call COMPILE_FILE(XEH\XEH_preInit));
};
};
3 changes: 3 additions & 0 deletions addons/civilian/XEH/XEH_preInit.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#include "script_component.hpp"

#include initSettings.inc.sqf
28 changes: 28 additions & 0 deletions addons/civilian/XEH/initSettings.inc.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@


/*
here, you put in your CBA Settings so they are available in the editor!

https://github.com/CBATeam/CBA_A3/wiki/CBA-Settings-System#create-a-custom-setting-for-mission-or-mod

MACROS Used:
SETLSTRING(test) -> [LSTRING(set_test), LSTRING(set_test_desc)] -> STR_prefix_component_set_test // STR_prefix_component_set_test_desc


SET(test) -> ADDON_set_test
QSET(test) -> "ADDON_set_test"
*/

/*
[
QSET(enable), // _setting - Unique setting name. Matches resulting variable name <STRING>
"CHECKBOX", // _settingType - Type of setting. Can be "CHECKBOX", "EDITBOX", "LIST", "SLIDER" or "COLOR" <STRING>
SETLSTRING(enable),
// _title - Display name or display name + tooltip (optional, default: same as setting name) <STRING, ARRAY>
[LSTRING(set_cat_main)], // _category - Category for the settings menu + optional sub-category <STRING, ARRAY>
true, // _valueInfo - Extra properties of the setting depending of _settingType. See examples below <ANY>
1, // _isGlobal - 1: all clients share the same setting, 2: setting can't be overwritten (optional, default: 0) <NUMBER>
{}, // _script - Script to execute when setting is changed. (optional) <CODE>
false // _needRestart - Setting will be marked as needing mission restart after being changed. (optional, default false) <BOOL>
] call CBA_fnc_addSetting;
*/
37 changes: 37 additions & 0 deletions addons/civilian/config.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#include "script_component.hpp"

class CfgPatches {
class ADDON {

// Meta information for editor
name = ADDON_NAME;
author = "$STR_cvo_Author";
authors[] = {"OverlordZorn [CVO]"};

url = "$STR_cvo_URL";

VERSION_CONFIG;

// Addon Specific Information
// Minimum compatible version. When the game's version is lower, pop-up warning will appear when launching the game.
requiredVersion = 2.02;

// Required addons, used for setting load order.
// When any of the addons is missing, pop-up warning will appear when launching the game.
requiredAddons[] = {QPVAR(main), "cba_main"};

// Optional. If this is 1, if any of requiredAddons[] entry is missing in your game the entire config will be ignored and return no error (but in rpt) so useful to make a compat Mod (Since Arma 3 2.14)
skipWhenMissingDependencies = 1;

// List of objects (CfgVehicles classes) contained in the addon. Important also for Zeus content (units and groups)
units[] = {};

// List of weapons (CfgWeapons classes) contained in the addon.
weapons[] = {};

};

};

#include "CfgFunctions.hpp"
#include "XEH\CfgXEH.hpp"
16 changes: 16 additions & 0 deletions addons/civilian/functions/fn_example.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#include "../script_component.hpp"

/*
* Author: Zorn
* [Description]
*
* Arguments:
*
* Return Value:
* None
*
* Example:
* ['something', player] call cvo_fnc_sth
*
* Public: Yes
*/
5 changes: 5 additions & 0 deletions addons/civilian/script_component.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#define COMPONENT civilian
#define COMPONENT_BEAUTIFIED Civilian Framework

#include "\zrn\cvo\addons\main\script_mod.hpp"
#include "\zrn\cvo\addons\main\script_macros.hpp"