Jump to content
  • 0

InventoryWindows.json - Close Button Position


Ainz Ooal Gown

Question

Hi,

 

I changed the GUI for the Inventory to be bigger and sorted out the alignment for most things, but I cant seem to get the "CloseButton" to change its bounds. When i set the bounds to:

 

  "CloseButton": {
    "Bounds": "378,1,20,20",

 

It does not change it in game, and when I go back to NotePad++ and update the file it has reverted the Bounds to:

 

  "CloseButton": {
    "Bounds": "-10,1,20,20",

 

Any ideas on what will be doing that?

 

Here is what my Inventory looks like:

557ffc9947d97caccb2da7876f606127.jpg

 

Thanks In Advance :)

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
Spoiler

{
  "Bounds": "1161,479,430,320",
  "Padding": "8,5,9,11",
  "AlignmentEdgeDistances": "0,0,0,90",
  "Margin": "0,0,0,0",
  "RenderColor": "255,255,255,255",
  "Alignments": "Bottom,Right",
  "DrawBackground": true,
  "MinimumSize": "100,40",
  "MaximumSize": "4096,4096",
  "Disabled": false,
  "Hidden": true,
  "RestrictToParent": true,
  "MouseInputEnabled": true,
  "HideToolTip": false,
  "ClampMovement": true,
  "ActiveImage": "inventoryactive.png",
  "InactiveImage": "",
  "ActiveColor": "255,220,220,220",
  "InactiveColor": "",
  "Closable": true,
  "Titlebar": {
    "Bounds": "0,0,10,24",
    "Padding": "0,0,0,0",
    "AlignmentEdgeDistances": "0,0,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,
    "NormalImage": "",
    "HoveredImage": "",
    "ClickedImage": "",
    "DisabledImage": ""
  },
  "Title": {
    "Bounds": "0,0,86,30",
    "Padding": "4,4,4,4",
    "AlignmentEdgeDistances": "0,0,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,
    "TextColor": "0,255,255,255",
    "HoveredTextColor": "",
    "ClickedTextColor": "",
    "DisabledTextColor": "255,90,90,90",
    "TextAlign": "Left, CenterV",
    "TextPadding": "0,0,0,0",
    "AutoSizeToContents": true,
    "Font": "arial,14",
    "TextScale": 1.0
  },
  "CloseButton": {
    "Bounds": "-10,1,20,20",
    "Padding": "3,3,0,3",
    "AlignmentEdgeDistances": "0,0,0,0",
    "Margin": "0,0,0,0",
    "RenderColor": "255,255,255,255",
    "Alignments": "Top,Right",
    "DrawBackground": true,
    "MinimumSize": "1,1",
    "MaximumSize": "20,20",
    "Disabled": false,
    "Hidden": false,
    "RestrictToParent": true,
    "MouseInputEnabled": true,
    "HideToolTip": false,
    "TextColor": "0,255,255,255",
    "HoveredTextColor": "",
    "ClickedTextColor": "",
    "DisabledTextColor": "255,90,90,90",
    "TextAlign": "Center",
    "TextPadding": "3,3,3,3",
    "AutoSizeToContents": false,
    "Font": "arial,10",
    "TextScale": 1.0,
    "NormalImage": "closenormal.png",
    "HoveredImage": "closehover.png",
    "ClickedImage": "closeclicked.png",
    "DisabledImage": "",
    "CenterImage": false,
    "HoverSound": null,
    "MouseUpSound": null,
    "MouseDownSound": null,
    "ClickSound": null
  },
  "InnerPanel": {
    "Bounds": "0,0,10,10",
    "Padding": "0,0,0,0",
    "AlignmentEdgeDistances": "0,0,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,
    "Children": {
      "ItemsContainer": {
        "Bounds": "10,0,400,280",
        "Padding": "0,0,0,0",
        "AlignmentEdgeDistances": "0,0,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,
        "CanScrollH": false,
        "CanScrollV": true,
        "AutoHideBars": false,
        "InnerPanel": {
          "Bounds": "0,0,10,10",
          "Padding": "0,0,0,0",
          "AlignmentEdgeDistances": "0,0,0,0",
          "Margin": "5,5,5,5",
          "RenderColor": "255,255,255,255",
          "Alignments": "",
          "DrawBackground": true,
          "MinimumSize": "1,1",
          "MaximumSize": "4096,4096",
          "Disabled": false,
          "Hidden": false,
          "RestrictToParent": false,
          "MouseInputEnabled": false,
          "HideToolTip": false
        },
        "HorizontalScrollBar": {
          "Bounds": "0,0,15,15",
          "Padding": "0,0,0,0",
          "AlignmentEdgeDistances": "0,0,0,0",
          "Margin": "0,0,0,0",
          "RenderColor": "255,255,255,255",
          "Alignments": "",
          "DrawBackground": true,
          "MinimumSize": "1,1",
          "MaximumSize": "4096,4096",
          "Disabled": false,
          "Hidden": true,
          "RestrictToParent": false,
          "MouseInputEnabled": true,
          "HideToolTip": false,
          "UpOrLeftButton": {
            "Bounds": "0,0,100,20",
            "Padding": "3,3,3,3",
            "AlignmentEdgeDistances": "0,0,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,
            "TextColor": "0,255,255,255",
            "HoveredTextColor": "",
            "ClickedTextColor": "",
            "DisabledTextColor": "255,90,90,90",
            "TextAlign": "Center",
            "TextPadding": "3,3,3,3",
            "AutoSizeToContents": false,
            "Font": "arial,10",
            "TextScale": 1.0,
            "NormalImage": "",
            "HoveredImage": "",
            "ClickedImage": "",
            "DisabledImage": "",
            "CenterImage": false,
            "HoverSound": null,
            "MouseUpSound": null,
            "MouseDownSound": null,
            "ClickSound": null
          },
          "Bar": {
            "Bounds": "0,0,10,10",
            "Padding": "0,0,0,0",
            "AlignmentEdgeDistances": "0,0,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": true,
            "MouseInputEnabled": true,
            "HideToolTip": false,
            "NormalImage": "",
            "HoveredImage": "",
            "ClickedImage": "",
            "DisabledImage": ""
          },
          "DownOrRightButton": {
            "Bounds": "0,0,100,20",
            "Padding": "3,3,3,3",
            "AlignmentEdgeDistances": "0,0,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,
            "TextColor": "0,255,255,255",
            "HoveredTextColor": "",
            "ClickedTextColor": "",
            "DisabledTextColor": "255,90,90,90",
            "TextAlign": "Center",
            "TextPadding": "3,3,3,3",
            "AutoSizeToContents": false,
            "Font": "arial,10",
            "TextScale": 1.0,
            "NormalImage": "",
            "HoveredImage": "",
            "ClickedImage": "",
            "DisabledImage": "",
            "CenterImage": false,
            "HoverSound": null,
            "MouseUpSound": null,
            "MouseDownSound": null,
            "ClickSound": null
          }
        },
        "VerticalScrollBar": {
          "Bounds": "0,0,15,15",
          "Padding": "0,0,0,0",
          "AlignmentEdgeDistances": "0,0,0,0",
          "Margin": "0,0,0,0",
          "RenderColor": "200,40,40,40",
          "Alignments": "",
          "DrawBackground": true,
          "MinimumSize": "1,1",
          "MaximumSize": "4096,4096",
          "Disabled": false,
          "Hidden": false,
          "RestrictToParent": false,
          "MouseInputEnabled": true,
          "HideToolTip": false,
          "UpOrLeftButton": {
            "Bounds": "0,0,100,20",
            "Padding": "3,3,3,3",
            "AlignmentEdgeDistances": "0,0,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,
            "TextColor": "0,255,255,255",
            "HoveredTextColor": "",
            "ClickedTextColor": "",
            "DisabledTextColor": "255,90,90,90",
            "TextAlign": "Center",
            "TextPadding": "3,3,3,3",
            "AutoSizeToContents": false,
            "Font": "arial,10",
            "TextScale": 1.0,
            "NormalImage": "uparrownormal.png",
            "HoveredImage": "uparrowhover.png",
            "ClickedImage": "uparrowclicked.png",
            "DisabledImage": "",
            "CenterImage": false,
            "HoverSound": null,
            "MouseUpSound": null,
            "MouseDownSound": null,
            "ClickSound": null
          },
          "Bar": {
            "Bounds": "0,0,10,10",
            "Padding": "0,0,0,0",
            "AlignmentEdgeDistances": "0,0,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": true,
            "MouseInputEnabled": true,
            "HideToolTip": false,
            "NormalImage": "scrollbarnormal.png",
            "HoveredImage": "scrollbarhover.png",
            "ClickedImage": "scrollbarclicked.png",
            "DisabledImage": ""
          },
          "DownOrRightButton": {
            "Bounds": "0,0,100,20",
            "Padding": "3,3,3,3",
            "AlignmentEdgeDistances": "0,0,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,
            "TextColor": "0,255,255,255",
            "HoveredTextColor": "",
            "ClickedTextColor": "",
            "DisabledTextColor": "255,90,90,90",
            "TextAlign": "Center",
            "TextPadding": "3,3,3,3",
            "AutoSizeToContents": false,
            "Font": "arial,10",
            "TextScale": 1.0,
            "NormalImage": "downarrownormal.png",
            "HoveredImage": "downarrowhover.png",
            "ClickedImage": "downarrowclicked.png",
            "DisabledImage": "",
            "CenterImage": false,
            "HoverSound": null,
            "MouseUpSound": null,
            "MouseDownSound": null,
            "ClickSound": null
          }
        }
      }
    }
  }
}

 

 

Link to comment
Share on other sites

  • 0
1 minute ago, jcsnider said:

The close button is contained within the Titlebar.  Your titlebar only has a width of 10px in that json.

 

If you set your titlebar bounds to the following it should look better:


  "Titlebar": {
    "Bounds": "0,0,413,24",

 

 

That worked a treat! Sorry I'm still learning :P

 

Thanks buddy

Link to comment
Share on other sites

×
×
  • Create New...