Heyho,
ich probiere derzeit ein eigenes Menü für ein ATM zu erstellen.
Die ganze Zeit grübel ich, warum das nicht funktioniert..
Meine Änderung sieht wie folgt aus:
Spoiler anzeigen
Code
class Life_atm_management {
idd = 2700;
name= "life_atm_menu";
movingEnable = 0;
enableSimulation = 1;
class IGUIBack_2200: IGUIBack
{
idc = 2200;
x = 0.304009 * safezoneW + safezoneX;
y = 0.247 * safezoneH + safezoneY;
w = 0.391981 * safezoneW;
h = 0.506 * safezoneH;
colorBackground[] = {-1,-1,-1,0.4};
};
class list_player: RscListbox
{
idc = 1500;
x = 0.32464 * safezoneW + safezoneX;
y = 0.357 * safezoneH + safezoneY;
w = 0.154729 * safezoneW;
h = 0.374 * safezoneH;
};
class button_gangkonto_abheben: RscButton
{
idc = 1600;
text = "Abheben"; //--- ToDo: Localize;
x = 0.5 * safezoneW + safezoneX;
y = 0.654 * safezoneH + safezoneY;
w = 0.0773647 * safezoneW;
h = 0.077 * safezoneH;
colorBackground[] = {1,0.498,0.141,1};
onButtonClick = "[] call life_fnc_gangWithdraw";
};
class button_gangkonto_einzahlen: RscButton
{
idc = 1601;
text = "Einzahlen"; //--- ToDo: Localize;
x = 0.603153 * safezoneW + safezoneX;
y = 0.654 * safezoneH + safezoneY;
w = 0.0773647 * safezoneW;
h = 0.077 * safezoneH;
onButtonClick = "[] call life_fnc_gangDeposit";
};
class button_abheben: RscButton
{
idc = 1602;
text = "Abheben"; //--- ToDo: Localize;
x = 0.5 * safezoneW + safezoneX;
y = 0.522 * safezoneH + safezoneY;
w = 0.0773647 * safezoneW;
h = 0.077 * safezoneH;
onButtonClick = "[] call life_fnc_bankWithdraw";
};
class button_einzahlen: RscButton
{
idc = 1603;
text = "Einzahlen"; //--- ToDo: Localize;
x = 0.603153 * safezoneW + safezoneX;
y = 0.522 * safezoneH + safezoneY;
w = 0.0773647 * safezoneW;
h = 0.077 * safezoneH;
onButtonClick = "[] call life_fnc_bankDeposit";
};
class picture_geld: RscPicture
{
idc = 1200;
text = "bargeld.paa";
x = 0.505158 * safezoneW + safezoneX;
y = 0.357 * safezoneH + safezoneY;
w = 0.0257882 * safezoneW;
h = 0.033 * safezoneH;
};
class button_transferieren: RscButton
{
idc = 1604;
text = "Überweisen"; //--- ToDo: Localize;
x = 0.603153 * safezoneW + safezoneX;
y = 0.39 * safezoneH + safezoneY;
w = 0.0773647 * safezoneW;
h = 0.077 * safezoneH;
onButtonClick = "[] call life_fnc_bankTransfer";
};
class button_schliessen: RscButton
{
idc = 1605;
text = "Schließen"; //--- ToDo: Localize;
x = 0.304009 * safezoneW + safezoneX;
y = 0.775 * safezoneH + safezoneY;
w = 0.0773647 * safezoneW;
h = 0.077 * safezoneH;
onButtonClick = "closeDialog 0;";
};
class gangkonto: RscText
{
idc = 1000;
text = "Gangkonto"; //--- ToDo: Localize;
x = 27 * GUI_GRID_W + GUI_GRID_X;
y = 18 * GUI_GRID_H + GUI_GRID_Y;
w = 4 * GUI_GRID_W;
h = 1.5 * GUI_GRID_H;
};
class privatkonto: RscText
{
idc = 1001;
text = "Privatkonto"; //--- ToDo: Localize;
x = 26.5 * GUI_GRID_W + GUI_GRID_X;
y = 12 * GUI_GRID_H + GUI_GRID_Y;
w = 4.5 * GUI_GRID_W;
h = 1.5 * GUI_GRID_H;
};
class picture_konto: RscPicture
{
idc = 1201;
text = "privatkonto.paa";
x = 0.505158 * safezoneW + safezoneX;
y = 0.401 * safezoneH + safezoneY;
w = 0.0257882 * safezoneW;
h = 0.033 * safezoneH;
};
class picture_header: RscPicture
{
idc = 1203;
text = "header.jpf";
x = 0.314325 * safezoneW + safezoneX;
y = 0.258 * safezoneH + safezoneY;
w = 0.376508 * safezoneW;
h = 0.044 * safezoneH;
};
class anzeige_privatkonto: RscText
{
idc = 1002;
x = 0.541261 * safezoneW + safezoneX;
y = 0.357 * safezoneH + safezoneY;
w = 0.0257882 * safezoneW;
h = 0.033 * safezoneH;
};
class anzeige_konto: RscText
{
idc = 1003;
x = 0.541261 * safezoneW + safezoneX;
y = 0.401 * safezoneH + safezoneY;
w = 0.0257882 * safezoneW;
h = 0.033 * safezoneH;
};
class picutre_gangkonto: RscPicture
{
idc = 1202;
text = "gangkonto.paa";
x = 0.505158 * safezoneW + safezoneX;
y = 0.445 * safezoneH + safezoneY;
w = 0.0257882 * safezoneW;
h = 0.033 * safezoneH;
};
class anzeige_gangkonto: RscText
{
idc = 1004;
x = 0.541261 * safezoneW + safezoneX;
y = 0.445 * safezoneH + safezoneY;
w = 0.0257882 * safezoneW;
h = 0.033 * safezoneH;
};
class anzeige_geld: RscText
{
idc = 1005;
x = 30.5 * GUI_GRID_W + GUI_GRID_X;
y = 6 * GUI_GRID_H + GUI_GRID_Y;
w = 6.5 * GUI_GRID_W;
h = 1 * GUI_GRID_H;
};
};
Alles anzeigen
Die Bilder sind im selben Ordner (Dialog).
Auf den Weg ins Spiel kommt folgende Meldung:
Code
File mpmissions\_CUR_MP.Altis\dialog\bank.hpp 6:\Life_atm_management.IGUIBack_2200: Undefined base class "IGUIBack"
Ich weiß nicht was ich dagegen machen kann ![]()
Hat da wer 'nen Plan von? In den TUTs wird immer nur der Umgang mit den GUI Editor erklärt (egal ob deutsch oder englisch
)
MfG