• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

Solved SCROLLEDPICTURE interface component

kb31

Master Mariner
Storm Modder
Did someone deal with SCROLLEDPICTURE? It's purpose is(as far as I understand) to rescale and center image. It seems that it's attributes offset.x and offset.y should contain offsets for centered image, but they always = 0. Offsets are necessary to juxtapose specified coords of centered image with absolute mouse coords, and currently I have the only solution - to find and keep offset for each screen resolution. However, clean solution will be much better. Is there a way to get/calculate these offsets?

storm version - 2.9, but I don't think there were any changes in interface module
 
Back
Top