Schönen Guten Abend,
hiermit stellen wir euch einen neuen Dialog zur Verfügung den ihr verwenden könnt.
Ich bedanke mich bei @Matze Design der mir das Bild zur Verfügung gestellt hat bzw. es für diesen Dialog erstellt hat.
Arbeitsaufteilung :
Matze = Bild
brizi = Dialog
Kopiert diesen Dialog und ersetzt diese Datei ( dialog\bank.hpp ) mit diesem Dialog :
INFORMATION : Ich habe den "close" button ausgegliedert, weil ich nicht wusste wie der Button zu dem Dialog passt, weil dieser Button unten am Dialog dran ist wer will kann den Button ja ausklammern. !!! HABE DIESEN DIALOG NICHT GETESTET SCREENSHOT IN DIE BESCHREIBUNG WÄRE NETT !!!
/*
Dialog edited by Brizi Jaeger
Picture MatzeDesign
*/
class Life_atm_management {
idd = 2700;
name= "life_atm_menu";
movingEnable = 0;
enableSimulation = 1;
class controlsBackground {
class Life_RscTitleBackground: Life_RscPicture {
text = "bankmenu_matzespic.jpg";
idc = -1;
x = 0.276037 * safezoneW + safezoneX;
y = 0.0409789 * safezoneH + safezoneY;
w = 0.431928 * safezoneW;
h = 0.918042 * safezoneH;
};
};
class controls {
class CashTitle: Life_RscStructuredText {
idc = 2701;
text = "";
x = 0.452013 * safezoneW + safezoneX;
y = 0.190585 * safezoneH + safezoneY;
w = 0.151975 * safezoneW;
h = 0.153007 * safezoneH;
};
/*class Title: Life_RscTitle {
colorBackground[] = {0, 0, 0, 0};
idc = -1;
text = "$STR_ATM_Title";
x = 0.35;
y = 0.2;
w = 0.6;
h = (1 / 25);
};*/ // wird nicht benötigt wenn du es selber einbauen willst viel spass ^^
class WithdrawButton: Life_RscButtonMenu {
idc = -1;
text = "";
tooltip = "Klicke hier um den ausgewählten Betrag abzuheben!";
onButtonClick = "[] call life_fnc_bankWithdraw";
x = 0.38482 * safezoneW + safezoneX;
y = 0.523801 * safezoneH + safezoneY;
w = 0.0847862 * safezoneW;
h = 0.0476019 * safezoneH;
colorBackground[] = {-1,-1,-1,-1};
colorBackgroundFocused[] = {1,1,1,0.12};
colorBackground2[] = {0.75,0.75,0.75,0.2};
color[] = {1,1,1,1};
colorFocused[] = {0,0,0,0};
color2[] = {0,0,0,0};
colorText[] = {1,1,1,1};
colorDisabled[] = {1,0,0,0.1};
};
class DepositButton: Life_RscButtonMenu {
idc = -1;
text = "";
tooltip = "Klicke hier um den ausgewählten Betrag einzuzahlen!";
onButtonClick = "[] call life_fnc_bankDeposit";
x = 0.514397 * safezoneW + safezoneX;
y = 0.523801 * safezoneH + safezoneY;
w = 0.0847862 * safezoneW;
h = 0.0476019 * safezoneH;
colorBackground[] = {-1,-1,-1,-1};
colorBackgroundFocused[] = {1,1,1,0.12};
colorBackground2[] = {0.75,0.75,0.75,0.2};
color[] = {1,1,1,1};
colorFocused[] = {0,0,0,0};
color2[] = {0,0,0,0};
colorText[] = {1,1,1,1};
colorDisabled[] = {1,0,0,0.1};
};
class moneyEdit: Life_RscEdit {
idc = 2702;
text = "100";
sizeEx = 0.030;
x = 0.38162 * safezoneW + safezoneX;
y = 0.363994 * safezoneH + safezoneY;
w = 0.220763 * safezoneW;
h = 0.0612029 * safezoneH;
};
class PlayerList: Life_RscCombo {
idc = 2703;
x = 0.38002 * safezoneW + safezoneX;
y = 0.442198 * safezoneH + safezoneY;
w = 0.223963 * safezoneW;
h = 0.040802 * safezoneH;
};
class TransferButton: Life_RscButtonMenu {
idc = -1;
text = "";
tooltip = "Klicke hier um deinen ausgewählten Betrag zu überweisen!";
onButtonClick = "[] call life_fnc_bankTransfer";
x = 0.384808 * safezoneW + safezoneX;
y = 0.591805 * safezoneH + safezoneY;
w = 0.214383 * safezoneW;
h = 0.0476019 * safezoneH;
colorBackground[] = {-1,-1,-1,-1};
colorBackgroundFocused[] = {1,1,1,0.12};
colorBackground2[] = {0.75,0.75,0.75,0.2};
color[] = {1,1,1,1};
colorFocused[] = {0,0,0,0};
color2[] = {0,0,0,0};
colorText[] = {1,1,1,1};
colorDisabled[] = {1,0,0,0.1};
};
class GangWithdraw : TransferButton {
idc = 2705;
text = "";
tooltip = "Ausgewählten Betrag vom Gangkonto abheben?";
onButtonClick = "[] call life_fnc_gangWithdraw";
x = 0.384818 * safezoneW + safezoneX;
y = 0.792413 * safezoneH + safezoneY;
w = 0.0847862 * safezoneW;
h = 0.0476019 * safezoneH;
colorBackground[] = {-1,-1,-1,-1};
colorBackgroundFocused[] = {1,1,1,0.12};
colorBackground2[] = {0.75,0.75,0.75,0.2};
color[] = {1,1,1,1};
colorFocused[] = {0,0,0,0};
color2[] = {0,0,0,0};
colorText[] = {1,1,1,1};
colorDisabled[] = {1,0,0,0.1};
};
class GangDeposit : TransferButton {
idc = 2706;
text = "";
tooltip = "Ausgewählten Betrag vom Gangkonto einzahlen?";
onButtonClick = "[] call life_fnc_gangDeposit";
x = 0.515997 * safezoneW + safezoneX;
y = 0.792413 * safezoneH + safezoneY;
w = 0.0847862 * safezoneW;
h = 0.0476019 * safezoneH;
colorBackground[] = {-1,-1,-1,-1};
colorBackgroundFocused[] = {1,1,1,0.12};
colorBackground2[] = {0.75,0.75,0.75,0.2};
color[] = {1,1,1,1};
colorFocused[] = {0,0,0,0};
color2[] = {0,0,0,0};
colorText[] = {1,1,1,1};
colorDisabled[] = {1,0,0,0.1};
};
/*class CloseButtonKey: Life_RscButtonMenu {
idc = -1;
text = "Schliessen";
onButtonClick = "closeDialog 0;";
x = 0.276058 * safezoneW + safezoneX;
y = 0.962393 * safezoneH + safezoneY;
w = 0.0991833 * safezoneW;
h = 0.0340011 * safezoneH;
};*/
};
};
Alles anzeigen
Wer noch seine Standard Icons eingetragen hat : (fn_atmMenu) die Icons halt rausnehmen von der Datei.
Öffnen wir mal (core/shops/fn_atmemenu.sqf) dort ersetzen wir die komplette Zeile 23
mit dem hier
CONTROL(2700,2701) ctrlSetStructuredText parseText format["<img size='1.7' image=''/> $%1<br/><br/><img size='1.6' image=''/> $%2",[BANK] call life_fnc_numberText,[CASH] call life_fnc_numberText];
Dort sind die Icons raus und noch ein Absatz mehr drinne
Schönen Abend noch!