Jump to content

Recommended Posts

You can try changing it by yourself. De-pbo DCE.pbo and look at the file DCE\Menus\SquadMenuIcon.hpp.

Thought i'd have a go at it as i liked the text version as it was easier. Although i do like the icons as well. Here's my effort. ;)

q3pgszwrb5gk_t.jpg

I'll post the edited code if Drongo69 is okay with that. Saves Drongo69 having to do it. ;)

Edited by Law-Giver

Share this post


Link to post
Share on other sites

Sure, go ahead. You can also play around with the colour entries under class dceS_RscButtonMenu : dceS_RscShortcutButton { to find what you prefer for highlighting etc.

Share this post


Link to post
Share on other sites
Drongo69 said:
Sure, go ahead. You can also play around with the colour entries under class dceS_RscButtonMenu : dceS_RscShortcutButton { to find what you prefer for highlighting etc.

Might do that later, thanks Drongo69. I just enjoy tinkering, can't script for sh*t but it's better than nothing eh? ;)

SquadMenuIcon.hpp :

#define CT_STATIC       0
#define ST_PICTURE        0x30

#define dceS_X			0
#define dceS_Y			0
#define dceS_H			1
#define dceS_W			1
#define dceS_BUTTON_H		0.04 * safezoneW
#define dceS_BUTTON_W		0.06 * safezoneW
#define dceS_SPACE		0.005 * safezoneW
#define dceS_COL			(dceS_X + dceS_SPACE)
#define dceS_ROW			(dceS_Y + dceS_SPACE)
#define dceS_COLINC		(dceS_BUTTON_W + dceS_SPACE)
#define dceS_ROWINC		(dceS_BUTTON_H + dceS_SPACE)
#define dceS_TEXTSIZE		0.03
#define dceS_TEXTSIZESMALL 0.025

class dceS_RscPicture
{
   access = 0;
   idc = -1;
   type = CT_STATIC;
   style = ST_PICTURE;
   colorBackground[] = {0,0,0,0};
   colorText[] = {1,1,1,1};
   font = "PuristaMedium";
   sizeEx = 0;
   lineSpacing = 0;
   text = "";
   fixedWidth = 0;
   shadow = 0;
   x = 0;
   y = 0;
w = 0.06 * safezoneW;
h = 0.08 * safezoneH;
};

class dceS_RscText {
x = 0;
y = 0;
h = 0.037;
w = 0.3;
type = 0;
style = 0;
shadow = 1;
colorShadow[] = {0, 0, 0, 0.5};
font = "PuristaMedium";
SizeEx = "(			(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
text = "";
colorText[] = {1, 1, 1, 1.0};
colorBackground[] = {0, 0, 0, 0};
linespacing = 1;
};

class dceS_RscEdit
{
access = 0;
type = 2;
style = "0x00";
x = 0;
y = 0;
h = 0.04;
w = 0.2;
colorDisabled[] = {1,1,1,0.25};
colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 1};
colorText[] = {1,1,1,1};
colorSelection[] = {1,1,1,0.25};
font = "PuristaMedium";
SizeEx = "(			(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
autocomplete = "";
text = "";
size = "(			(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 35) * 1)";
shadow = 0;
canModify = 1;
};

class dceS_RscTitle : dceS_RscText {
style = 0;
sizeEx = "(			(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
colorText[] = {0.95, 0.95, 0.95, 1};
};

class dceS_RscShortcutButton {
idc = -1;
style = 0;
default = 0;
shadow = 1;
w = 0.183825;
h = "(		(		((safezoneW / safezoneH) min 1.2) / 1.2) / 20)";
color[] = {1, 1, 1, 1.0};
color2[] = {0.95, 0.95, 0.95, 1};
colorDisabled[] = {1, 1, 1, 0.25};
colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 1};
colorBackground2[] = {1, 1, 1, 1};

colorFocused[] = { 1, 1, 1, 1 };
colorBackgroundFocused[] = { 1, 1, 1, 0 };  

animTextureDefault = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\normal_ca.paa";
animTextureNormal = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\normal_ca.paa";
animTextureDisabled = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\normal_ca.paa";
animTextureOver = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\over_ca.paa";
animTextureFocused = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\focus_ca.paa";
animTexturePressed = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\down_ca.paa";
textureNoShortcut = "#(argb,8,8,3)color(0,0,0,0)";
periodFocus = 1.2;
periodOver = 0.8;

