Moin zusammen,
ich habe mir ein Z-Menü im Arma 3 GUI-Editor erstellt, indem ich mit Photoshop einen Hintergrund erstellt habe und die ganzen RscButtonMenus, etc. einfach nur noch unsichtbar auf das Bild gezogen habe. Wenn ich mir per Script das Menü im Eden Editor öffnen lasse, sind alle Buttons und Listen richtig ausgerichtet. Wenn ich jedoch die hpp auf den server lade und das Z-Menü öffne, ist alle nach rechts verschoben. Alle Elemente sind auf Safezone eingestellt.
Im Editor
Im Spiel
player_inv.hpp
C
////////////////////////////////////////////////////////
// GUI EDITOR OUTPUT START (by Hans Titoff, v1.063, #Lufuvu)
////////////////////////////////////////////////////////
#include "player_sys.sqf"
class playerSettings {
idd = playersys_DIALOG;
movingEnable = 1;
enableSimulation = 1;
class controlsBackground {
class MainBackground: Life_RscPicture
{
idc = 1200;
text = "textures\player_inv.jpg";
x = 0.133906 * safezoneW + safezoneX;
y = 0.126 * safezoneH + safezoneY;
w = 0.733229 * safezoneW;
h = 0.693 * safezoneH;
};
};
class controls {
class itemList: Life_RscListBox
{
idc = 1500;
x = 0.427291 * safezoneW + safezoneX;
y = 0.255222 * safezoneH + safezoneY;
w = 0.125625 * safezoneW;
h = 0.272593 * safezoneH;
colorText[] = {0,0,0,0};
colorBackground[] = {0,0,0,0};
colorActive[] = {0,0,0,0};
};
class moneyEdit: Life_RscEdit
{
idc = 1400;
text = "1"; //--- ToDo: Localize;
x = 0.618594 * safezoneW + safezoneX;
y = 0.533 * safezoneH + safezoneY;
w = 0.0563541 * safezoneW;
h = 0.0275556 * safezoneH;
colorText[] = {0,0,0,0};
colorBackground[] = {0,0,0,0};
colorActive[] = {0,0,0,0};
};
class NearPlayers: Life_RscCombo
{
idc = 2100;
x = 0.560468 * safezoneW + safezoneX;
y = 0.566926 * safezoneH + safezoneY;
w = 0.115156 * safezoneW;
h = 0.0182963 * safezoneH;
colorText[] = {0,0,0,0};
colorBackground[] = {0,0,0,0};
colorActive[] = {0,0,0,0};
};
class moneyDrop: Life_RscButtonMenu
{
idc = 2400;
x = 0.560521 * safezoneW + safezoneX;
y = 0.533222 * safezoneH + safezoneY;
w = 0.0542709 * safezoneW;
h = 0.0281481 * safezoneH;
colorText[] = {0,0,0,0};
colorBackground[] = {0,0,0,0};
colorActive[] = {0,0,0,0};
};
class itemEdit: Life_RscEdit
{
idc = 1401;
text = "1"; //--- ToDo: Localize;
x = 0.48401 * safezoneW + safezoneX;
y = 0.564148 * safezoneH + safezoneY;
w = 0.05375 * safezoneW;
h = 0.0262963 * safezoneH;
colorText[] = {0,0,0,0};
colorBackground[] = {0,0,0,0};
colorActive[] = {0,0,0,0};
};
class iNearPlayers: Life_RscCombo
{
idc = 2101;
x = 0.426666 * safezoneW + safezoneX;
y = 0.595407 * safezoneH + safezoneY;
w = 0.110469 * safezoneW;
h = 0.0182964 * safezoneH;
colorText[] = {0,0,0,0};
colorBackground[] = {0,0,0,0};
colorActive[] = {0,0,0,0};
};
class RemoveButton: Life_RscButtonMenu
{
idc = 2401;
x = 0.427187 * safezoneW + safezoneX;
y = 0.562296 * safezoneH + safezoneY;
w = 0.05375 * safezoneW;
h = 0.0290741 * safezoneH;
colorText[] = {0,0,0,0};
colorBackground[] = {0,0,0,0};
colorActive[] = {0,0,0,0};
};
class UseButton: Life_RscButtonMenu
{
idc = 2402;
x = 0.483489 * safezoneW + safezoneX;
y = 0.531963 * safezoneH + safezoneY;
w = 0.05375 * safezoneW;
h = 0.0275556 * safezoneH;
colorText[] = {0,0,0,0};
colorBackground[] = {0,0,0,0};
colorActive[] = {0,0,0,0};
};
class DropButton: Life_RscButtonMenu
{
idc = 2403;
x = 0.426614 * safezoneW + safezoneX;
y = 0.532889 * safezoneH + safezoneY;
w = 0.0542708 * safezoneW;
h = 0.0258149 * safezoneH;
colorText[] = {0,0,0,0};
colorBackground[] = {0,0,0,0};
colorActive[] = {0,0,0,0};
};
class ButtonSettings: Life_RscButtonMenu
{
idc = 2404;
x = 0.456614 * safezoneW + safezoneX;
y = 0.675296 * safezoneH + safezoneY;
w = 0.0865625 * safezoneW;
h = 0.0401851 * safezoneH;
colorText[] = {0,0,0,0};
colorBackground[] = {0,0,0,0};
colorActive[] = {0,0,0,0};
};
class ButtonMarket : Life_RscButtonMenu
{
idc = 2405;
x = 0.547032 * safezoneW + safezoneX;
y = 0.677148 * safezoneH + safezoneY;
w = 0.0870834 * safezoneW;
h = 0.0374074 * safezoneH;
colorText[] = {0,0,0,0};
colorBackground[] = {0,0,0,0};
colorActive[] = {0,0,0,0};
};
class ButtonKeys: Life_RscButtonMenu
{
idc = 2406;
x = 0.635885 * safezoneW + safezoneX;
y = 0.677148 * safezoneH + safezoneY;
w = 0.0870834 * safezoneW;
h = 0.0374074 * safezoneH;
colorText[] = {0,0,0,0};
colorBackground[] = {0,0,0,0};
colorActive[] = {0,0,0,0};
};
class ButtonErfahrung : Life_RscButtonMenu
{
idc = 2407;
x = 0.457135 * safezoneW + safezoneX;
y = 0.730407 * safezoneH + safezoneY;
w = 0.085 * safezoneW;
h = 0.0355556 * safezoneH;
colorText[] = {0,0,0,0};
colorBackground[] = {0,0,0,0};
colorActive[] = {0,0,0,0};
};
class ButtonMyGang: Life_RscButtonMenu
{
idc = 2408;
x = 0.367188 * safezoneW + safezoneX;
y = 0.676852 * safezoneH + safezoneY;
w = 0.0865625 * safezoneW;
h = 0.0374074 * safezoneH;
colorText[] = {0,0,0,0};
colorBackground[] = {0,0,0,0};
colorActive[] = {0,0,0,0};
};
class ButtonCell: Life_RscButtonMenu
{
idc = 2409;
x = 0.277084 * safezoneW + safezoneX;
y = 0.676852 * safezoneH + safezoneY;
w = 0.0870833 * safezoneW;
h = 0.0374074 * safezoneH;
colorText[] = {0,0,0,0};
colorBackground[] = {0,0,0,0};
colorActive[] = {0,0,0,0};
};
class ButtonSyncData: Life_RscButtonMenu
{
idc = 2410;
x = 0.456614 * safezoneW + safezoneX;
y = 0.632111 * safezoneH + safezoneY;
w = 0.0870834 * safezoneW;
h = 0.0401851 * safezoneH;
colorText[] = {0,0,0,0};
colorBackground[] = {0,0,0,0};
colorActive[] = {0,0,0,0};
};
class Licenses_Menu : Life_RscControlsGroup
{
idc = 2300;
x = 0.335104 * safezoneW + safezoneX;
y = 0.261704 * safezoneH + safezoneY;
w = 0.0797916 * safezoneW;
h = 0.260555 * safezoneH;
colorText[] = {0,0,0,0};
colorBackground[] = {0,0,0,0};
colorActive[] = {0,0,0,0};
class Controls
{
};
};
class Life_Licenses: Life_RscStructuredText
{
idc = 1100;
x = 0.331458 * safezoneW + safezoneX;
y = 0.262593 * safezoneH + safezoneY;
w = 0.0823958 * safezoneW;
h = 0.260555 * safezoneH;
colorText[] = {0,0,0,0};
colorBackground[] = {0,0,0,0};
colorActive[] = {0,0,0,0};
};
};
};
////////////////////////////////////////////////////////
// GUI EDITOR OUTPUT END
////////////////////////////////////////////////////////
Alles anzeigen
Player_inv.jpg
Falls einer ne Idee hat wärs super, wenn er sich meldet.
Grüße Moritz