Hier habt ihr ein weiteren Dialog der bei mir sonst im Müll kommt
core\dialog
mit diesem Code "trunk.hpp" erstellen : einfügen
Code
class TrunkMenu {
idd = 3500;
name = "TrunkMenu";
movingEnable = 0;
enableSimulation = 1; // blau {0.09,0.471,1,1};
class controlsBackground {
class MainBackground: Life_RscText {
colorBackground[] = {0, 0, 0, 0.7};
idc = -1;
x = 0.252041 * safezoneW + safezoneX;
y = 0.0919813 * safezoneH + safezoneY;
w = 0.495918 * safezoneW;
h = 0.833038 * safezoneH;
};
class intheaslyl: Life_RscText {
colorBackground[] = {0.125,0.251,0.4,1};
idc = -1;
x = 0.4984 * safezoneW + safezoneX;
y = 0.108982 * safezoneH + safezoneY;
w = 0.00479921 * safezoneW;
h = 0.714033;
};
class VehicleWeight : Life_RscText {
idc = 3504;
style = 1;
text = "";
x = 0.26004 * safezoneW + safezoneX;
y = 0.159984 * safezoneH + safezoneY;
w = 0.191968 * safezoneW;
h = 0.0340016 * safezoneH;
colorBackground[] = {0.125,0.251,0.4,1};
};
class RscTrunkText: Life_RscText {
idc = -1;
colorBackground[] = {0.125,0.251,0.4,1};
text = "Fahrzeuginventar";
sizeEx = 0.04;
x = 0.26004 * safezoneW + safezoneX;
y = 0.108982 * safezoneH + safezoneY;
w = 0.191968 * safezoneW;
h = 0.0340016 * safezoneH;
};
class RscPlayerText: Life_RscText {
idc = -1;
colorBackground[] = {0.125,0.251,0.4,1};
text = "Inventar";
sizeEx = 0.04;
x = 0.547992* safezoneW + safezoneX;
y = 0.108982 * safezoneH + safezoneY;
w = 0.191968 * safezoneW;
h = 0.0340016 * safezoneH;
};
};
class Controls {
class TrunkGear: Life_RscListBox {
idc = 3502;
text = "";
sizeEx = 0.030;
x = 0.26004* safezoneW + safezoneX;
y = 0.210987 * safezoneH + safezoneY;
w = 0.191968 * safezoneW;
h = 0.476022 * safezoneH;
};
class PlayerGear: Life_RscListBox {
idc = 3503;
text = "";
sizeEx = 0.030;
x = 0.547992* safezoneW + safezoneX;
y = 0.210987 * safezoneH + safezoneY;
w = 0.191968 * safezoneW;
h = 0.476022 * safezoneH;
};
class TrunkEdit: Life_RscEdit {
idc = 3505;
text = "1";
sizeEx = 0.030;
x = 0.26004* safezoneW + safezoneX;
y = 0.72101 * safezoneH + safezoneY;
w = 0.191968 * safezoneW;
h = 0.0340016 * safezoneH;
};
class PlayerEdit: Life_RscEdit {
idc = 3506;
text = "1";
sizeEx = 0.030;
x = 0.547992* safezoneW + safezoneX;
y = 0.72101 * safezoneH + safezoneY;
w = 0.191968 * safezoneW;
h = 0.0340016 * safezoneH;
};
class TakeItem: Life_RscButtonMenu {
idc = -1;
text = "Nehmen";
colorBackground[] = {0.125,0.251,0.4,1};
onButtonClick = "[] call life_fnc_vehTakeItem;";
x = 0.26004* safezoneW + safezoneX;
y = 0.789013 * safezoneH + safezoneY;
w = 0.191968 * safezoneW;
h = 0.0340016 * safezoneH;
};
class StoreItem: Life_RscButtonMenu {
idc = -1;
text = "Einpacken";
colorBackground[] = {0.125,0.251,0.4,1};
onButtonClick = "[] call life_fnc_vehStoreItem;";
x = 0.547992* safezoneW + safezoneX;
y = 0.789013 * safezoneH + safezoneY;
w = 0.191968 * safezoneW;
h = 0.0340016 * safezoneH;
};
class ButtonClose: Life_RscButtonMenu {
idc = -1;
//shortcuts[] = {0x00050000 + 2};
colorBackground[] = {0.125,0.251,0.4,1};
text = "Schliessen";
onButtonClick = "closeDialog 0;";
x = 0.26004 * safezoneW + safezoneX;
y = 0.874017 * safezoneH + safezoneY;
w = 0.479921 * safezoneW;
h = 0.0340016 * safezoneH;
};
};
};
Alles anzeigen