Jump to content
Sign in to follow this  
Uyarrr

[Tutorial] Move or Add New Equipment Slots to Character Window

Recommended Posts

Hello everyone, I saw too frequently asked question about how to add new equipment slots to the character screen properly. So I decided to make minor tutorial about it. It's my first tutorial I hope it will be helpful.

First of all you need understand what is bounds for.
STEPS:
1.Open gui/layouts/game/characterwindow.json
2.Find for "EquipmentItem0".
3. You will see this. Example, here X Pos:29 Y Pos:32 and size is 36x36. (It's different from yours, I edited it.)

Spoiler

713802842adb7da3da3e8aa65245bcd8.png

 

The most important part here is, where x and y starts. IT'S NOT THIS!

Spoiler

88a7de2f94e16e7f4ca5e4513ff176fd.png

You should use this one instead, which I made it easier for you just download it. 

Spoiler

b74a74b5d5061f9164c20c9dbb3dc6f8.png



Okay for example, Ill show my own design. I showed where is the 29x32 point written in bounds. I hope it's understandable.
So you just need make a design in photoshop by placing "equipmenticon" and input starting points for EquipmentItem0,1,2,3,4's.... bounds.
 

Spoiler

7c489dcc15a17f79d55ad361374e4c78.png


Question: How I will know which equipment is which number?
It's really simple, open your server/resources/config.json file.
 

"Equipment": {
    "WeaponSlot": 2,
    "ShieldSlot": 3,
    "Slots": [
      "Helmet",
      "Armor",
      "Weapon",
      "Class Specific",
      "Boots",
      "Amulet",
      "Ring",
      "Belt",
      "Telasia Stone"

You will see equipments written like that. So okay, check it respectively. Equipment0 is Helmet. Equipment1 is Armor, Equipment 2 is Weapon etc. Goes like that. 

Question: I made bounds for my own created item slots but it's not works! Help please.
Here is your answer, extra equipment slot's settings not setted at all. Just replace this settings for your custom equipment item slots and change bounds to whatever you want.

 

"EquipmentItem5": {
        "Bounds": "8,144,36,36",
        "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
          }
        }
      },


Sorry for my terrible grammar, I hope it' understandable. Feedback would be appreciated!

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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...