class HitZone {
	left = 0.0;
	top = 0.0;
	right = 0.0;
	bottom = 0.0;
};

class ShortcutPos {
	left = 0;
	top = "(			(		(		((safezoneW / safezoneH) min 1.2) / 1.2) / 20) - 		(			(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)) / 2";
	w = "(			(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1) * (3/4)";
	h = "(			(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
};

class TextPos {
	left = "(			(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1) * (3/4)";
	top = "(			(		(		((safezoneW / safezoneH) min 1.2) / 1.2) / 20) - 		(			(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)) / 2";
	right = 0.005;
	bottom = 0.0;
};
period = 0.4;
font = "PuristaMedium";
size = "(			(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
sizeEx = "(			(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
text = "";
soundEnter[] = {"\A3\ui_f\data\sound\onover", 0.09, 1};
soundPush[] = {"\A3\ui_f\data\sound\new1", 0.0, 0};
soundClick[] = {"\A3\ui_f\data\sound\onclick", 0.07, 1};
soundEscape[] = {"\A3\ui_f\data\sound\onescape", 0.09, 1};
action = "";

class Attributes {
	font = "PuristaMedium";
	color = "#E5E5E5";
	align = "left";
	shadow = "true";
};

class AttributesImage {
	font = "PuristaMedium";
	color = "#E5E5E5";
	align = "left";
};
};

class dceS_RscButtonMenu : dceS_RscShortcutButton {
idc = -1;
type = 16;
style = "0x02 + 0xC0";
default = 0;
shadow = 0;
x = 0;
y = 0;
w = 0.095589;
h = 0.039216;
animTextureNormal = "#(argb,8,8,3)color(1,1,1,1)";
animTextureDisabled = "#(argb,8,8,3)color(1,1,1,1)";
animTextureOver = "#(argb,8,8,3)color(1,1,1,0.5)";
animTextureFocused = "#(argb,8,8,3)color(1,1,1,1)";
animTexturePressed = "#(argb,8,8,3)color(1,1,1,1)";
animTextureDefault = "#(argb,8,8,3)color(1,1,1,1)";
colorBackground[] = {0, 0, 0, 0};
colorBackground2[] = {0, 0, 0, 0};
color[] = {1, 1, 1, 1};
color2[] = {1, 1, 1, 1};
colorText[] = {1, 1, 1, 1};
colorDisabled[] = {1, 1, 1, 0.25};
period = 1.2;
periodFocus = 1.2;
periodOver = 1.2;
size = "(			(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 35) * 1)";
sizeEx = "(			(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 35) * 1)";

class TextPos {
	left = "0.25 * 			(			((safezoneW / safezoneH) min 1.2) / 40)";
	top = "(			(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) - 		(			(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)) / 2";
	right = 0.005;
	bottom = 0.0;
};

class Attributes {
	font = "PuristaLight";
	color = "#E5E5E5";
//		align = "center";
	align = "left";
	shadow = "false";
};

class ShortcutPos{
	left = "(6.25 * 			(			((safezoneW / safezoneH) min 1.2) / 40)) - 0.0225 - 0.005";
	top = 0.005;
	w = 0.0225;
	h = 0.03;
};
};

