Page 1 of 2

More research items per page

Posted: 04 Apr 2014, 17:24
by smallfly
Maximized the menu height to see much more research/structure items at once. What do you think?
more_research_items_per_page.png
hci.h.png
hci.h.png (28.83 KiB) Viewed 23394 times
hci.h.2.png
hci.h.2.png (24.7 KiB) Viewed 23394 times

Re: More research items per page [SOLVED]

Posted: 04 Apr 2014, 18:58
by themac
Quite good. What about the heavy perspective distortion at high resoulution screen modes? Can it be fixed also? :)

Re: More research items per page [SOLVED]

Posted: 04 Apr 2014, 19:09
by themac
You wrote me a private message. I was not able to write back. It told me you have disabled private messages here, so I answer here right now. :)

Das ist bei Warzone etwas kurios. Je höher man die Auflösung einstellt, umso stärker wird die 3D Ansicht verzerrt. In 640 x 480 oder 800 x 600, wie man Warzone früher spielte, sieht alles ganz normal aus. In 1280 x 800 sieht man schon, daß es etwas verzerrt. In 1920 x 1080 oder 2560 x 1600 (Retina Display) wird die perspektivische Verzerrung extrem. Da gehen einem ja die Augen über. Siehe auch meinen inzwischen etwas älteren Beitrag dazu: viewtopic.php?t=11145&p=126602

Re: More research items per page [SOLVED]

Posted: 04 Apr 2014, 21:40
by smallfly
Sorry, I cannot help you with the distorsion effect. The 3d distorsion has nothing to do with the user interface overlay. So please stick to topic. If you want to further elaborate on the distorsion, you should do this in the thread you linked yourself.

Re: More research items per page [SOLVED]

Posted: 04 Apr 2014, 21:48
by smallfly
Now I also maximized the horizontal menu:
maximized_menus.png
Necessary code changes:
hci.h.png

Re: More research items per page [SOLVED]

Posted: 05 Apr 2014, 06:17
by NoQ
Very nice! Probably worth committing?

Re: More research items per page [SOLVED]

Posted: 05 Apr 2014, 11:16
by smallfly
NoQ wrote:Very nice! Probably worth committing?
I tried a pull request, but it does not work, because I changed the code in 3.1.1 tag and when I commit to the current master there are lots of commits.
pull_request2.png
pull_request2.png (36.03 KiB) Viewed 23346 times
If I do more changes to the game I will switch to the master version, so that I can contribute to the community. At the moment I just played around a bit with the code.

//edit: But if any dev likes the idea of bigger menus instead of tabbing around the whole time, please feel free to commit the few lines ;-) Here are the changed lines of code. All inside the hci.h file.

Code: Select all

#define SFY_ADD_HEIGHT	(pie_GetVideoBufferHeight() - BASE_COORDS_Y)
...
#define OBJ_BACKX		(RET_X + RET_FORMWIDTH + 100) // BASE_GAP + D_W)	// X coord of object screen back form.
...
#define ESTIMATED_RADAR_WIDTH_DO_NOT_USE 185	
#define OBJ_BACKWIDTH	pie_GetVideoBufferWidth() - 100 - (OBJ_BACKX) - (RET_X) - (ESTIMATED_RADAR_WIDTH_DO_NOT_USE) // 320	//316		// Width of object screen back form.
...
#define OBJ_WIDTH		pie_GetVideoBufferWidth() - 100 - (OBJ_BACKX) - (RET_X) - (ESTIMATED_RADAR_WIDTH_DO_NOT_USE) - 4 // 316	//312//310	// Width of object screen tab form.
...
#define STAT_Y				(45 + E_H - SFY_ADD_HEIGHT)
...
#define STAT_HEIGHT			273 + SFY_ADD_HEIGHT // Height of the tab form.
//edit: i clone the master, edited the hci.h file and tried to commit, but it says:
failed.png
failed.png (42.7 KiB) Viewed 23341 times

Re: More research items per page [SOLVED]

Posted: 05 Apr 2014, 15:51
by smallfly
The right part of the unit editor seems to be invisible (more probably: positioned outside the screen) when applying the patch. So I need to do some research on that, before finally comitting the patch.

Re: More research items per page

Posted: 05 Apr 2014, 19:30
by smallfly
While the maximized menus look fine...
maximized_menus.png
... there is a problem with the position with the design menu.
design_menu.png
I had to adjust the position of the design elements (right part of design editor) so that they are visible at all.

Code: Select all

#define	RADTLX		(OBJ_BACKX + OBJ_BACKWIDTH + BASE_GAP + 1) //  +D_W)	// Paul's settings (492+12)

Re: More research items per page

Posted: 06 Apr 2014, 03:30
by vexed
For what it is worth, we don't like github's pull requests.
Read: http://sourceforge.net/p/warzone2100/ma ... /31934936/

Also, everything still must work @ 640x480, that is the smallest resolution we support.
Master is where new features go.
3.1 is supposed to be for bug fixes only.


If you have any other questions, feel free to ask, someone will eventually get to it. :)

Re: More research items per page

Posted: 06 Apr 2014, 17:31
by smallfly
vexed wrote:Also, everything still must work @ 640x480, that is the smallest resolution we support.
... and with my current code changes 640x480 and 800x600 wouldnt be supported:
640x480.png
640x480.png (128.09 KiB) Viewed 23278 times
800x600.png
800x600.png (233.13 KiB) Viewed 23278 times
Thus I cannot send any commits at the moment.

Re: More research items per page

Posted: 12 Jun 2014, 14:50
by AWarZoner
smallfly wrote:... and with my current code changes 640x480 and 800x600 wouldnt be supported:
Image
I can't program C++. But will it work if you add a minimum width?

- Andrie

Re: More research items per page

Posted: 17 Jul 2014, 05:41
by demolicious
I think this is an awesome change.
Does anyone even use 640x480 and 800x600 anyway?

Re: More research items per page

Posted: 01 Oct 2014, 17:31
by Ezio
I don't see these in latest trunk master, what's wrong?

Re: More research items per page

Posted: 01 Oct 2014, 19:15
by Iluvalar
demolicious wrote:I think this is an awesome change.
Does anyone even use 640x480 and 800x600 anyway?
I do, get more fps that way on older computer. And really the game textures are not so great you see a big difference. I also enjoy those big buttons, i actually see more clearly the weapon on my design and structure in 800x600 then in 1024x768.