Jump to content

UI modding questions


Recommended Posts

Screenshot 2021-02-22 at 04.13.09.jpg

As shown here, my currently modded UI code moves the minimap to the left. Not sure what to do to make it snap to the corner rather than go to a specific pixel distance.

Here's the file:

 

  Reveal hidden contents

 

Relevant line:

		<object size="50%-960 100%-256 50%-704 100%">
			<include directory="gui/session/minimap/"/>
		</object>

 

Any help would be apprec. :) 

Link to comment
Share on other sites

You need to move it out of the bottom panel object, i.e. replace:

	<!-- START of BOTTOM PANEL -->
	<!-- Limit to the minimal supported width of 1024 pixels. -->
	<object size="50%-512 0 50%+512 100%">

		<object size="50%-512 100%-200 50%-312 100%">
			<include directory="gui/session/minimap/"/>
		</object>
      
		<!-- Supplemental Details Panel (left). -->

with:

	<object size="0 100%-200 200 100%">
		<include directory="gui/session/minimap/"/>
	</object>

	<!-- START of BOTTOM PANEL -->
	<!-- Limit to the minimal supported width of 1024 pixels. -->
	<object size="50%-512 0 50%+512 100%">

		<!-- Supplemental Details Panel (left). -->

(Or whatever the size is you're using: it's size="left top right bottom".)

  • Like 2
  • Thanks 1
Link to comment
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.

 Share

×
×
  • Create New...