class dceS_RscListBox
{
style = 16;
idc = -1;
type = 5;
w = 0.275;
h = 0.04;
font = "PuristaMedium";
colorSelect[] = {1, 1, 1, 1};
colorText[] = {1, 1, 1, 1};
colorBackground[] = {0.28,0.28,0.28,0.28};
colorSelect2[] = {0, 0, 0, 1};
colorSelectBackground[] = {0.95, 0.95, 0.95, 1};
colorSelectBackground2[] = {1, 1, 1, 0.5};
colorScrollbar[] = {0.2, 0.2, 0.2, 1};
arrowFull = "\A3\ui_f\data\gui\cfg\scrollbar\arrowFull_ca.paa";
arrowEmpty = "\A3\ui_f\data\gui\cfg\scrollbar\arrowEmpty_ca.paa";
wholeHeight = 0.45;
rowHeight = 0.04;
color[] = {0.7, 0.7, 0.7, 1};
colorActive[] = {0,0,0,1};
colorDisabled[] = {0,0,0,0.3};
sizeEx = 0.04;
soundSelect[] = {"",0.1,1};
soundExpand[] = {"",0.1,1};
soundCollapse[] = {"",0.1,1};
maxHistoryDelay = 1;
autoScrollSpeed = -1;
autoScrollDelay = 5;
autoScrollRewind = 0;

class ListScrollBar
{
	color[] = {1, 1, 1, 0.6};
	colorActive[] = {1, 1, 1, 1};
	colorDisabled[] = {1, 1, 1, 0.3};
	thumb = "\A3\ui_f\data\gui\cfg\scrollbar\thumb_ca.paa";
	arrowFull = "\A3\ui_f\data\gui\cfg\scrollbar\arrowFull_ca.paa";
	arrowEmpty = "\A3\ui_f\data\gui\cfg\scrollbar\arrowEmpty_ca.paa";
	border = "\A3\ui_f\data\gui\cfg\scrollbar\border_ca.paa";
};
};

