Jump to content

[TUT] [GUI] Garage Dialog


Matthias Burns | Matze
 Share

Recommended Posts

Hello guys,

as always, ive made another dialog, this time its the garage menu.

As simple as always, just move the impound.hpp in your dialog folder

and put the garagemenu.paa into your textures folder.

R54FGgL.png

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;
       };
   };
};

You can edit the garagemenu.paa like you want to (for example adding a logo, changing colors) but make sure that you dont move the buttons.And pls. name me as the Original Author

Thats it

garagemenu.paa

Edited by Matthias Burns | Matze
  • Thanks 2
Link to comment
Share on other sites

  • 3 months later...
On 8/11/2018 at 11:30 AM, [PRP] Jack Little said:

Adding this adds ai to server. 

Warning Message: File mpmissions\__cur_mp.kelleysisland\dialog\impound.hpp, line 110: '.': '易encountered instead of '='

It works... I dont have this error, you might give me more than this message

On 8/15/2018 at 1:42 PM, GamingPanthers said:

Would I be able to make a Shop Dialog from the Garage Dialog If I just replace the texts and change up the impound.hpp a bit so it works?

No, you cant take the design for the Shop Interface. Its different as you might noticed.

  • Like 1
Link to comment
Share on other sites

10 hours ago, Matthias Burns | Matze said:

No, you cant take the design for the Shop Interface. Its different as you might noticed.

3

What If I re-done the GUI and re-do a little bit of the coding?

 

If not then I'll have to find a GUI for the Vehicle shop what looks the same or just replace the entire Garage GUI with a matching Shop GUI I guess

Link to comment
Share on other sites

On 4/8/2018 at 12:12 PM, Matthias Burns | Matze said:

Hello guys,

as always, ive made another dialog, this time its the garage menu.

As simple as always, just move the impound.hpp in your dialog folder

and put the garagemenu.paa into your textures folder.

R54FGgL.png

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;
       };
   };
};

You can edit the garagemenu.paa like you want to (for example adding a logo, changing colors) but make sure that you dont move the buttons.

Thats it

garagemenu.paa

where do i place this in ? 

 

Link to comment
Share on other sites

On 8/18/2018 at 5:03 AM, GamingPanthers said:

What If I re-done the GUI and re-do a little bit of the coding?

 

If not then I'll have to find a GUI for the Vehicle shop what looks the same or just replace the entire Garage GUI with a matching Shop GUI I guess

No, seriously you dont know how it works, just try editing a file before you try bigger things...

Maybe just change some coordinates and backgrounds.

And if youre able to do this, you should make your own gui...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.