2nd monitor/2nd window

2nd monitor/2nd window

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
jj
Posts: 273
Joined: 01 Apr 2006, 19:03

2nd monitor/2nd window

Post by jj »

Currently it is possible to use a 2nd monitor for spring.
The 2nd monitor will show the map with all the dots.
But why do we need a modern 3d card for this 2d feature?

My suggestion is to draw the map with GDI or something in a 2nd window, which users can drag, resize, etc (only with 2nd monitor option on)

Currently im using my PDA with Sidewindow, so i can use it as a second monitor. It would be nice to have the minimap there, because the size of the PDA is just right for it.

Image

I think a 2nd monitor for the map will help a lot of users, using your onboard videocard as minimap viewer for example.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: 2nd monitor/2nd window

Post by AF »

A group AI could do this.
User avatar
jj
Posts: 273
Joined: 01 Apr 2006, 19:03

Re: 2nd monitor/2nd window

Post by jj »

Hey, thats nice!!

Im not an AI coder, but i see its possible to code in c#.
Nice project for me in the next weeks :P
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: 2nd monitor/2nd window

Post by AF »

C# interface is for global AIs not groupAI. Youll need a little lobby side trickery to get it to work with a globalAI.
User avatar
jj
Posts: 273
Joined: 01 Apr 2006, 19:03

Re: 2nd monitor/2nd window

Post by jj »

i dont get it how i can create a 2nd window, totally free of Opengl stuff with groupAI lua code?
can you explain?
User avatar
jcnossen
Former Engine Dev
Posts: 2440
Joined: 05 Jun 2005, 19:13

Re: 2nd monitor/2nd window

Post by jcnossen »

group AIs are written in C++, not lua (not yet at least AFAIK). Besides that you need to be able to actually create a window and render to it. It's probably best to use some simple windowing library, or a game dev library other than SDL (since spring is using that)

Maybe you could use allegro (alleg.sf.net) in GDI rendering mode, so you have easy, portable access to the display and a set of drawing functions.
Post Reply

Return to “Feature Requests”