class dceS_SquadDialog
{
idd = 100;
name= "DCE Squad v0.01";
movingEnable = false;
enableSimulation = true;
onLoad = "";

class controlsBackground
{
	class dceS_Frame:dceS_RscText {
		colorBackground[] = {0, 0, 0, 0.7};
		idc = -1;
		x = dceS_X;
		y = dceS_Y;
		w = dceS_W;
		h = dceS_H;
		//h = dceS_H * 0.7;
	};
};

class controls
{
	class dceS_SqdTextGroup : dceS_RscText
	{
		idc = 101;
		text = "SQUAD";
		sizeEx = dceS_TEXTSIZESMALL;
		x = dceS_COL;
		y = dceS_ROW;
		w = dceS_BUTTON_W * 1;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonF1 : dceS_RscButtonMenu
	{
		idc = -1;
		text = "F1";
		onButtonClick = "[""F1""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 1);
		y = dceS_ROW;
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonF2 : dceS_RscButtonMenu
	{
		idc = -1;
		text = "F2";
		onButtonClick = "[""F2""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 2);
		y = dceS_ROW;
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonF3 : dceS_RscButtonMenu
	{
		idc = -1;
		text = "F3";
		onButtonClick = "[""F3""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 3);
		y = dceS_ROW;
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonF4 : dceS_RscButtonMenu
	{
		idc = -1;
		text = "F4";
		onButtonClick = "[""F4""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 4);
		y = dceS_ROW;
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonCommand : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Command";
		onButtonClick = "[""Command""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 7);
		y = dceS_ROW;
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonArtillery : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Artillery";
		onButtonClick = "[""Artillery""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 6);
		y = dceS_ROW;
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonAir : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Air";
		onButtonClick = "[""Air""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 5);
		y = dceS_ROW;
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonContact : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Contact";
		onButtonClick = "[""Contact""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL;
		y = dceS_ROW + (dceS_ROWINC * 1);
		w = (dceS_BUTTON_W * 1);
		h = (dceS_BUTTON_H * 1);
	};

	class dceS_SqdButtonHaltAndDown : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Halt And Down";
		onButtonClick = "[""HaltAndDown""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL;
		y = dceS_ROW + (dceS_ROWINC * 2);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonPopSmoke : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Pop Smoke";
		onButtonClick = "[""PopSmoke""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL;
		y = dceS_ROW + (dceS_ROWINC * 4);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonPatrol : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Patrol";
		onButtonClick = "[""Patrol""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL;
		y = dceS_ROW + (dceS_ROWINC * 3);
		w = (dceS_BUTTON_W * 1);
		h = (dceS_BUTTON_H * 1);
	};

	class dceS_SqdButtonBehaviourCombat : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Behaviour Combat";
		onButtonClick = "[""BehaviourCombat""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 1);
		y = dceS_ROW + (dceS_ROWINC * 1);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonBehaviourAware : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Behaviour Aware";
		onButtonClick = "[""BehaviourAware""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 1);
		y = dceS_ROW + (dceS_ROWINC * 2);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonBehaviourStealth : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Behaviour Stealth";
		onButtonClick = "[""BehaviourStealth""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 1);
		y = dceS_ROW + (dceS_ROWINC * 3);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonBehaviourSafe : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Behaviour Safe";
		onButtonClick = "[""BehaviourSafe""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 1);
		y = dceS_ROW + (dceS_ROWINC * 4);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonBehaviourCareless : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Behaviour Careless";
		onButtonClick = "[""BehaviourCareless""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 1);
		y = dceS_ROW + (dceS_ROWINC * 5);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonSuppress : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Suppress";
		onButtonClick = "[""Suppress""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 7);
		y = dceS_ROW + (dceS_ROWINC * 4);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonGarrison : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Garrison";
		onButtonClick = "[""Garrison""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 7);
		y = dceS_ROW + (dceS_ROWINC * 5);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonViewDown : dceS_RscButtonMenu
	{
		idc = -1;
		text = "View - ";
		onButtonClick = "[""ViewDown""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 7);
		y = dceS_ROW + (dceS_ROWINC * 6);
		w = dceS_BUTTON_W / 2;
		h = dceS_BUTTON_H;
	};
	class dceS_SqdButtonViewUp : dceS_RscButtonMenu
	{
		idc = -1;
		text = "View + ";
		onButtonClick = "[""ViewUp""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 7.5);
		y = dceS_ROW + (dceS_ROWINC * 6);
		w = dceS_BUTTON_W / 2;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonViewReset : dceS_RscButtonMenu
	{
		idc = -1;
		text = "View Reset";
		onButtonClick = "[""ViewReset""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 7);
		y = dceS_ROW + (dceS_ROWINC * 7);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonModeRed : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Mode Red";
		onButtonClick = "[""ModeRed""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 2);
		y = dceS_ROW + (dceS_ROWINC * 1);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonModeYellow : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Mode Yellow";
		onButtonClick = "[""ModeYellow""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 2);
		y = dceS_ROW + (dceS_ROWINC * 2);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonModeWhite : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Mode White";
		onButtonClick = "[""ModeWhite""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 2);
		y = dceS_ROW + (dceS_ROWINC * 3);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonModeGreen : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Mode Green";
		onButtonClick = "[""ModeGreen""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 2);
		y = dceS_ROW + (dceS_ROWINC * 4);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonModeBlue : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Mode Blue";
		onButtonClick = "[""ModeBlue""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 2);
		y = dceS_ROW + (dceS_ROWINC * 5);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonMap : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Map";
		onButtonClick = "[""Map""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 7);
		y = dceS_ROW + (dceS_ROWINC * 1);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};
//// COMMENT OUT BEFORE RELEASE
/*
	class dceS_SqdButtonTest : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Test";
		onButtonClick = "[] execVM 'DCE\Scripts\Command\Test.sqf'";
		x = dceS_COL + (dceS_COLINC * 2);
		y = dceS_ROW + (dceS_ROWINC * 0);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};
*/		
	class dceS_SqdButtonSwitch : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Switch";
		onButtonClick = "[] execVM 'DCE\Scripts\Squad\Switch.sqf'";
		x = dceS_COL + (dceS_COLINC * 7);
		y = dceS_ROW + (dceS_ROWINC * 2);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonFormLine : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Form Line";
		onButtonClick = "[""Line""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 4);
		y = dceS_ROW + (dceS_ROWINC * 1);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonFormColumn : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Form Column";
		onButtonClick = "[""Column""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 4);
		y = dceS_ROW + (dceS_ROWINC * 2);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonFormWedge : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Form Wedge";
		onButtonClick = "[""Wedge""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 4);
		y = dceS_ROW + (dceS_ROWINC * 3);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonFormFile : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Form File";
		onButtonClick = "[""File""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 4);
		y = dceS_ROW + (dceS_ROWINC * 4);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonFormDiamond : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Form Diamond";
		onButtonClick = "[""Diamond""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 4);
		y = dceS_ROW + (dceS_ROWINC * 5);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonFormStagColumn : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Form Stag' Column";
		onButtonClick = "[""StagColumn""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 4);
		y = dceS_ROW + (dceS_ROWINC * 6);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonFormVee : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Form Vee";
		onButtonClick = "[""Vee""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 4);
		y = dceS_ROW + (dceS_ROWINC * 7);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonFormEchLeft : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Form Ech' Left";
		onButtonClick = "[""EchLeft""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 4);
		y = dceS_ROW + (dceS_ROWINC * 8);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonFormEchRight : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Form Ech' Right";
		onButtonClick = "[""EchRight""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 4);
		y = dceS_ROW + (dceS_ROWINC * 9);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonStanceStand : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Stance Stand";
		onButtonClick = "[""Stand""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 3);
		y = dceS_ROW + (dceS_ROWINC * 1);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonStanceProne : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Stance Prone";
		onButtonClick = "[""Prone""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 3);
		y = dceS_ROW + (dceS_ROWINC * 2);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonStanceKneel : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Stance Kneel";
		onButtonClick = "[""Kneel""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 3);
		y = dceS_ROW + (dceS_ROWINC * 3);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonStanceAuto : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Stance Auto";
		onButtonClick = "[""Auto""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 3);
		y = dceS_ROW + (dceS_ROWINC * 4);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonHalt : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Halt";
		onButtonClick = "[""Halt""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 5);
		y = dceS_ROW + (dceS_ROWINC * 1);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonHaltDismounts : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Halt Dismount";
		onButtonClick = "[""HaltDismounts""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 5);
		y = dceS_ROW + (dceS_ROWINC * 2);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonHaltVehicles : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Halt Vehicles";
		onButtonClick = "[""HaltVehicles""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 5);
		y = dceS_ROW + (dceS_ROWINC * 3);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonFollow : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Follow";
		onButtonClick = "[""Follow""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 5);
		y = dceS_ROW + (dceS_ROWINC * 5);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonFollowDismounts : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Follow Dismounts";
		onButtonClick = "[""FollowDismounts""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 5);
		y = dceS_ROW + (dceS_ROWINC * 6);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonFollowVehicles : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Follow Vehicles";
		onButtonClick = "[""FollowVehicles""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 5);
		y = dceS_ROW + (dceS_ROWINC * 7);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonDebusAll : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Debus All";
		onButtonClick = "[""DebusAll""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 6);
		y = dceS_ROW + (dceS_ROWINC * 1);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonDebusCargo : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Debus Cargo";
		onButtonClick = "[""DebusCargo""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 6);
		y = dceS_ROW + (dceS_ROWINC * 2);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonEjectAll : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Eject All";
		onButtonClick = "[""EjectAll""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 6);
		y = dceS_ROW + (dceS_ROWINC * 3);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonExit : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Exit";
		onButtonClick = "[""Exit""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 7);
		y = dceS_ROW + (dceS_ROWINC * 10);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdListGroupMembers : dceS_RscListBox 
	{
		idc = 110;
		text = "Select Member";
		SizeEx = "(			(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 0.65)";
		onLBSelChanged = "[] execVM 'DCE\Scripts\Squad\SelectMember.sqf'";

		x = dceS_COL;
		y = dceS_ROW + (dceS_ROWINC * 6);
		w = dceS_BUTTON_W + (dceS_COLINC * 2);
		h = dceS_BUTTON_H + (dceS_ROWINC * 4);
	};

	class dceS_SqdButtonHealSelf : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Heal Self";
		onButtonClick = "[""HealSelf""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 3);
		y = dceS_ROW + (dceS_ROWINC * 6);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonHealOther : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Heal Other";
		onButtonClick = "[""HealOther""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 3);
		y = dceS_ROW + (dceS_ROWINC * 7);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonHealSelfAll : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Heal All";
		onButtonClick = "[""HealSelfAll""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 3);
		y = dceS_ROW + (dceS_ROWINC * 8);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonUnstuck : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Unstuck";
		onButtonClick = "[""Unstuck""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 3);
		y = dceS_ROW + (dceS_ROWINC * 9);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonRefresh : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Refresh";
		onButtonClick = "[] execVM 'DCE\Scripts\Squad\ListGroupMembers.sqf'";
		x = dceS_COL + (dceS_COLINC * 3);
		y = dceS_ROW + (dceS_ROWINC * 10);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonHelp : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Help";
		onButtonClick = "[] execVM 'DCE\Scripts\Squad\Help.sqf'";
		x = dceS_COL + (dceS_COLINC * 7);
		y = dceS_ROW + (dceS_ROWINC * 9);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};

	class dceS_SqdButtonTarget : dceS_RscButtonMenu
	{
		idc = -1;
		text = "Target";
		onButtonClick = "[""Target""] execVM 'DCE\Scripts\Squad\Buttons.sqf'";
		x = dceS_COL + (dceS_COLINC * 7);
		y = dceS_ROW + (dceS_ROWINC * 3);
		w = dceS_BUTTON_W;
		h = dceS_BUTTON_H;
	};
};
};
 

@Drongo69

Is it me or is there a way to get ai into a vehicle. I've watched videos, tried in the editor but for the life of me i can't get ai in vehicles! Anyone got a simple editor mission or some tips on how to do it. Frustratingly yours......! :(

Share this post


Link to post
Share on other sites
Guest

New version frontpaged on the Armaholic homepage.

==================================================

You are not registered on Armaholic, or at least not that we are aware of. In the future we offer the possibility to authors to maintain their own pages.

If you wish to be able to do this as well please register on Armaholic and let me know about it.

This is not mandatory at all! Only if you wish to control your own content you are welcome to join, otherwise we will continue to follow your work like we have always done ;)

When you have any questions already feel free to PM or email me!

Share this post


Link to post
Share on other sites

Thanks Foxhound.

@Law-Giver

I usually go into BIS squad command mode, then use the F keys and the middle mouse button to tell them to get in. It's probably easy to make a "board my vehicle" button too.

Share this post


Link to post
Share on other sites
@Law-Giver

I usually go into BIS squad command mode, then use the F keys and the middle mouse button to tell them to get in. It's probably easy to make a "board my vehicle" button too.

It's a shame to revert to the above method. Old school it is then. ;)

Share this post


Link to post
Share on other sites

So I have a little issue. The background for the icons/text does not stretch to cover all icons/texts. Am I doing something wrong?

Share this post


Link to post
Share on other sites
Thought i'd have a go at it as i liked the text version as it was easier. Although i do like the icons as well. Here's my effort. ;)

http://images.tinypic.pl/i/00622/q3pgszwrb5gk_t.jpg

I'll post the edited code if Drongo69 is okay with that. Saves Drongo69 having to do it. ;)

Any chance of posting that code?? I would like to have the text version also. Thanks.

Share this post


Link to post
Share on other sites
So I have a little issue. The background for the icons/text does not stretch to cover all icons/texts. Am I doing something wrong?

No, I my code probably does not scale properly to different resolutions. Can you post a screenshot?

Share this post


Link to post
Share on other sites

hello thank you for the great addon!

i have two issues: suppress and pop smoke doesnt seem to work.

the supressing option just causes the unit to say supressing fire or something and nothing happens, same with pop smoke.

am i missing something?

i have cba btw

Edited by nuker22110

Share this post


Link to post
Share on other sites

@EasyB

The easiest way to "fix" this is to edit DCE\Menus\SquadMenuIcon.hpp. Find this section:

