Concerning otpUIfix... - by EvaUnit02
DDL on 18/12/2008 at 09:41
Quote Posted by ZylonBane
Can the code select what images it displays? So you could, for example, switch over to double-resolution graphics past 1280 instead of double-sizing.
Again, while possible (probably), this'd need recoding of all the UI menus to account for the doubled number of pixels, since all the functions like CreateActionButtons() and so on are honest-to-god hard-coded for per-pixel positioning. It's not even like we can just mess with the defaults and be done, it'd need to be worked through line by line.
Which would be horrible. :eww:
ZylonBane on 18/12/2008 at 16:31
While I have no idea what the Unreal scripting language looks like, it's conceivably possible to write a processor that would automatically go through all the UI script files and replace all hard-coded references with calculated ones.
For example, assuming a hard-coded resolution of 800x600, auto-replace:
Code:
somefunction(400, 300)
with...
Code:
somefunction(screen_width * 0.5, screen_height * 0.5)
Of course it probably wouldn't be that easy. The replacement code would have to be aware of every function that accepts coordinates. And then the replacement graphics would have to be created. So it would still be a lot of work.