Hey , ich habe hier einen Garagen Dialog für euch , er ist eigentlich relativ leicht einzufügen.
Schritt 1 : Ersetzt den Inhalt eurer impound.hpp durch folgendes:
Code
class Life_impound_menu {
idd = 2800;
name = "Life_impound_menu";
movingenable = 0;
enablesimulation = 1;
onload = "ctrlShow [2330,false];";
class controlsBackground
{
class InventoryBack : Life_RscPicture
{
text = "textures\garagemenu.paa";
idc = -1;
x = 0.233854166666667 * safezoneW + safezoneX;
y = 0.0589970501474926 * safezoneH + safezoneY;
w = 0.571354166666667 * safezoneW;
h = 0.933136676499508 * safezoneH;
};
};
class controls
{
class CloseBtn : Life_RscButtonMenu
{
text = "";
onbuttonclick = "closeDialog 0;";
x = 0.322916666666667 * safezoneW + safezoneX;
y = 0.695181907571288 * safezoneH + safezoneY;
w = 0.1 * safezoneW;
h = 0.0373647984267453 * safezoneH;
tooltip = "$STR_Global_Close";
colorbackground[] = {0,0,0,0};
colorbackgroundfocused[] = {0,0,0,0};
colorbackground2[] = {0,0,0,0};
color[] = {1,1,1,0};
colorfocused[] = {0,0,0,0};
color2[] = {0,0,0,0};
colortext[] = {1,1,1,1};
idc = 1000;
};
class RentCar : Life_RscButtonMenu
{
text = "";
onbuttonclick = "[] call life_fnc_unimpound;";
x = 0.436458333333333 * safezoneW + safezoneX;
y = 0.695181907571288 * safezoneH + safezoneY;
w = 0.101041666666667 * safezoneW;
h = 0.0373647984267453 * safezoneH;
tooltip = "$STR_Global_Retrieve";
colorbackground[] = {0,0,0,0};
colorbackgroundfocused[] = {0,0,0,0};
colorbackground2[] = {0,0,0,0};
color[] = {1,1,1,0};
colorfocused[] = {0,0,0,0};
color2[] = {0,0,0,0};
colortext[] = {1,1,1,1};
idc = 1000;
};
class BuyCar : life_RscButtonMenu
{
idc = -1;
text = "";
onbuttonclick = "[] call life_fnc_sellGarage; closeDialog 0;";
x = 0.5453125 * safezoneW + safezoneX;
y = 0.695181907571288 * safezoneH + safezoneY;
w = 0.1015625 * safezoneW;
h = 0.0373647984267453 * safezoneH;
tooltip = "$STR_Global_Sell";
colorbackground[] = {0,0,0,0};
colorbackgroundfocused[] = {0,0,0,0};
colorbackground2[] = {0,0,0,0};
color[] = {1,1,1,0};
colorfocused[] = {0,0,0,0};
color2[] = {0,0,0,0};
colortext[] = {1,1,1,1};
};
class VehicleList : Life_RscListBox
{
idc = 2802;
text = "";
sizeex = 0.04;
colorbackground[] = {0,0,0,0};
colorbackground2[] = {0,0,0,0};
colortext[] = {1,1,1,1};
onlbselchanged = "_this call life_fnc_garageLBChange;";
x = 0.322916666666666 * safezoneW + safezoneX;
y = 0.291052114060964 * safezoneH + safezoneY;
w = 0.16875 * safezoneW;
h = 0.339233038348082 * safezoneH;
};
class vehicleInfomationList : Life_RscStructuredText
{
idc = 2803;
sizeex = 0.035;
colorbackground[] = {0,0,0,0};
colorbackground2[] = {0,0,0,0};
colortext[] = {1,1,1,1};
x = 0.508333333333334 * safezoneW + safezoneX;
y = 0.291052114060964 * safezoneH + safezoneY;
w = 0.2265625 * safezoneW;
h = 0.339233038348082 * safezoneH;
};
class MainHideText : Life_RscText
{
idc = 2811;
text = "STR_ANOTF_QueryGarage";
x = 0.317655999999999 * safezoneW + safezoneX;
y = 0.233529990167158 * safezoneH + safezoneY;
w = 0.122969 * safezoneW;
h = 0.0368731563421831 * safezoneH;
};
};
};
Alles anzeigen
Schritt 2 : Fügt die PAA aus dem Anhang in euren Textures Ordner ein
Schritt 3 (Optional) : Nehmt Änderungen an der PAA vor ( Die Buttons sollten an der selben stelle bleiben)
Autor : Matthias Burns
Fertig!
Viel Spaß damit