Jump to content
Snipes Murphy

[TUTORIAL] Material 3D Clothing Store UI

Recommended Posts

Difficulty: Easy

Created by: Snipes Murphy

Screenshot:

1C7F91F59ABA85CCB68D488E888AF0608F203D9D

Versions Tested:

  • 4.4r3 - Snipes Murphy
  • 5.0 - Snipes Murphy

Material UI:

  • Spawn Menu:
  • Vehicle Store 3D:
  • Clothing Store 3D:
  • Market Dialog: Coming soon
  • ATM Dialog: Coming soon
  • HUD: Coming soon
  • Interaction Menu: Coming soon
  • Trunk Dialog: Coming soon
  • Y menu: Coming soon (Do you want to see something creative, tablet, phone or whatever, please comment below.)
  • Custom forums system built from the ground up with Arma 3 Admin panel integration: In works :) 

Go into your mission file directory (eg "Altislife.Altis") Dialog > clothing.hpp and replace the entire file with the following:

Spoiler
/*
	Author: Snipes Murphy
*/

class Life_Clothing {
    idd = 3100;
    name= "Life_Clothing";
    movingEnable = 1;
    enableSimulation = 1;
    //onLoad = "[] execVM 'core\client\keychain\init.sqf'";

    class controlsBackground {
      class MainBackground: Life_RscText {
          colorBackground[] = {0.1,0.1,0.1,0.5};
          idc = -1;
          x = 0.025625 * safezoneW + safezoneX;
          y = 0.1414 * safezoneH + safezoneY;
          w = 0.170156 * safezoneW;
          h = 0.462 * safezoneH;
      };

      class RedHighlightLeftSelection: Life_RscText {
          colorBackground[] = {0.705882,0.027451,0.027451,1};
          idc = -1;
          x = 0.025625 * safezoneW + safezoneX;
          y = 0.1414 * safezoneH + safezoneY;
          w = 0.004125 * safezoneW;
          h = 0.462 * safezoneH;
      };

      class MainBackground2: Life_RscText {
          colorBackground[] = {0.1,0.1,0.1,0.5};
          idc = -1;
          x = 0.025625 * safezoneW + safezoneX;
          y = 0.6122 * safezoneH + safezoneY;
          w = 0.170156 * safezoneW;
          h = 0.033 * safezoneH;
      };

      class RedHighlightLeftSelection2: Life_RscText {
          colorBackground[] = {0.705882,0.027451,0.027451,1};
          idc = -1;
          x = 0.025625 * safezoneW + safezoneX;
          y = 0.6122 * safezoneH + safezoneY;
          w = 0.004125 * safezoneW;
          h = 0.033 * safezoneH;
      };

      class MainBackground3: Life_RscText {
          colorBackground[] = {0.1,0.1,0.1,0.5};
          idc = -1;
          x = 0.025629 * safezoneW + safezoneX;
          y = 0.654 * safezoneH + safezoneY;
          w = 0.170156 * safezoneW;
          h = 0.0638 * safezoneH;
      };

      class RedHighlightLeftSelection3: Life_RscText {
          colorBackground[] = {0.705882,0.027451,0.027451,1};
          idc = -1;
          x = 0.025625 * safezoneW + safezoneX;
          y = 0.654 * safezoneH + safezoneY;
          w = 0.004125 * safezoneW;
          h = 0.0638 * safezoneH;
      };

      class RedHighlightTitle: Life_RscText {
          colorBackground[] = {0.705882,0.027451,0.027451,1};
          idc = -1;
          x = 0.025625 * safezoneW + safezoneX;
          y = 0.0864 * safezoneH + safezoneY;
          w = 0.170156 * safezoneW;
          h = 0.044 * safezoneH;
      };
    };

    class controls {
        class Title: Life_RscTitle {
            colorBackground[] = {0, 0, 0, 0};
            idc = 3103;
            text = "";
          	x = 0.025625 * safezoneW + safezoneX;
          	y = 0.0864 * safezoneH + safezoneY;
          	w = 0.170156 * safezoneW;
          	h = 0.044 * safezoneH;
        };

        class ClothingList: Life_RscListBox {
            idc = 3101;
            text = "";
            sizeEx = 0.035;
            onLBSelChanged = "[_this] call life_fnc_changeClothes;";
          	x = 0.0318586 * safezoneW + safezoneX;
          	y = 0.1458 * safezoneH + safezoneY;
          	w = 0.161891 * safezoneW;
          	h = 0.4532 * safezoneH;
        };

        class PriceTag: Life_RscStructuredText {
            idc = 3102;
            text = "";
            sizeEx = 0.035;
            x = 0.0318123 * safezoneW + safezoneX;
          	y = 0.687 * safezoneH + safezoneY;
            w = 0.0794062 * safezoneW;
            h = 0.022 * safezoneH;
        };

        class TotalPrice: Life_RscStructuredText {
            idc = 3106;
            text = "";
            sizeEx = 0.035;
            x = 0.113281 * safezoneW + safezoneX;
          	y = 0.687 * safezoneH + safezoneY;
            w = 0.0794062 * safezoneW;
            h = 0.022 * safezoneH;
        };

