leoXP Posted October 19, 2017 Share Posted October 19, 2017 I wanted to know how the intersect resolution system works, for example I can change the gui for each screen resolution? Link to comment Share on other sites More sharing options...
0 jcsnider Posted October 19, 2017 Share Posted October 19, 2017 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. Link to comment Share on other sites More sharing options...
0 jcsnider Posted October 19, 2017 Share Posted October 19, 2017 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  1920x1080 Henry 1 Link to comment Share on other sites More sharing options...
0 leoXP Posted October 19, 2017 Author Share Posted October 19, 2017 I understand, but in the future is it possible that each resolution can have an xml file? Link to comment Share on other sites More sharing options...
Question
leoXP
I wanted to know how the intersect resolution system works, for example I can change the gui for each screen resolution?
Link to comment
Share on other sites
3 answers to this question
Recommended Posts