Hi all,
I've managed to write a script for the preload picture which permit to prevent it to stretch across the screen and display it on the screen's center whatever the screen's resolution.
#Global hooks
$Splash: [
x = (gr.getScreenWidth()-800)/2
y = (gr.getScreenHeight()-600)/2
gr.drawImage("PreLoad.dds", x, y)
]
+Override: true
#End
This code allows to have a correct aspect ratio even on 16/10 and triple head displays.
Now, I would like to extend this concept to the entire FS2O User Interface.
I guess that I could start from the "On Game Init" hook but for the rest i'm a bit newbie in the LUA scripting, so if anybody has some ideas on how I can manage to do it, it would be great !
Thx
(c)