Hallo, wir haben aktuell das Problem, bei dem Z Menü was wir derzeit benutzen das alles funktioniert bis auf die Auswahlbuttons (Spieler auswählen).
Ich hoffe mir kann einer helfen.
player_inv
////Interface by Mediaforge/MatzeDesigns, GUI by Matthias Burns/////
#include "player_sys.sqf"
class playerSettings {
idd = playersys_DIALOG;
name = "playerSettings";
movingenable = 1;
enablesimulation = 1;
class controlsBackground
{
class MainBackground : Life_RscPicture
{
text = "textures\zmenu.paa";
idc = -1;
x = 0.128125 * safezoneW + safezoneX;
y = -0.126843657817109 * safezoneH + safezoneY;
w = 0.7796875 * safezoneW;
h = 1.40412979351032 * safezoneH;
};
};
class controls
{
class itemList : Life_RscListBox
{
idc = item_list;
sizeex = 0.030;
x = 0.578125 * safezoneW + safezoneX;
y = 0.44346116027532 * safezoneH + safezoneY;
w = 0.2421875 * safezoneW;
h = 0.32448377581121 * safezoneH;
colorbackground[] = {1,1,1,0};
colortext[] = {1,1,1,1};
};
class moneyEdit : Life_RscEdit
{
idc = 2018;
text = "1";
sizeex = 0.030;
x = 0.3371875 * safezoneW + safezoneX;
y = 0.771878072763028 * safezoneH + safezoneY;
w = 0.071666666666667 * safezoneW;
h = 0.0344149459193708 * safezoneH;
colorbackground[] = {1,1,1,0};
colortext[] = {1,1,1,1};
};
class moneyStatusInfo : Life_RscStructuredText
{
idc = 2015;
sizeex = 0.020;
text = "";
x = 0.259895833333333 * safezoneW + safezoneX;
y = 0.504424778761062 * safezoneH + safezoneY;
w = 0.165625 * safezoneW;
h = 0.202556538839725 * safezoneH;
};
class NearPlayers : Life_RscCombo
{
idc = 2022;
x = 0.255208333333333 * safezoneW + safezoneX;
y = 0.771878072763028 * safezoneH + safezoneY;
w = 0.0807291666666667 * safezoneW;
h = 0.0344149459193708 * safezoneH;
colorselect[] = {0.141176470588235,0.133333333333333,0.133333333333333,1};
coloractive[] = {0.501960784313725,0.501960784313725,0.501960784313725,1};
color[] = {1,1,1,0};
};
class moneyDrop : Life_RscButtonMenu
{
idc = 2001;
text = "";
onbuttonclick = "[] call life_fnc_giveMoney";
sizeex = 0.025;
x = 0.184969065656565 * safezoneW + safezoneX;
y = 0.771878072763028 * safezoneH + safezoneY;
w = 0.068155934343435 * safezoneW;
h = 0.0344149459193708 * safezoneH;
colorbackground[] = {1,1,1,0};
colorbackground2[] = {1,1,1,0};
colorbackgroundfocused[] = {1,1,1,0};
color[] = {1,1,1,0};
colorfocused[] = {1,1,1,0};
color2[] = {1,1,1,0};
colortext[] = {1,1,1,0};
tooltipcolorshade[] = {1,1,1,0};
tooltipcolorbox[] = {1,1,1,0};
tooltipcolortext[] = {1,1,1,0};
};
class itemEdit : Life_RscEdit
{
idc = item_edit;
text = "1";
sizeex = 0.030;
x = 0.731770833333334 * safezoneW + safezoneX;
y = 0.771878072763028 * safezoneH + safezoneY;
w = 0.0203124999999998 * safezoneW;
h = 0.0344149459193708 * safezoneH;
colorbackground[] = {1,1,1,0};
colortext[] = {1,1,1,1};
};
class iNearPlayers : Life_RscCombo
{
idc = 2023;
x = 0.647916666666667 * safezoneW + safezoneX;
y = 0.771878072763028 * safezoneH + safezoneY;
w = 0.0833333333333331 * safezoneW;
h = 0.0344149459193708 * safezoneH;
};
class DropButton : Life_RscButtonMenu
{
idc = 2002;
text = "";
onbuttonclick = "[] call life_fnc_giveItem;";
x = 0.578125 * safezoneW + safezoneX;
y = 0.771878072763028 * safezoneH + safezoneY;
w = 0.0697916666666667 * safezoneW;
h = 0.0344149459193708 * safezoneH;
colorbackground[] = {1,1,1,0};
colorbackgroundfocused[] = {1,1,1,0};
colorbackground2[] = {1,1,1,0};
color[] = {1,1,1,0};
colorfocused[] = {1,1,1,0};
color2[] = {1,1,1,0};
colortext[] = {1,1,1,0};
tooltipcolorshade[] = {1,1,1,0};
tooltipcolortext[] = {1,1,1,0};
tooltipcolorbox[] = {1,1,1,0};
};
class UseButton : Life_RscButtonMenu
{
text = "";
onbuttonclick = "[] call life_fnc_useItem;";
x = 0.578125 * safezoneW + safezoneX;
y = 0.807276302851524 * safezoneH + safezoneY;
w = 0.0697916666666667 * safezoneW;
h = 0.0334316617502455 * safezoneH;
idc = 1000;
colorbackground[] = {1,1,1,0};
colorbackgroundfocused[] = {1,1,1,0};
colorbackground2[] = {1,1,1,0};
color[] = {1,1,1,0};
colorfocused[] = {1,1,1,0};
color2[] = {1,1,1,0};
colortext[] = {1,1,1,0};
tooltipcolorshade[] = {1,1,1,0};
tooltipcolorbox[] = {1,1,1,0};
tooltipcolortext[] = {1,1,1,0};
};
class RemoveButton : Life_RscButtonMenu
{
text = "";
onbuttonclick = "[] call life_fnc_removeItem;";
x = 0.578125 * safezoneW + safezoneX;
y = 0.843657817109145 * safezoneH + safezoneY;
w = 0.0697916666666667 * safezoneW;
h = 0.0363815142576204 * safezoneH;
idc = 1000;
colorbackground[] = {1,1,1,0};
colorbackgroundfocused[] = {1,1,1,0};
colorbackground2[] = {1,1,1,0};
color[] = {1,1,1,0};
colorfocused[] = {1,1,1,0};
color2[] = {1,1,1,0};
colortext[] = {1,1,1,0};
tooltipcolortext[] = {1,1,1,0};
tooltipcolorbox[] = {1,1,1,0};
tooltipcolorshade[] = {1,1,1,0};
};
class ButtonClose : Life_RscButtonMenu
{
text = "";
onbuttonclick = "closeDialog 0;";
x = 0.838020833333333 * safezoneW + safezoneX;
y = 0.0972664700098324 * safezoneH + safezoneY;
w = 0.0532916666666668 * safezoneW;
h = 0.0797246804326451 * safezoneH;
idc = 1000;
colorbackground[] = {1,1,1,0};
colorbackgroundfocused[] = {1,1,1,0};
colorbackground2[] = {1,1,1,0};
color[] = {1,1,1,0};
colortext[] = {1,1,1,0};
color2[] = {1,1,1,0};
colorfocused[] = {1,1,1,0};
tooltipcolorshade[] = {1,1,1,0};
tooltipcolorbox[] = {1,1,1,0};
tooltipcolortext[] = {1,1,1,0};
};
class ButtonSettings : Life_RscButtonMenu
{
text = "";
onbuttonclick = "[] call life_fnc_settingsMenu;";
x = 0.708854166666666 * safezoneW + safezoneX;
y = 0.278269419862341 * safezoneH + safezoneY;
w = 0.113020833333334 * safezoneW;
h = 0.0471976401179945 * safezoneH;
idc = 1000;
colorbackground[] = {1,1,1,0};
colorbackgroundfocused[] = {1,1,1,0};
colorbackground2[] = {1,1,1,0};
color[] = {1,1,1,0};
colorfocused[] = {1,1,1,0};
color2[] = {1,1,1,0};
colortext[] = {1,1,1,0};
tooltipcolorshade[] = {1,1,1,0};
tooltipcolortext[] = {1,1,1,0};
tooltipcolorbox[] = {1,1,1,0};
};
class ButtonMyGang : Life_RscButtonMenu
{
idc = 2011;
text = "";
onbuttonclick = "if (isNil ""life_action_gangInUse"") then {if (isNil {(group player) getVariable ""gang_owner""}) then {createDialog ""Life_Create_Gang_Diag"";} else {[] spawn life_fnc_gangMenu;};};";
x = 0.447083333333333 * safezoneW + safezoneX;
y = 0.278269419862341 * safezoneH + safezoneY;
w = 0.111770833333334 * safezoneW;
h = 0.0471976401179945 * safezoneH;
colorbackground[] = {1,1,1,0};
colorbackgroundfocused[] = {1,1,1,0};
colorbackground2[] = {1,1,1,0};
color[] = {1,1,1,0};
colorfocused[] = {1,1,1,0};
color2[] = {1,1,1,0};
colortext[] = {1,1,1,0};
tooltipcolorshade[] = {1,1,1,0};
tooltipcolorbox[] = {1,1,1,0};
tooltipcolortext[] = {1,1,1,0};
};
class Licenses_Menu : Life_RscControlsGroup
{
w = 0.111770833333334 * safezoneW;
h = 0.32448377581121 * safezoneH;
x = 0.447083333333333 * safezoneW + safezoneX;
y = 0.44346116027532 * safezoneH + safezoneY;
idc = 1000;
class Controls {
class Life_Licenses: Life_RscStructuredText
{
idc = 2014;
sizeex = 0.020;
text = "";
x = 0;
y = 0;
w = 0.27;
h = 0.65;
};
};
};
class ButtonGangList : Life_RscButtonMenu
{
idc = 2012;
text = "$STR_PM_WantedList";
onbuttonclick = "[] call life_fnc_wantedMenu";
x = 0.578125 * safezoneW + safezoneX;
y = 0.278269419862341 * safezoneH + safezoneY;
w = 0.111979166666667 * safezoneW;
h = 0.0471976401179945 * safezoneH;
};
class ButtonKeys : Life_RscButtonMenu
{
idc = 2013;
text = "$STR_PM_KeyChain";
onbuttonclick = "createDialog ""Life_key_management"";";
x = 0.317395833333333 * safezoneW + safezoneX;
y = 0.278269419862341 * safezoneH + safezoneY;
w = 0.110729166666667 * safezoneW;
h = 0.0471976401179945 * safezoneH;
tooltipcolorshade[] = {1,1,1,0};
tooltipcolorbox[] = {1,1,1,0};
tooltipcolortext[] = {1,1,1,0};
color2[] = {1,1,1,0};
colorfocused[] = {1,1,1,0};
colortext[] = {1,1,1,0};
color[] = {1,1,1,0};
colorbackground2[] = {1,1,1,0};
colorbackgroundfocused[] = {1,1,1,0};
colorbackground[] = {1,1,1,0};
colordisabled[] = {1,1,1,0};
};
class ButtonCell : Life_RscButtonMenu
{
idc = 2014;
text = "Anrufen";
onbuttonclick = "createDialog ""Life_my_smartphone"";";
x = 0.184969065656565 * safezoneW + safezoneX;
y = 0.278269419862341 * safezoneH + safezoneY;
w = 0.111905934343435 * safezoneW;
h = 0.0471976401179945 * safezoneH;
colorbackground[] = {1,1,1,0};
colorfocused[] = {1,1,1,0};
color2[] = {1,1,1,0};
colorbackgroundfocused[] = {1,1,1,0};
colorbackground2[] = {1,1,1,0};
color[] = {1,1,1,0};
colortext[] = {1,1,1,0};
tooltipcolorshade[] = {1,1,1,0};
tooltipcolorbox[] = {1,1,1,0};
tooltipcolortext[] = {1,1,1,0};
};
class ButtonAdminMenu : Life_RscButtonMenu
{
idc = 2021;
text = "$STR_PM_AdminMenu";
onButtonClick = "abcdefghijklmnopqrstuvwxy = true";
x = 0.578125 * safezoneW + safezoneX;
y = 0.331366764995084 * safezoneH + safezoneY;
w = 0.111979166666667 * safezoneW;
h = 0.0471976401179945 * safezoneH;
};
class aapps_call : Life_RscButtonMenu {
idc = 4111;
text = "$STR_DC_dispatchcenter";
onButtonClick = "0 call life_call_start";
x = 0.1 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
y = 0.885;
w = (6.25 / 40);
h = (1 / 25);
};
class ButtonSyncData : Life_RscButtonMenu
{
text = "";
onbuttonclick = "[] call SOCK_fnc_syncData;";
x = 0.827083333333333 * safezoneW + safezoneX;
y = 0.827925270403147 * safezoneH + safezoneY;
w = 0.08125 * safezoneW;
h = 0.136002949852507 * safezoneH;
idc = 1000;
tooltipcolorshade[] = {1,1,1,0};
tooltipcolorbox[] = {1,1,1,0};
tooltipcolortext[] = {1,1,1,0};
colortext[] = {1,1,1,0};
color2[] = {1,1,1,0};
colorfocused[] = {1,1,1,0};
color[] = {1,1,1,0};
colorbackground2[] = {1,1,1,0};
colorbackgroundfocused[] = {1,1,1,0};
colorbackground[] = {1,1,1,0};
};
};
};