Hallo Liebe NN-User,
vielleicht habt Ihr eine Lösung für mich...
Ich wollte das Z-Menü umbauen, was mir von der UI her auch gelungen ist die meisten Funktionen sind auch da wie z.B.: "Finanzen, Lizenzen, Admin-Menü, Einstellungen, Meine Gang, Schlüssel, Telefon sowie Speichern und Schließen...
Was aber nicht mehr geht ist das ich die V-Items angezeigt bekomme Sprich keine Aktuellen Gegenstände
Was habe ich falsch gemacht ?
Weiß mir nicht mehr zu helfen...
Im Anhang hefte ich euch mal die player_inv.hpp an
Vielleicht fällt euch ja sofort auf welchen FEHLER ich gemacht habe
Liebe Grüße
Altis-Gameland
Code: player_inv.hpp
#include "player_sys.sqf"
class playerSettings {
idd = playersys_DIALOG;
movingenable = 1;
enablesimulation = 1;
class controlsBackground
{
class life_RscPicture0 : life_RscPicture
{
x = 0.1 * safezoneW + safezoneX;
y = 0.196523178807947 * safezoneH + safezoneY;
w = 0.803125 * safezoneW;
h = 0.70697729422895 * safezoneH;
idc = 1001;
text = "textures\test.paa";
};
class moneyEdit : Life_RscEdit
{
idc = 2018;
text = "1";
sizeex = 0.030;
x = 0.218958333333334 * safezoneW + safezoneX;
y = 0.34809839167455 * safezoneH + safezoneY;
w = 0.104479166666667 * safezoneW;
h = 0.03;
};
class itemList : Life_RscListBox
{
idc = 7294;
sizeex = 0.030;
x = 0.637708333333333 * safezoneW + safezoneX;
y = 0.50236518448439 * safezoneH + safezoneY;
h = 0.236518448438978 * safezoneH;
w = 0.252395833333333 * safezoneW;
};
class Title : Life_RscTitle
{
colorbackground[] = {0, 0, 0, 0};
idc = -1;
text = "";
x = 0.1;
y = 0.2;
w = 0.8;
h = (1 / 25);
};
class moneyStatusInfo : Life_RscStructuredText
{
idc = 2015;
sizeex = 0.020;
x = 0.1609375 * safezoneW + safezoneX;
y = 0.281929990539262 * safezoneH + safezoneY;
w = 0.3515625 * safezoneW;
h = 0.181646168401135 * safezoneH;
};
class PlayersName : Title
{
idc = 9260;
style = 1;
text = "";
};
};
class controls
{
class NearPlayers : Life_RscCombo
{
idc = 2022;
x = 0.328854166666666 * safezoneW + safezoneX;
y = 0.348363292336802 * safezoneH + safezoneY;
w = 0.0966666666666667 * safezoneW;
h = 0.03;
};
class moneyDrop : Life_RscButtonMenu
{
idc = 2001;
text = "$STR_Global_Give";
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])", 0.5};
onbuttonclick = "[] call life_fnc_giveMoney";
sizeex = 0.025;
x = 0.430833333333333 * safezoneW + safezoneX;
y = 0.348363292336802 * safezoneH + safezoneY;
w = 0.0764583333333333 * safezoneW;
h = 0.03 * safezoneH;
};
class itemEdit : Life_RscEdit
{
idc = 8867;
text = "1";
sizeex = 0.030;
x = 0.65125 * safezoneW + safezoneX;
y = 0.743505203405866 * safezoneH + safezoneY;
w = 0.0826041666666666 * safezoneW;
h = 0.0295458845789972 * safezoneH;
};
class iNearPlayers : Life_RscCombo
{
idc = 2023;
x = 0.739791666666667 * safezoneW + safezoneX;
y = 0.743505203405866 * safezoneH + safezoneY;
w = 0.133645833333333 * safezoneW;
h = 0.0295458845789972 * safezoneH;
};
class DropButton : Life_RscButtonMenu
{
idc = 2002;
text = "$STR_Global_Give";
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])", 0.5};
onbuttonclick = "[] call life_fnc_giveItem;";
x = 0.805208333333333 * safezoneW + safezoneX;
y = 0.786092715231788 * safezoneH + safezoneY;
w = 0.0686458333333333 * safezoneW;
h = 0.028476821192053 * safezoneH;
};
class UseButton : Life_RscButtonMenu
{
text = "$STR_Global_Use";
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])", 0.5};
onbuttonclick = "[] call life_fnc_useItem;";
x = 0.734375 * safezoneW + safezoneX;
y = 0.786092715231788 * safezoneH + safezoneY;
w = 0.0686458333333333 * safezoneW;
h = 0.028476821192053 * safezoneH;
idc = 1000;
};
class RemoveButton : Life_RscButtonMenu
{
text = "$STR_Global_Remove";
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])", 0.5};
onbuttonclick = "[] call life_fnc_removeItem;";
x = 0.65125 * safezoneW + safezoneX;
y = 0.786092715231788 * safezoneH + safezoneY;
w = 0.0801773989898991 * safezoneW;
h = 0.028476821192053 * safezoneH;
idc = 1000;
};
class ButtonClose : Life_RscButtonMenu
{
text = "$STR_Global_Close";
onbuttonclick = "closeDialog 0;";
x = 0.643229166666667 * safezoneW + safezoneX;
y = 0.847682119205298 * safezoneH + safezoneY;
w = 0.0656249999999996 * safezoneW;
h = 0.0247682119205296 * safezoneH;
idc = 1000;
};
class ButtonSettings : Life_RscButtonMenu
{
text = "$STR_Global_Settings";
onbuttonclick = "[] call life_fnc_settingsMenu;";
x = 0.7125 * safezoneW + safezoneX;
y = 0.847682119205298 * safezoneH + safezoneY;
w = 0.0656249999999996 * safezoneW;
h = 0.0247682119205296 * safezoneH;
idc = 1000;
};
class ButtonMyGang : Life_RscButtonMenu
{
idc = 2011;
text = "$STR_PM_MyGang";
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.164448232323232 * safezoneW + safezoneX;
y = 0.71608325449385 * safezoneH + safezoneY;
w = 0.058989267676768 * safezoneW;
h = 0.0228003784295176 * safezoneH;
};
class Licenses_Menu : Life_RscControlsGroup
{
w = 0.21875 * safezoneW;
h = 0.157048249763482 * safezoneH;
x = 0.405729166666667 * safezoneW + safezoneX;
y = 0.506149479659413 * 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.164448232323232 * safezoneW + safezoneX;
y = 0.831490066225166 * safezoneH + safezoneY;
w = 0.058989267676768 * safezoneW;
h = 0.0247067171239354 * safezoneH;
};
class ButtonKeys : Life_RscButtonMenu
{
idc = 2013;
text = "$STR_PM_KeyChain";
onbuttonclick = "createDialog ""Life_key_management"";";
x = 0.164448232323232 * safezoneW + safezoneX;
y = 0.771887417218543 * safezoneH + safezoneY;
w = 0.058989267676768 * safezoneW;
h = 0.0247067171239354 * safezoneH;
};
class ButtonCell : Life_RscButtonMenu
{
idc = 2014;
text = "$STR_PM_CellPhone";
onbuttonclick = "createDialog ""Life_cell_phone"";";
x = 0.164448232323232 * safezoneW + safezoneX;
y = 0.743505203405866 * safezoneH + safezoneY;
w = 0.058989267676768 * safezoneW;
h = 0.0228003784295176 * safezoneH;
};
class ButtonAdminMenu : Life_RscButtonMenu
{
idc = 2021;
text = "$STR_PM_AdminMenu";
onbuttonclick = "closeDialog 0; createDialog ""life_admin_menu"";";
x = 0.781770833333334 * safezoneW + safezoneX;
y = 0.847682119205298 * safezoneH + safezoneY;
w = 0.0656249999999996 * safezoneW;
h = 0.0247682119205296 * safezoneH;
};
class ButtonSyncData : Life_RscButtonMenu
{
text = "$STR_PM_SyncData";
onbuttonclick = "[] call SOCK_fnc_syncData;";
x = 0.164448232323232 * safezoneW + safezoneX;
y = 0.801215704824977 * safezoneH + safezoneY;
w = 0.058989267676768 * safezoneW;
h = 0.0247067171239354 * safezoneH;
idc = 1000;
};
};
};
Alles anzeigen