Home » MODDING HQ 1.13 » v1.13 Modding, Customising, Editing » v1.13 XML Customization » AttachmentSlots.xml - about coordinates used in there
AttachmentSlots.xml - about coordinates used in there[message #366005] Thu, 28 March 2024 01:55
Kitty

 
Messages:443
Registered:October 2017
Location: Germany
https://i.imgur.com/jnzzIuR.png
-

It's probably of no concern for most players, but modders might find some use for AttachmentSlots.xml

Part of it is for defining the position of attachment slots at the UI panel

While doing some modding, I ended up at this xml and asked myself about the tags

<usDescPanelPosX>
<usDescPanelPosY>
-

What are they refering to? Where's 0/0 in this coordinate sytem?

The picture should show a brief explannation on that

Basically, 0/0 is the very top left of the panel

For testing purposes, I gave the default slot 1 in AttachmentSlots.xml the coordinates 0/0  (named "A" in the picture)
(don't mess with default slots for real, that was just done to showcase things !!)
That resulted in some things not being shown. There's a little sidebar left of the actual attachment slot, the width of this should be considered when editing coordinates.
The actual position the coordinates refer to is the top left of the slot, not the sidebar
Another thing might worth consideration are the panel frames. Those also have some width and, depending on position of slot, that may result in them not being correctly shown.

Considering the frame and sidebar, I next used 9/7 for default slot 1 and this time things looked ok  (named "B" in the picture)
(again, don't mess with default slots unless you know what you do, I just used it to showcase things)

So, that's how I found out where 0/0 is in this coordinate system and should I ever feel the urge to shuffle attachment slots, it should be a little easier

-

[Updated on: Thu, 28 March 2024 02:00]




How to get: latest 1.13, 7609 and more | 7609 SCI (eng) | Compiling+SVN

I need more details. (Didi Hallervorden)

Report message to a moderator

Master Sergeant
Previous Topic: How to add a new BR shipment destination that works.
Next Topic: Removing permanent weapon attachments
Goto Forum:
  


Current Time: Thu May 02 19:30:04 GMT+3 2024

Total time taken to generate the page: 0.00706 seconds