        class FilterList: Life_RscCombo {
            idc = 3105;
            colorBackground[] = {0,0,0,0.7};
            onLBSelChanged  = "_this call life_fnc_clothingFilter";
          	x = 0.0297498 * safezoneW + safezoneX;
          	y = 0.6122 * safezoneH + safezoneY;
          	w = 0.166031 * safezoneW;
          	h = 0.033 * safezoneH;
        };

        class CloseButtonKey: Life_RscButtonMenu {
            idc = -1;
            text = "$STR_Global_Close";
            onButtonClick = "closeDialog 0; [] call life_fnc_playerSkins;";
          	x = 0.11453 * safezoneW + safezoneX;
          	y = 0.6584 * safezoneH + safezoneY;
          	w = 0.0794062 * safezoneW;
          	h = 0.0242 * safezoneH;
        };

        class BuyButtonKey: Life_RscButtonMenu {
            idc = -1;
            text = "$STR_Global_Buy";
            onButtonClick = "[] call life_fnc_buyClothes;";
          	x = 0.0318123 * safezoneW + safezoneX;
          	y = 0.6584 * safezoneH + safezoneY;
          	w = 0.0794062 * safezoneW;
          	h = 0.0242 * safezoneH;
        };

        class viewAngle: life_RscXSliderH {
            color[] = {1, 1, 1, 0.45};
            colorActive[] = {1, 1, 1, 0.65};
            idc = 3107;
            text = "";
            onSliderPosChanged = "[4,_this select 1] call life_fnc_s_onSliderChange;";
            tooltip = "";
            x = 0.25 * safezoneW + safezoneX;
            y = 0.93 * safezoneH + safezoneY;
            w = 0.5 * safezoneW;
            h = 0.02 * safezoneH;
        };
    };
};

 

 

 

Edited by Snipes Murphy
  • Like 3

Share this post


Link to post
Share on other sites
On 9/5/2018 at 5:40 AM, Salkio | privatealpha.co.za said:

I can confirm this is working on AltisLife 5.0.0!

Do you perhaps have some teasers on your other scripts coming soon and/or an ETA? ❤️

I couldn't say so just yet, I'm really busy as I'm the operations manager at fadedservers and the COO of an up and coming game studio which is making Altis life standalone, sadly we've made more progress than Identity in 1/12th of the time period. I'll try make time to get the Market and/or ATM dialog done within 6-7 days from now just for you. 😊

Share this post


Link to post
Share on other sites
1 minute ago, Snipes Murphy said:

Well Identity which is basically the concept game of Altis life standalone took 4 years to get basically walking around and singing Karaoke done. So I've taken it into my own concern to make one with my team. Join our discord to learn more 😊 https://discord.gg/GJhHqHa

ok that's what i figured, i was just confused by the whole "Altis life standalone" like i though you were making a game called altis life

Share this post


Link to post
Share on other sites
17 hours ago, ToxicRageTv said:

ok that's what i figured, i was just confused by the whole "Altis life standalone" like i though you were making a game called altis life

I mean I picked an island next too Altis 😉

Share this post


Link to post
Share on other sites
On 9/6/2018 at 8:38 PM, Snipes Murphy said:

I couldn't say so just yet, I'm really busy as I'm the operations manager at fadedservers and the COO of an up and coming game studio which is making Altis life standalone, sadly we've made more progress than Identity in 1/12th of the time period. I'll try make time to get the Market and/or ATM dialog done within 6-7 days from now just for you. 😊

LMFAO HE AINT BUSY. HE LYING.

  • Like 1

Share this post


Link to post
Share on other sites
On 9/5/2018 at 5:40 AM, Salkio | privatealpha.co.za said:

I can confirm this is working on AltisLife 5.0.0!

Do you perhaps have some teasers on your other scripts coming soon and/or an ETA? ❤️

Here's your spoiler I didn't forget about you hehe, just need to code the sell all button and intergrate sell and buy item into the same input box.

Spoiler

DFCA297EFEBB947222B4BD7FA6335358D7F76F00

 

 

Share this post


Link to post
Share on other sites
16 hours ago, Snipes Murphy said:

Here's your spoiler I didn't forget about you hehe, just need to code the sell all button and intergrate sell and buy item into the same input box.

  Reveal hidden contents

DFCA297EFEBB947222B4BD7FA6335358D7F76F00

 

 

> code

Nibba you couldn't even write an if statement a week ago.

Share this post


Link to post
Share on other sites
  • Market Dialog: Coming soon
    ATM Dialog: Coming soon
    HUD: Coming soon
    Interaction Menu: Coming soon
    Trunk Dialog: Coming soon
    Y menu: Coming soon (Do you want to see something creative, tablet, phone or whatever, please comment below.)
    Custom forums system built from the ground up with Arma 3 Admin panel integration: In works  

    any updates about this list?

Share this post


Link to post
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.


×
×
  • Create New...