	class controlsBackground
{
	class dceS_Frame:dceS_RscText {
		colorBackground[] = {0, 0, 0, 0.7};
		idc = -1;
		x = dceS_X;
		y = dceS_Y;
		w = dceS_W;
		h = dceS_H;
		//h = dceS_H * 0.7;
	};
};

and comment it all out. The keys will not be aligned to the center, but the effect will be less jarring. I will see if I can find a better solution in a future release.

@nuker22110

"Suppress" just uses the BIS suppressFor script command. I'll look into the pop smoke command, though it will only work with vanilla smoke grenades, not modded ones. To change that, run a script to add the desired smoke grenade types to this array (wait until at least 5 seconds have passed since mission start):

dceSmokeGrenades = ["SmokeShellRed","SmokeShell","SmokeShellGreen","SmokeShellYellow","SmokeShellPurple","SmokeShellBlue","SmokeShellOrange"];

Share this post


Link to post
Share on other sites
@EasyB

The easiest way to "fix" this is to edit DCE\Menus\SquadMenuIcon.hpp. Find this section:

	class controlsBackground
{
	class dceS_Frame:dceS_RscText {
		colorBackground[] = {0, 0, 0, 0.7};
		idc = -1;
		x = dceS_X;
		y = dceS_Y;
		w = dceS_W;
		h = dceS_H;
		//h = dceS_H * 0.7;
	};
};

and comment it all out. The keys will not be aligned to the center, but the effect will be less jarring. I will see if I can find a better solution in a future release.

@nuker22110

"Suppress" just uses the BIS suppressFor script command. I'll look into the pop smoke command, though it will only work with vanilla smoke grenades, not modded ones. To change that, run a script to add the desired smoke grenade types to this array (wait until at least 5 seconds have passed since mission start):

dceSmokeGrenades = ["SmokeShellRed","SmokeShell","SmokeShellGreen","SmokeShellYellow","SmokeShellPurple","SmokeShellBlue","SmokeShellOrange"];

Oh so supression fire must be used on an enemy? it cannot be used in a general direction?

i am using these all on nato vanilla infantry units, and the smoke nades still dont work

Share this post


Link to post
Share on other sites

Is there a chance to have "copy my stance" and "fire on my mark" commands? I think it would also be useful to have button to assign AI teammates to red, green etc. teams!

I do not understand the difference between "hold fire, engage" and "hold" fire buttons. Can you please explain it to me?

Is there a way to add custom commands? What about F1 to F4 buttons?

Thanks!! :)

Edited by D4NI3L3

Share this post


Link to post
Share on other sites

Copy my stance is probably possible, I'll look into it. By "fire on my mark" do you mean "fire when I fire"?

I think it would also be useful to have button to assign AI teammates to red, green etc. teams!

Is this possible to do with scripts?

I do not understand the difference between "hold fire, engage" and "hold" fire buttons

https://community.bistudio.com/wiki/Mission_Editor:_Waypoints#Combat_Mode

What about F1 to F4 buttons

See the readme, you can assign a command to each button.

I have just updated my arty, I'll take a look at overhauling this next.

Share this post


Link to post
Share on other sites
Copy my stance is probably possible, I'll look into it. By "fire on my mark" do you mean "fire when I fire"?

Is this possible to do with scripts?

https://community.bistudio.com/wiki/Mission_Editor:_Waypoints#Combat_Mode

See the readme, you can assign a command to each button.

I have just updated my arty, I'll take a look at overhauling this next.

Yes I mean that, "fire when I fire", it's very useful! :D

Assign color to the team it is possible trough command menu. It would also be good to have it on your command window.

Thanks for the explanation about white mode, I didn't know that.

I'll watch the readme.

Thank's for the answer and keep up the good work! :)

Share this post


Link to post
Share on other sites

First post updated with version 0152. It is only necessary if you use my artillery system and have the latest version. Changes:

