Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2000:
[Freeciv-Dev] Re: FreeCiv on Black & White Monitors
Home

[Freeciv-Dev] Re: FreeCiv on Black & White Monitors

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: FreeCiv Developers <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: FreeCiv on Black & White Monitors
From: Andy Black <ablack@xxxxxxxxxxxxxx>
Date: Fri, 30 Jun 2000 16:13:45 -0600

Hi
(yet another old message)

Cameron, thanks for making that set.  I was going to ask if anyone could
acomplish that task.

Since some situations may require useage of a fallback (b/w) tileset, I
would sugest the images either be stored with their parent tiles (as
fallback.name.sufix) or in a seperate directory (fallback/name.sufix).  In
adition to having the fallback image directory, there should be suport in
the common code for loading either the primary (engles/trident), the
fallback set (mono/fallback), or both.

To acomplish suport for dynamic loading of the sets, some variant of the
following file (and a .c file for functionality) could be used:
client/headers/fallback_g.h
        or
client/fallback.h
/*insert standard  header*/
void set_primary(char * dir_name);      /*set the primary/backup directory
name*/
void set_backup(char * dir_name);
char * get_primary(void);       /*returns primary/backup directory name*/
char * get_backup(void);
        /*could just be set_dir()/get_dir() is using backup.name.sufix format*/

bool load_primary(void);        /*loads primary/backup images*/
bool load_backup(void);
bool unload_primary(void);      /*unloads primary/backup images (to save
memory)*/
bool unload_backup(void);

bool is_primary_loaded(void);
bool is_backup_loaded(void);
bool is_graphics_loaded(void);  /*may not be needed*/

bool load_graphics(void);       /*checks what's loaded, and checks what
needs to be loaded */
        /*if the two don't match, it loads/unloads to fix the problem*/
        /*uses get_min_depth() and get_max_depth() from colors.c/h*/
        /*forces an update of all windows, so that the new tiles are drawen
corectly*/

It would be logical to assume that the program would quit if the sixe of
the tiles didn't match betwene the two.  Or would it? It may be possible to
create the black and white versions of the tile (an ugly conversion) on the
fly, but the user should be warned.

As a side note.  There was mention (on a different thread) about dynamic
loading of tile sets(I think the actual reference was zooming in/out).
This could be a way to acomplish that task.

Andy Black





[Prev in Thread] Current Thread [Next in Thread]