Jump to content
  • 0

Question

Posted

I wanted to know how the intersect resolution system works, for example I can change the gui for each screen resolution?

3 answers to this question

Recommended Posts

  • 0
Posted

Making the code change to have each resolution load a separate file (if that file exists) will be available in Beta 5. 

 

For people who want a single file for everything that will work as it is now. 

  • 0
Posted

The answer at this time is No.  But take that with a grain of salt.. we could have the engine search for .xml files with each specific resolution and load them if they exist.

 

Currently, we have one xml file that is able to use some trickery with anchoring for our UI to work on all resolutions. For example, let's look at our hotbar:

 

The GUI code has 'Alignment' options.

 

For example:

    <HotbarWindow>
      <AlignmentEdgeDistances>0,4,4,0</AlignmentEdgeDistances>
      <Alignments>Top,Right</Alignments>

   </HotbarWindow>

 

Alignments are top and right.

Alignment edge distances are at least 0 pixels from the left, at least 4 pixels from the top, at least 4 pixels from the right and at least 0 pixels from the bottom of the screen.

 

The GUI does not "scale/stretch" with the resolution. Instead, for this hotbar it is always placed in the top right of the screen 4 pixels away from the top and right border.

 

800x600

49c70f0f4d0cb25192151b67a7c98b00.png

 

1920x1080

31e4d79d4dedeeb5ca75b6aab0781406.png

×
×
  • Create New...