Skip to content

Commit

Permalink
Added dialog component
Browse files Browse the repository at this point in the history
  • Loading branch information
CreepPork committed Jun 22, 2019
1 parent afb942e commit ffe906d
Show file tree
Hide file tree
Showing 9 changed files with 61 additions and 0 deletions.
1 change: 1 addition & 0 deletions addons/dialog/$PBOPREFIX$
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
z\achilles\addons\dialog
11 changes: 11 additions & 0 deletions addons/dialog/CfgEventHandlers.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
class Extended_PreStart_EventHandlers {
class ADDON {
init = QUOTE(call COMPILE_FILE(XEH_preStart));
};
};

class Extended_PreInit_EventHandlers {
class ADDON {
init = QUOTE(call COMPILE_FILE(XEH_preInit));
};
};
1 change: 1 addition & 0 deletions addons/dialog/XEH_PREP.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PREP(empty);
7 changes: 7 additions & 0 deletions addons/dialog/XEH_preInit.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include "script_component.hpp"

ADDON = false;

#include "XEH_PREP.hpp"

ADDON = true;
3 changes: 3 additions & 0 deletions addons/dialog/XEH_preStart.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#include "script_component.hpp"

#include "XEH_PREP.hpp"
16 changes: 16 additions & 0 deletions addons/dialog/config.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#include "script_component.hpp"

class CfgPatches {
class ADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"achilles_main"};
author = "The Achilles Dev Team";
authors[] = {"The Achilles Dev Team"};
VERSION_CONFIG;
};
};

#include "CfgEventHandlers.hpp"
3 changes: 3 additions & 0 deletions addons/dialog/functions/fnc_empty.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#include "script_component.hpp"

diag_log text format["This is here as an example!!!"];
1 change: 1 addition & 0 deletions addons/dialog/functions/script_component.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "\z\achilles\addons\dialog\script_component.hpp"
18 changes: 18 additions & 0 deletions addons/dialog/script_component.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#define COMPONENT dialog
#define COMPONENT_BEAUTIFIED Dialog
#include "\z\achilles\addons\main\script_mod.hpp"

// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE
// #define CBA_DEBUG_SYNCHRONOUS
// #define ENABLE_PERFORMANCE_COUNTERS

#ifdef DEBUG_ENABLED_DIALOG
#define DEBUG_MODE_FULL
#endif

#ifdef DEBUG_SETTINGS_DIALOG
#define DEBUG_SETTINGS DEBUG_SETTINGS_DIALOG
#endif

#include "\z\achilles\addons\main\script_macros.hpp"

0 comments on commit ffe906d

Please sign in to comment.