Commit d0472549 authored by Jan Speichert's avatar Jan Speichert
Browse files

Some testing...still don't know how to read from mod.cpp

parent 7fab6c9a
#define MAJOR 1
#define MINOR 0
#define PATCHLVL 0
#define BUILD 53
#define BUILDDATE 2015-10-03 22:19:12.674000
\ No newline at end of file
#define BUILD 95
#define BUILDDATE 2015-10-06 22:01:48.236000
\ No newline at end of file
class CfgFunctions
class CfgFunctions
{
class SOL
{
class w_buttons
{
// SOL_fnc_Wbuttons_initOnGameStart
file = "\sol\clearhud\addons\w_butons\Wbuttons_initOnGameStart.sqf";
preStart = 1;
class initOnGameStart
{
// SOL_fnc_Wbuttons_initOnGameStart
file = "\sol\clearhud\addons\w_buttons\Wbuttons_initOnGameStart.sqf";
preStart = 1;
};
};
};
};
\ No newline at end of file
......@@ -6,7 +6,9 @@ class RscDisplayMain: RscStandardDisplay
{
//onLoad = "[""onLoad"",_this,""RscDisplayMain"",'GUI'] call (uinamespace getvariable 'BIS_fnc_initDisplay');";
//onLoad = QUOTE([ARR_4('onLoad',_this,'RscDisplayMain','GUI')] call (uinamespace getvariable 'BIS_fnc_initDisplay'););
//onLoad = QUOTE([ARR_4('onLoad',_this,'RscDisplayMain','GUI')] call (uinamespace getvariable 'BIS_fnc_initDisplay'); _this execVM QUOTE(QUOTE(PATHTOF(script_initMainMenu.sqf))););
onMouseMoving = QUOTE(_this execVM QUOTE(QUOTE(PATHTOF(script_initMainMenu.sqf))););
class controlsBackground
{
......@@ -27,7 +29,6 @@ class RscDisplayMain: RscStandardDisplay
class ButtonW_Baugrube: RscButtonMenu
{
idc = 11380;
default = 0;
onbuttonclick = QUOTE(_this execVM QUOTE(QUOTE(PATHTOF(script_handleWButtons.sqf))));
text = "Baugrube";
......@@ -42,7 +43,6 @@ class RscDisplayMain: RscStandardDisplay
class ButtonW_Server1: RscButtonMenu
{
idc = 11381;
default = 0;
onbuttonclick = QUOTE(_this execVM QUOTE(QUOTE(PATHTOF(script_handleWButtons.sqf))));
text = "Server #1";
......@@ -57,7 +57,6 @@ class RscDisplayMain: RscStandardDisplay
class ButtonW_Server2: RscButtonMenu
{
idc = 11382;
default = 0;
onbuttonclick = QUOTE(_this execVM QUOTE(QUOTE(PATHTOF(script_handleWButtons.sqf))));
text = "Server #2";
......@@ -72,7 +71,6 @@ class RscDisplayMain: RscStandardDisplay
class ButtonW_ServerT: RscButtonMenu
{
idc = 11383;
default = 0;
onbuttonclick = QUOTE(_this execVM QUOTE(QUOTE(PATHTOF(script_handleWButtons.sqf))));
text = "Testserver";
......@@ -84,4 +82,9 @@ class RscDisplayMain: RscStandardDisplay
colorBackground[] = {0,0,0.1,0.8};
};
};
};
class RscDisplayModLauncher: RscStandardDisplay
{
onMouseMoving = QUOTE(_this execVM QUOTE(QUOTE(PATHTOF(script_test.sqf))););
};
\ No newline at end of file
......@@ -16,4 +16,5 @@ class CfgPatches
PRELOAD_ADDONS;
#include "RscDisplayMain.hpp"
\ No newline at end of file
#include "RscDisplayMain.hpp"
//#include "CfgFunctions.hpp"
\ No newline at end of file
/*
* Author: Soldia
* Configures all W Buttons
*
* Arguments:
* None
*
* Return Value:
* None
*
* Example:
* --
*
* Public: No
*/
//#include "script_component.hpp"
#define CONTROL(display,ctrl) ((findDisplay display) displayCtrl ctrl)
private ["_testserver"];
waitUntil {!isNull (findDisplay 0)};
//disableSerialization;
diag_log "Hallo";
diag_log format ["%1", ctrlType CONTROL(0,139)];
_testserver = isClass (configFile >> "CfgPatches" >> "Ares");
if (_testserver) then {
CONTROL(0,11380) ctrlEnable false;
CONTROL(0,11381) ctrlEnable false;
CONTROL(0,11382) ctrlEnable false;
} else {
CONTROL(0,11383) ctrlEnable false;
};
\ No newline at end of file
......@@ -14,10 +14,18 @@
* Public: No
*/
disableSerialization;
//#include "script_component.hpp"
#define CONTROL(display,ctrl) ((findDisplay display) displayCtrl ctrl)
// Wait until Main Display is initialized
waitUntil {!(isNull (findDisplay 0))};
private ["_testserver"];
waitUntil {!isNull (findDisplay 157)};
//disableSerialization;
diag_log "Hallo";
diag_log format ["%1", allControls (findDisplay 157)];
53
\ No newline at end of file
95
\ No newline at end of file
......@@ -66,7 +66,7 @@ def build_dir(dir, key, version):
os.remove(os.path.join(dir,addonDir,"config.bin"))
subprocess.call("pboProject.exe -P +E=\"arma3\" +Clean +N +X +W=p:\\ -Mod=p:\\sol\\clearhud\\temp\\ p:\\sol\\clearhud\\temp\\%s"%(addonDir))
if os.path.isfile(os.path.join("p:\\","sol","clearhud","temp","addons",addonDir + ".pbo")):
subprocess.call("rmdir " + os.path.join("p:\\","sol","clearhud","temp",addonDir) + "\\" + " /s /q", shell=True)
#subprocess.call("rmdir " + os.path.join("p:\\","sol","clearhud","temp",addonDir) + "\\" + " /s /q", shell=True)
os.rename(os.path.join("p:\\","sol","clearhud","temp","addons",addonDir + ".pbo"),
os.path.join("p:\\","sol","clearhud","build_pbo","addons","sol_clearhud_" + addonDir + ".pbo"))
......
1.0.0.53
\ No newline at end of file
1.0.0.95
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment