Skip to content

Commit

Permalink
Merge pull request #4 from tuntematonjr/v2
Browse files Browse the repository at this point in the history
V1
  • Loading branch information
tuntematonjr authored Feb 8, 2021
2 parents 96d25ce + 246ee28 commit 0024e2a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 32 deletions.
8 changes: 4 additions & 4 deletions addons/artycomputer_models/script_component.hpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#define COMPONENT artycomputer_models
#define PREFIX Tun

#define MAJOR 0
#define MINOR 4
#define PATCHLVL 1
#define BUILD 24012021
#define MAJOR 1
#define MINOR 0
#define PATCHLVL 0
#define BUILD 08022021

#define VERSION MAJOR.MINOR.PATCHLVL.BUILD
#define VERSION_AR MAJOR,MINOR,PATCHLVL,BUILD
Expand Down
16 changes: 0 additions & 16 deletions addons/firesupport/GUIBaseClasses.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ class ScrollBar
};
class RscObject
{
access = 0;
type = CT_OBJECT;
scale = 1;
direction[] = {0,0,1};
Expand All @@ -137,7 +136,6 @@ class RscText
{
deletable = 0;
fade = 0;
access = 0;
type = CT_STATIC;
idc = -1;
colorBackground[] = {0,0,0,0};
Expand Down Expand Up @@ -191,7 +189,6 @@ class RscProgress
{
deletable = 0;
fade = 0;
access = 0;
type = CT_PROGRESS;
style = ST_HORIZONTAL;
colorFrame[] = {0,0,0,0};
Expand All @@ -213,7 +210,6 @@ class RscPicture
{
deletable = 0;
fade = 0;
access = 0;
type = CT_STATIC;
idc = -1;
style = ST_MULTI + ST_TITLE_BAR;
Expand Down Expand Up @@ -246,7 +242,6 @@ class RscHTML
{
deletable = 0;
fade = 0;
access = 0;
type = CT_HTML;
idc = -1;
style = ST_LEFT;
Expand Down Expand Up @@ -325,7 +320,6 @@ class RscButton
{
deletable = 0;
fade = 0;
access = 0;
type = CT_BUTTON;
text = "";
colorText[] = {1,1,1,1};
Expand Down Expand Up @@ -495,7 +489,6 @@ class RscEdit
{
deletable = 0;
fade = 0;
access = 0;
type = CT_EDIT;
x = 0;
y = 0;
Expand Down Expand Up @@ -527,7 +520,6 @@ class RscCombo
{
deletable = 0;
fade = 0;
access = 0;
type = CT_COMBO;
colorSelect[] = {0,0,0,1};
colorText[] = {1,1,1,1};
Expand Down Expand Up @@ -587,7 +579,6 @@ class RscListBox
{
deletable = 0;
fade = 0;
access = 0;
type = CT_LISTBOX;
rowHeight = 0;
colorText[] = {1,1,1,1};
Expand Down Expand Up @@ -642,7 +633,6 @@ class RscListNBox
{
deletable = 0;
fade = 0;
access = 0;
type = CT_LISTNBOX;
rowHeight = 0;
colorText[] = {1,1,1,1};
Expand Down Expand Up @@ -731,7 +721,6 @@ class RscTree
{
deletable = 0;
fade = 0;
access = 0;
type = CT_TREE;
colorBackground[] = {0,0,0,0};
colorSelect[] = {1,1,1,0.7};
Expand Down Expand Up @@ -781,7 +770,6 @@ class RscSlider
{
deletable = 0;
fade = 0;
access = 0;
type = CT_SLIDER;
style = SL_HORZ;
color[] = {1,1,1,0.8};
Expand Down Expand Up @@ -819,7 +807,6 @@ class RscActiveText
{
deletable = 0;
fade = 0;
access = 0;
type = CT_ACTIVETEXT;
style = ST_CENTER;
color[] = {0,0,0,1};
Expand Down Expand Up @@ -878,7 +865,6 @@ class RscStructuredText
{
deletable = 0;
fade = 0;
access = 0;
type = CT_STRUCTURED_TEXT;
idc = -1;
style = ST_LEFT;
Expand All @@ -903,7 +889,6 @@ class RscToolbox
{
deletable = 0;
fade = 0;
access = 0;
type = CT_TOOLBOX;
style = ST_CENTER;
colorText[] = {0.95,0.95,0.95,1};
Expand Down Expand Up @@ -1133,7 +1118,6 @@ class RscMapControl
{
deletable = 0;
fade = 0;
access = 0;
type = CT_MAP_MAIN;
idc = 51;
style = ST_MULTI + ST_TITLE_BAR;
Expand Down
8 changes: 1 addition & 7 deletions addons/firesupport/functions/fnc_fire.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,13 @@ private _variables = switch (playerSide) do {
GVAR(guns_civilian)
};

default
{
default {
/* STATEMENT */
};
};

private _index = lbCurSel ARTY_LIST_IDC;
private _gun_module = _variables select _index;


private _easting = ctrlText EASTING_IDC;
private _northing = ctrlText NORTHING_IDC;
private _type = lbData [AMMO_TYPE_IDC, lbCurSel AMMO_TYPE_IDC];
Expand Down Expand Up @@ -88,8 +85,6 @@ if (_delay < 2) then {
_delay_max = _delay + _delay * 1.3;
};



private _eta = ([] call FUNC(calculate_eta)) select 0;
private _eta_when_done = _eta + (_count * _delay) + 10;

Expand Down Expand Up @@ -170,7 +165,6 @@ switch (_firing_style) do {
};
};


private _ammoModule = (synchronizedObjects _gun_module) select lbCurSel AMMO_TYPE_IDC;

[{
Expand Down
2 changes: 1 addition & 1 deletion addons/firesupport/functions/fnc_open_dialog.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if (GVAR(debug)) then {

createDialog "Firesupport_dialog";
waitUntil {!isnull (findDisplay MAIN_IDD)};
findDisplay MAIN_IDD displayCtrl REMAINIG_AMMO_PROGRESBAR_IDC progressSetPosition 0.5;
//findDisplay MAIN_IDD displayCtrl REMAINIG_AMMO_PROGRESBAR_IDC progressSetPosition 0.5;

private _easting = player getVariable [QGVAR(easting), "00000"];
private _northing = player getVariable [QGVAR(northing), "00000"];
Expand Down
8 changes: 4 additions & 4 deletions addons/firesupport/script_component.hpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#define COMPONENT firesupport
#define PREFIX Tun

#define MAJOR 0
#define MINOR 4
#define PATCHLVL 1
#define BUILD 24012021
#define MAJOR 1
#define MINOR 0
#define PATCHLVL 0
#define BUILD 08022021

#define VERSION MAJOR.MINOR.PATCHLVL.BUILD
#define VERSION_AR MAJOR,MINOR,PATCHLVL,BUILD
Expand Down

0 comments on commit 0024e2a

Please sign in to comment.