Jump to content
  • 1

Equipment slots and GUI


froggy

Question

Hello,

 

Before B6 when I added equipment slots there was automatically a box created for the character screen.

 

When I added new slots now they wont show up and you cant see the equipped item.

 

What is the solution for this?

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 1

In steps:

 

1. Install Photoshop

2. Open character.png from Client and Editor/resources/gui

3. Use rulers (atleast this is how i did it to line the boxes up nicely), enable pixels as measurement for the rulers, press F8 to bring out the info window (shows X,Y for mouse cursor). You can also drag from the X and Y rulers to bring out a line that lines up with layers for extra precision

4. Copy & Paste the equipment box from the character.png gui folder onto the character.png in photoshop, fill out the egdes with color of choice to make a 36x36 image to see where you want to place your icons

5. Paste the amount of boxes you want, i used 9.

6. Mouse over the top left pixel of the box and see the X,Y coordinates you need to input in the characterwindow.json

7. Input the X,Y coordinates in the bounds part, see below:

Spoiler

      "EquipmentItem7": {
        "Bounds": "134,144,36,36", <--- X=134, 144=Y, determines location of icon box
        "Padding": "0,0,0,0",
        "AlignmentEdgeDistances": "0,0,0,0",
        "AlignmentTransform": "0,0",
        "Margin": "0,0,0,0",
        "RenderColor": "255,255,255,255",
        "Alignments": "",
        "DrawBackground": true,
        "MinimumSize": "1,1",
        "MaximumSize": "4096,4096",
        "Disabled": false,
        "Hidden": false,
        "RestrictToParent": false,
        "MouseInputEnabled": true,
        "HideToolTip": false,
        "ToolTipBackground": "tooltip.png",
        "ToolTipFont": "sourcesansproblack,10",
        "ToolTipTextColor": "255,255,255,255",
        "Texture": "equipmentitem.png",
        "HoverSound": null,
        "LeftMouseClickSound": null,
        "RightMouseClickSound": null,
        "Children": {
          "EquipmentIcon": {
            "Bounds": "2,2,32,32",
            "Padding": "0,0,0,0",
            "AlignmentEdgeDistances": "0,0,0,0",
            "AlignmentTransform": "0,0",
            "Margin": "0,0,0,0",
            "RenderColor": "255,255,255,255",
            "Alignments": "",
            "DrawBackground": true,
            "MinimumSize": "1,1",
            "MaximumSize": "4096,4096",
            "Disabled": false,
            "Hidden": false,
            "RestrictToParent": false,
            "MouseInputEnabled": false,
            "HideToolTip": false,
            "ToolTipBackground": null,
            "ToolTipFont": null,
            "ToolTipTextColor": "",
            "Texture": null,
            "HoverSound": null,
            "LeftMouseClickSound": null,
            "RightMouseClickSound": null
          }
        }
      },

7. Open characterwindow.json from resources/gui/layouts/game (you can use notepad++) and edit the bold part in the spoiler

8. Save and load client

 

Example images:

https://imgur.com/wmKfuvU

https://imgur.com/QYQPE1U

 

Link to comment
Share on other sites

  • 0

You need to copy the entire  "EquipmentItem0" category  (ressources/ gui/layouts/ game/ CharacterWindow.json), paste it below the last, and replace the number (0 to your slot number), bounds, etc.

 

I can make you an exemple if you need, my english isn't really good enough to explain that.

Link to comment
Share on other sites

  • 0

You'll have to go into your JSON files to add a visual slot.

Resources - Gui - Layouts - Game - CharacterWindow.json

 

There will be multiple lines called "EquipmentItemX" X being the slot that is 0 inclusive, so the first slot will be called "EquipmentItem0", copy one of those and change the number and the values in it to place it where you need it to be.

Link to comment
Share on other sites

  • 0
2 hours ago, AisenArvalis said:

You'll have to go into your JSON files to add a visual slot.

Resources - Gui - Layouts - Game - CharacterWindow.json

 

There will be multiple lines called "EquipmentItemX" X being the slot that is 0 inclusive, so the first slot will be called "EquipmentItem0", copy one of those and change the number and the values in it to place it where you need it to be.

 

I assume it is bounds? Where do i find the values that determines the location?

Link to comment
Share on other sites

  • 0
46 minutes ago, Zetasis said:

I haven’t really messed with adding a new item slot or anything like that but I did find this and thought maybe it would be of some help. Good luck!

 

https://www.ascensiongamedev.com/topic/4270-tutorial-move-or-add-new-equipment-slots-to-character-window/

 

I got the slots added but it is not creating a scroll wheel, so you can only see 5 slots, would it be better to add on height or can i add the scroll wheel easily enough?

 

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...