  • Updated detection of the new version of Drongo's Artillery

Share this post


Link to post
Share on other sites
Guest

New version frontpaged on the Armaholic homepage.

==================================================

You are not registered on Armaholic, or at least not that we are aware of. In the future we offer the possibility to authors to maintain their own pages.

If you wish to be able to do this as well please register on Armaholic and let me know about it.

This is not mandatory at all! Only if you wish to control your own content you are welcome to join, otherwise we will continue to follow your work like we have always done ;)

When you have any questions already feel free to PM or email me!

Share this post


Link to post
Share on other sites

First post updated with version 016. Changes:

  • Removed outdated "server loop" code for mounting and implemented BIS_fnc_execVM/BIS_fnc_MP code
  • Implemented "On my mark" (fire when I fire) (thanks to D4NI3L3 for the idea)
  • Implemented "Copy my stance" (thanks to D4NI3L3 for the idea)
  • Fixed the broken "Pop smoke" command

Share this post


Link to post
Share on other sites
Guest

New version frontpaged on the Armaholic homepage.

==================================================

You are not registered on Armaholic, or at least not that we are aware of. In the future we offer the possibility to authors to maintain their own pages.

If you wish to be able to do this as well please register on Armaholic and let me know about it.

This is not mandatory at all! Only if you wish to control your own content you are welcome to join, otherwise we will continue to follow your work like we have always done ;)

When you have any questions already feel free to PM or email me!

Share this post


Link to post
Share on other sites
First post updated with version 016. Changes:

  • Removed outdated "server loop" code for mounting and implemented BIS_fnc_execVM/BIS_fnc_MP code
  • Implemented "On my mark" (fire when I fire) (thanks to D4NI3L3 for the idea)
  • Implemented "Copy my stance" (thanks to D4NI3L3 for the idea)
  • Fixed the broken "Pop smoke" command

Nice job Drongo69, smoke works.....nice. ;)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×