Forum index VCMI Project - Heroes 3: WoG recreated
Forum of the project aiming to recreate best turn-based strategy ever!

FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  StatisticsStatistics
RegisterRegister  Log inLog in  AlbumAlbum  DownloadDownload

Previous topic :: Next topic
Support For town screens of any size (> 800x374)
Author Message
Macron1 

Joined: 02 Apr 2013
Posts: 576
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).

Plus:
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
Minus:
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
61 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.
 
     
Display posts from previous:   
Reply to topic
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
Add this topic to your bookmarks
Printable version

Jump to:  

Powered by phpBB modified by Przemo © 2003 phpBB Group
Template Chronicles modified by Nasedo modified by Tow.
© VCMI Team
Page generated in 6.18 seconds. SQL queries: 15