screen resolution
Posted: Tue Jun 23, 2015 11:57 pm
Hello!
What are the different screen resolutions to consider when creating a mod ? Is it important ? Have you done anything to adapt your GUI custom elements to it ?
I just have added a water bar next to the food bar in the onDrawInventory, onDrawStats, onDrawSkills and onDrawTraits events of the party. I realized I had to use GraphicsContext.drawImage2(image, x, y, srcX, srcY, srcWidth, srcHeight, destWidth, destHeight) to match the size of the UI in the editor which is a little smaller than in full screen due to window mode. I could not even use the font size used by the game at different resolutions with the text drawing functions, only drawImage2 allows me to match any resolution. Also, GrimTK elements are defined in absolute pixel positions and sizes.
I didn't pay attention to it before trying to customize the GUI, but isn't it a big problem ? I played the game in full screen 1920x1080 mode so I never considered it, but one can also play in windowed mode, so...
Am I going too far on this subject ? Does it matter ? What is the resolution you use while playing, and do you create your mod with only that target resolution in mind ?
What are the different screen resolutions to consider when creating a mod ? Is it important ? Have you done anything to adapt your GUI custom elements to it ?
I just have added a water bar next to the food bar in the onDrawInventory, onDrawStats, onDrawSkills and onDrawTraits events of the party. I realized I had to use GraphicsContext.drawImage2(image, x, y, srcX, srcY, srcWidth, srcHeight, destWidth, destHeight) to match the size of the UI in the editor which is a little smaller than in full screen due to window mode. I could not even use the font size used by the game at different resolutions with the text drawing functions, only drawImage2 allows me to match any resolution. Also, GrimTK elements are defined in absolute pixel positions and sizes.
I didn't pay attention to it before trying to customize the GUI, but isn't it a big problem ? I played the game in full screen 1920x1080 mode so I never considered it, but one can also play in windowed mode, so...
Am I going too far on this subject ? Does it matter ? What is the resolution you use while playing, and do you create your mod with only that target resolution in mind ?