New improvements???

Content and general development discussion, including maps, quests, and server code from the development team.
User avatar
ElvenProgrammer
TMW Adviser
TMW Adviser
Posts: 2526
Joined: 13 Apr 2004, 20:11
Location: Italy
Contact:

Post by ElvenProgrammer » 10 Jun 2005, 20:48

Yup Javila we're eager to see your improvements, anyway where did your miminap go? I'd like to have a working minimap in the next release
User avatar
Javila
Peon
Peon
Posts: 39
Joined: 06 May 2005, 02:32
Location: Brazil

Post by Javila » 14 Jun 2005, 04:27

nym, Really I'm not sure that my widget is good enough to be added to Guichan package... I don't know... Maybe I can create a PopupMenu widget that can be useful for their project... I guess BrowserBox needs some improvements and doing a separated PopupMenu can be better... I'm thinking about yet...

Elven, my minimap is here yet... I don't send you my changes 'cause I thought the implementation is so poor... In fact, the minimap is just a thumbnail of whole map, whithout any feature like zoom... If you wish it, I can send it to you ...
User avatar
Rotonen
TMW Adviser
TMW Adviser
Posts: 3154
Joined: 08 Sep 2004, 20:48
Location: Espoo, Finland

Post by Rotonen » 14 Jun 2005, 10:43

I think you could upstream the patches so we could decie whether they're good enough and/or help you with them.
This message used to be meaningful.
User avatar
Javila
Peon
Peon
Posts: 39
Joined: 06 May 2005, 02:32
Location: Brazil

Post by Javila » 17 Jun 2005, 09:00

Hi all,

I finished the BrowserBox and commit it to CVS today... Also I redone all help system, the chat output and a popup menu... All three windows using the new widget... The popup menu can be accessed by middle button mouse click and some actions still needing implementation (walk/buddy/follow)... Maybe the wrap text procedure needs more improvements...

Belows a screenshot:
Image

BTW, to use colored fonts, we need just a white font... All color can be setted by setColor() method... ;-)

Waiting for comments...
Cya
User avatar
ElvenProgrammer
TMW Adviser
TMW Adviser
Posts: 2526
Joined: 13 Apr 2004, 20:11
Location: Italy
Contact:

Post by ElvenProgrammer » 18 Jun 2005, 15:41

It seems very nice but I guess colored text was not committed right?
User avatar
ElvenProgrammer
TMW Adviser
TMW Adviser
Posts: 2526
Joined: 13 Apr 2004, 20:11
Location: Italy
Contact:

Post by ElvenProgrammer » 18 Jun 2005, 16:29

I see the problem is probably that you committed browserfont.png not as a binary since I can't open it even using GIMP. Please recommit it as soon as you can :D
User avatar
Javila
Peon
Peon
Posts: 39
Joined: 06 May 2005, 02:32
Location: Brazil

Post by Javila » 18 Jun 2005, 17:00

Are you sure, Elven???
Image
http://cvs.sourceforge.net/viewcvs.py/t ... iew=markup

BTW, Sull and Usiu reported that colors works only in OpenGL... :/
User avatar
ElvenProgrammer
TMW Adviser
TMW Adviser
Posts: 2526
Joined: 13 Apr 2004, 20:11
Location: Italy
Contact:

Post by ElvenProgrammer » 18 Jun 2005, 17:24

Hmm I deleted and reupdated from CVS and now the font file is correct.
Well as far as I see from the code, in case of not using OpenGL you're not using browserfont but default gui font instead. I tryed to load this one instead but then it's displayed as white, maybe I forgot something or the setColor function doesn't work without OpenGL?
User avatar
Javila
Peon
Peon
Posts: 39
Joined: 06 May 2005, 02:32
Location: Brazil

Post by Javila » 18 Jun 2005, 18:05

Really I don't know, since I'm not using none OpenGL specific command... It's just a Guichan problem I guess...
User avatar
Javila
Peon
Peon
Posts: 39
Joined: 06 May 2005, 02:32
Location: Brazil

Post by Javila » 18 Jun 2005, 18:09

BTW, setColor method is implemented in gcn::OpenGLGraphics and gcn::SDLGraphics... Hmm... Maybe this can be the *key*...
User avatar
Bjørn
TMW Adviser
TMW Adviser
Posts: 1430
Joined: 09 Dec 2004, 19:50
Location: North Rhine-Westphalia, Germany
Contact:

Post by Bjørn » 19 Jun 2005, 18:48

It's not a Guichan problem, it's simply a matter of capabilities in SDL and OpenGL. In OpenGL it's extremely easy to draw only certain colors at certain amounts by simply calling glColor, but SDL doesn't have this. I suggest for now we keep the amount of colors limited (maybe 4 is enough?) and use different font images.
Post Reply