[Freeciv-Dev] Re: Getting rid of Isotrident
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Fri, May 17, 2002 at 01:17:33PM -0400, Jason Short wrote:
> Per I. Mathisen wrote:
>
> > Maybe Jason could be persuaded to resume work on his on-the-fly tileset
> > changing patch... :)
>
> Actually, I would love to do so.
>
> However, there are a few things I would like help with:
>
> - The type of tileset you're using should be saved in the freecivrc file
> when the client exits. This means if you do ./civ -t trident once,
> trident will be the default next time you run the game. It also means
> if you switch tilesets in-game, the switch will be persistent.
>
> - I would like for the list of tilesets to be generated dynamically
> rather than hard-coded. (This will obviously be desirable at some
> point.) To do this, the first thing is that it'd be good to add a
> viewing name to each tileset. Alternately, I suppose I can just take
> the standard name and capitalize the first letter (trident->Trident).
>
> - I also need to be able to determine what the list is dynamically.
> This most likely means scanning for tilespec files or some such. Could
> someone put together a function that does this? Something like:
>
> char** scan_tilesets(void);
>
> where the return value is a NULL-terminated list of strings (the tileset
> names), dynamically allocated.
>
>
> With a list of tilesets, I would dynamically generate a submenu that
> allows the player to choose their tileset (i.e. view->change
> tileset->trident). This code would be fairly simple, but would
> obviously have to be duplicated for each GUI.
>
> Once this is done, the only remaining problem is that it's hard to get
> everything just right on the tileset switch. But I think such a feature
> should still go into CVS: it should be labeled as "experimental" and
> possibly we should say things might not work quite right until you
> restart the client. But almost everything does work right now (the
> biggest problem is memory leaks).
And/or add a tileset selection to the new game startup. Case
closed. Problem solved.
Raimar
--
email: rf13@xxxxxxxxxxxxxxxxx
What's nice about GUI is that you see what you manipulate.
What's bad about GUI is that you can only manipulate what you see.
- [Freeciv-Dev] Re: Getting rid of Isotrident, (continued)
- [Freeciv-Dev] Re: Getting rid of Isotrident, Mike Kaufman, 2002/05/17
- [Freeciv-Dev] Re: Getting rid of Isotrident, Raahul Kumar, 2002/05/17
- [Freeciv-Dev] Re: Getting rid of Isotrident, Thanasis Kinias, 2002/05/17
- [Freeciv-Dev] Re: Getting rid of Isotrident, Reinier Post, 2002/05/18
- [Freeciv-Dev] Re: Getting rid of Isotrident, Per I. Mathisen, 2002/05/17
- [Freeciv-Dev] Re: Getting rid of Isotrident, Raahul Kumar, 2002/05/17
- [Freeciv-Dev] Re: Getting rid of Isotrident, Jason Short, 2002/05/17
- [Freeciv-Dev] Re: Getting rid of Isotrident,
Raimar Falke <=
- [Freeciv-Dev] Re: Getting rid of Isotrident, Jason Short, 2002/05/17
- [Freeciv-Dev] Re: Getting rid of Isotrident, Raimar Falke, 2002/05/17
- [Freeciv-Dev] Re: Getting rid of Isotrident, Reinier Post, 2002/05/18
- [Freeciv-Dev] Re: Getting rid of Isotrident, Daniel Sjölie, 2002/05/17
|
|