port markers

This commit is contained in:
commy2 2015-01-18 08:20:55 +01:00
parent 14745af70b
commit cb8945a879
18 changed files with 66 additions and 50 deletions

View File

@ -1,47 +0,0 @@
class CfgPatches {
class AGM_Markers {
units[] = {};
weapons[] = {};
requiredVersion = 0.60;
requiredAddons[] = {AGM_Core};
version = "0.95";
versionStr = "0.95";
versionAr[] = {0,95,0};
author[] = {"commy2"};
authorUrl = "https://github.com/commy2/";
};
};
class CfgFunctions {
class AGM_Markers {
class AGM_Markers {
file = "AGM_Markers\functions";
class onLBSelChangedColor;
class onLBSelChangedShape;
class onSliderPosChangedAngle;
class sendMarkersJIP;
class setMarker;
class setMarkerJIP;
class setMarkerNetwork;
};
};
};
class Extended_PostInit_EventHandlers {
class AGM_Markers {
clientInit = "call compile preprocessFileLineNumbers 'AGM_Markers\clientInit.sqf'";
};
};
class RscPicture;
class RscText;
class RscStructuredText;
class RscButtonMenuOK;
class RscButtonMenuCancel;
class RscButtonMenu;
class RscEdit;
class RscCombo;
class RscSlider;
class RscXSliderH;
#include <InsertMarker.hpp>

View File

@ -0,0 +1 @@
z\ace\addons\markers

View File

@ -0,0 +1,12 @@
class Extended_PreInit_EventHandlers {
class ADDON {
init = QUOTE(call COMPILE_FILE(XEH_preInit));
};
};
class Extended_PostInit_EventHandlers {
class ADDON {
init = QUOTE(call COMPILE_FILE(XEH_postInit));
};
};

View File

@ -1,4 +1,15 @@
class RscPicture;
class RscText;
class RscStructuredText;
class RscButtonMenuOK;
class RscButtonMenuCancel;
class RscButtonMenu;
class RscEdit;
class RscCombo;
class RscSlider;
class RscXSliderH;
class RscDisplayInsertMarker {
onLoad = "_this call compile preprocessFileLineNumbers 'AGM_Markers\scripts\initInsertMarker.sqf'";
onUnload = "_this call compile preprocessFileLineNumbers 'AGM_Markers\scripts\placeMarker.sqf'";

View File

@ -0,0 +1,11 @@
#include "script_component.hpp"
PREP(initInsertMarker);
PREP(onLBSelChangedColor);
PREP(onLBSelChangedShape);
PREP(onSliderPosChangedAngle);
PREP(placeMarker);
PREP(sendMarkersJIP);
PREP(setMarker);
PREP(setMarkerJIP);
PREP(setMarkerNetwork);

16
addons/markers/config.cpp Normal file
View File

@ -0,0 +1,16 @@
#include "script_component.hpp"
class CfgPatches {
class ADDON {
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
author[] = {"commy2"};
authorUrl = "https://github.com/commy2/";
VERSION_CONFIG;
};
};
#include "CfgEventHandlers.hpp"
#include "InsertMarker.hpp"

View File

@ -0,0 +1,12 @@
#define COMPONENT markers
#include "\z\ace\addons\main\script_mod.hpp"
#ifdef DEBUG_ENABLED_MARKERS
#define DEBUG_MODE_FULL
#endif
#ifdef DEBUG_ENABLED_MARKERS
#define DEBUG_SETTINGS DEBUG_ENABLED_MARKERS
#endif
#include "\z\ace\addons\main\script_macros.hpp"

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Edited with tabler - 2014-12-22 -->
<Project name="AGM">
<Project name="ACE">
<Package name="Markers">
<Key ID="STR_AGM_Markers_MarkerDirection">
<Key ID="STR_ACE_Markers_MarkerDirection">
<English>Direction: %1°</English>
<German>Drehung: %1°</German>
<French>Direction: %1°</French>
@ -11,7 +11,7 @@
<Spanish>Dirección: %1°</Spanish>
<Russian>Направление: %1</Russian>
</Key>
<Key ID="STR_AGM_Markers_PlaceIn">
<Key ID="STR_ACE_Markers_PlaceIn">
<English>Place in: %1</English>
<German>Platz in: %1</German>
<Spanish>Colocar en: %1</Spanish>