Posted: 2015-12-06, 14:35 Support For town screens of any size (> 800x374)
I looked into making town screens with resolutions larger than 800x374 for VCMI.
So now (0.98e) what do we have here?
This is townscreen made from Sleeping Sun's Necropolis (originally made for HMM7).
It has 2500x1500 pixels resolution.
And now screenshot shows current display of it (32 bit PNGs) in town screen window (VCMI is set to 4K Resolution).
1) VCMI correctly taken background height and made border around it right.
2) Dwellings are working (selected by mouse)
3) Panels for town icons, units and heroes are drawn under townscreen right
1) Background width is not taken - so right border still is drawn in 800 y coord position.
2) That is why window is not centered - so part of town screen goes to right panles overlapping them and get corrupted.
3) All interactive places (town icons, castle icons, income panels, heroes' portraits and creature icons) still are drawn at 374+some x coord positions (overlapping with town screens) not on panel for them
4) Window background is not drawn square (not taking all townscreen width..
So this is current behavour of town screen drawing.
I don't know if I can again mess and configure all that MSVS/GitHub/boost things. But I want to t least locally mess with source codes and find places need to be corrected for right townscreen display.
UHD_Town.jpg Sleeping Sun's Necropolis experiment
62 Time(s) 1.28 MB
_________________ I'm not a member of VCMI developer group and my posts are not official. I'm just a fan.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum