sever extracolors from utf8map and ENHANCED_SYMBOLS
move the custom color data into its own field in the glyphmap and disassociate it from the unicode/utf8 stuff. move the glyphcache stuff during options processing and parsing into new file glyphs.c and out of utf8map.c, and make it general, and not part of ENHANCED_SYMBOLS. Do the groundwork for allowing glyph color customizations to work when any symset is loaded and not restrict it only to the enhanced1 H_UTF8 symsets. The customizations in effect are still affiliated with a particular symset. Also closes #1224, but the PR itself references a data structure made obsolete by this commit. The curses comment from the PR was added into the code. The PR also made several suggestions, but only the first one has been included in this commit (and no longer based on the handler), that being: "allow defining colors if other symbol handling modes are used (possibly limited to the standard 16 colors)." FredrIQ also wrote the following suggestions in PR#1224: Something I was also contemplating, unrelated to implementation of this support in curses, would be the ability for the following: allow defining colors if other symbol handling modes are used (possibly limited to the standard 16 colors) allow defining attributes (for example: glyph:G_pet_female_kitten:U+0066/red/underline) allow specifying glyphs as wildcards for defining global color/attribute changes Something I also want to see are keywords for "don't change the current defined data". If this were to be added, you could for example do this: OPTIONS=glyph:G_*_fox:U+0064/blue OPTIONS=glyph:G_statue_*:basechar/gray/underline for "make all foxes use a blue color, make all statues gray with underline" without needing to specify the relevant character for every statue. This ("basechar", "basefg", etc) should perhaps also be added for MENUCOLORS and statushilites, so that you can, for example, underline all items being worn without needing to specify a bunch of near-duplicate rules for combining BUC colors + underline worn items as per #1064
This commit is contained in:
@@ -278,25 +278,25 @@ VOBJ04 = $(O)dig.o $(O)display.o $(O)do.o $(O)do_name.o $(O)do_wear
|
||||
VOBJ05 = $(O)dog.o $(O)dogmove.o $(O)dokick.o $(O)dothrow.o $(O)drawing.o
|
||||
VOBJ06 = $(O)dungeon.o $(O)eat.o $(O)end.o $(O)engrave.o $(O)exper.o
|
||||
VOBJ07 = $(O)explode.o $(O)extralev.o $(O)files.o $(O)fountain.o $(O)getpos.o
|
||||
VOBJ08 = $(O)getline.o $(O)hack.o $(O)hacklib.o $(O)insight.o $(O)invent.o
|
||||
VOBJ09 = $(O)isaac64.o $(O)lock.o $(O)mail.o $(O)main.o $(O)makemon.o
|
||||
VOBJ10 = $(O)mcastu.o $(O)mdlib.o $(O)mhitm.o $(O)mhitu.o $(O)minion.o
|
||||
VOBJ11 = $(O)mkmap.o $(O)mklev.o $(O)mkmaze.o $(O)mkobj.o $(O)mkroom.o
|
||||
VOBJ12 = $(O)mon.o $(O)mondata.o $(O)monmove.o $(O)monst.o $(O)mplayer.o
|
||||
VOBJ13 = $(O)mthrowu.o $(O)muse.o $(O)music.o $(O)o_init.o $(O)objects.o
|
||||
VOBJ14 = $(O)objnam.o $(O)options.o $(O)pickup.o $(O)pline.o $(O)polyself.o
|
||||
VOBJ15 = $(O)potion.o $(O)quest.o $(O)questpgr.o $(O)pager.o $(O)pray.o
|
||||
VOBJ16 = $(O)priest.o $(O)read.o $(O)rect.o $(O)region.o $(O)report.o
|
||||
VOBJ17 = $(O)restore.o $(O)rip.o $(O)rnd.o $(O)role.o $(O)rumors.o
|
||||
VOBJ18 = $(O)save.o $(O)selvar.o $(O)sfstruct.o $(O)shk.o $(O)shknam.o
|
||||
VOBJ19 = $(O)sit.o $(O)sounds.o $(O)sp_lev.o $(O)spell.o $(O)stairs.o
|
||||
VOBJ20 = $(O)steal.o $(O)steed.o $(O)symbols.o $(O)sys.o $(O)teleport.o
|
||||
VOBJ21 = $(O)strutil.o $(O)termcap.o $(O)timeout.o $(O)topl.o $(O)topten.o
|
||||
VOBJ22 = $(O)trap.o $(O)u_init.o $(O)uhitm.o $(O)utf8map.o $(O)vault.o
|
||||
VOBJ23 = $(O)track.o $(O)vision.o $(O)weapon.o $(O)were.o $(O)wield.o
|
||||
VOBJ24 = $(O)windows.o $(O)wintty.o $(O)wizard.o $(O)wizcmds.o $(O)worm.o
|
||||
VOBJ25 = $(O)worn.o $(O)write.o $(O)zap.o $(O)light.o $(O)dlb.o
|
||||
VOBJ26 = $(REGEX)
|
||||
VOBJ08 = $(O)glyphs.o $(O)getline.o $(O)hack.o $(O)hacklib.o $(O)insight.o
|
||||
VOBJ09 = $(O)invent.o $(O)isaac64.o $(O)lock.o $(O)mail.o $(O)main.o
|
||||
VOBJ10 = $(O)makemon.o $(O)mcastu.o $(O)mdlib.o $(O)mhitm.o $(O)mhitu.o
|
||||
VOBJ11 = $(O)minion.o $(O)mkmap.o $(O)mklev.o $(O)mkmaze.o $(O)mkobj.o
|
||||
VOBJ12 = $(O)mkroom.o $(O)mon.o $(O)mondata.o $(O)monmove.o $(O)monst.o
|
||||
VOBJ13 = $(O)mplayer.o $(O)mthrowu.o $(O)muse.o $(O)music.o $(O)o_init.o
|
||||
VOBJ14 = $(O)objects.o $(O)objnam.o $(O)options.o $(O)pickup.o $(O)pline.o
|
||||
VOBJ15 = $(O)polyself.o $(O)potion.o $(O)quest.o $(O)questpgr.o $(O)pager.o
|
||||
VOBJ16 = $(O)pray.o $(O)priest.o $(O)read.o $(O)rect.o $(O)region.o
|
||||
VOBJ17 = $(O)report.o $(O)restore.o $(O)rip.o $(O)rnd.o $(O)role.o
|
||||
VOBJ18 = $(O)rumors.o $(O)save.o $(O)selvar.o $(O)sfstruct.o $(O)shk.o
|
||||
VOBJ19 = $(O)shknam.o $(O)sit.o $(O)sounds.o $(O)sp_lev.o $(O)spell.o
|
||||
VOBJ20 = $(O)stairs.o $(O)steal.o $(O)steed.o $(O)symbols.o $(O)sys.o
|
||||
VOBJ21 = $(O)teleport.o $(O)strutil.o $(O)termcap.o $(O)timeout.o $(O)topl.o
|
||||
VOBJ22 = $(O)topten.o $(O)trap.o $(O)u_init.o $(O)uhitm.o $(O)utf8map.o
|
||||
VOBJ23 = $(O)vault.o $(O)track.o $(O)vision.o $(O)weapon.o $(O)were.o
|
||||
VOBJ24 = $(O)wield.o $(O)windows.o $(O)wintty.o $(O)wizard.o $(O)wizcmds.o
|
||||
VOBJ25 = $(O)worm.o $(O)worn.o $(O)write.o $(O)zap.o $(O)light.o
|
||||
VOBJ26 = $(O)dlb.o $(REGEX)
|
||||
|
||||
SOBJ = $(O)msdos.o $(O)pcsys.o $(O)tty.o $(O)unix.o \
|
||||
$(O)video.o $(O)vidtxt.o $(O)pckeys.o
|
||||
|
||||
@@ -483,7 +483,7 @@ tty_start_screen(void)
|
||||
void
|
||||
gr_init(void)
|
||||
{
|
||||
windowprocs.wincap2 &= ~WC2_U_24BITCOLOR;
|
||||
windowprocs.wincap2 &= ~WC2_EXTRACOLORS;
|
||||
#ifdef SCREEN_VGA
|
||||
if (iflags.usevga) {
|
||||
vga_Init();
|
||||
|
||||
@@ -1102,11 +1102,9 @@ vesa_Init(void)
|
||||
vesa_SwitchMode(vesa_mode);
|
||||
vesa_SetViewPort();
|
||||
windowprocs.win_cliparound = vesa_cliparound;
|
||||
#ifdef ENHANCED_SYMBOLS
|
||||
if (vesa_pixel_size > 8) {
|
||||
windowprocs.wincap2 |= WC2_U_24BITCOLOR;
|
||||
windowprocs.wincap2 |= WC2_EXTRACOLORS;
|
||||
}
|
||||
#endif
|
||||
#ifdef TILES_IN_GLYPHMAP
|
||||
paletteptr = get_palette();
|
||||
iflags.tile_view = TRUE;
|
||||
|
||||
@@ -510,7 +510,7 @@ HACKCSRC = allmain.c alloc.c apply.c artifact.c attrib.c ball.c bones.c \
|
||||
dlb.c do.c do_name.c do_wear.c dog.c dogmove.c dokick.c dothrow.c \
|
||||
drawing.c dungeon.c eat.c end.c engrave.c exper.c explode.c \
|
||||
extralev.c files.c fountain.c hack.c hacklib.c \
|
||||
getpos.c insight.c invent.c isaac64.c light.c \
|
||||
getpos.c glyphs.c insight.c invent.c isaac64.c light.c \
|
||||
lock.c mail.c makemon.c mcastu.c mdlib.c mhitm.c \
|
||||
mhitu.c minion.c mklev.c mkmap.c mkmaze.c mkobj.c mkroom.c mon.c \
|
||||
mondata.c monmove.c monst.c mplayer.c mthrowu.c muse.c music.c \
|
||||
@@ -581,8 +581,8 @@ HOSTOBJ = $(FIRSTOBJ) alloc.o drawing.o
|
||||
HOBJ = $(TARGETPFX)allmain.o $(TARGETPFX)alloc.o \
|
||||
$(TARGETPFX)apply.o $(TARGETPFX)artifact.o $(TARGETPFX)attrib.o \
|
||||
$(TARGETPFX)ball.o $(TARGETPFX)bones.o $(TARGETPFX)botl.o \
|
||||
$(TARGETPFX)calendar.o \
|
||||
$(TARGETPFX)cmd.o $(TARGETPFX)coloratt.o $(TARGETPFX)dbridge.o $(TARGETPFX)decl.o \
|
||||
$(TARGETPFX)calendar.o $(TARGETPFX)cmd.o \
|
||||
$(TARGETPFX)coloratt.o $(TARGETPFX)dbridge.o $(TARGETPFX)decl.o \
|
||||
$(TARGETPFX)detect.o $(TARGETPFX)dig.o $(TARGETPFX)display.o \
|
||||
$(TARGETPFX)dlb.o $(TARGETPFX)do.o $(TARGETPFX)do_name.o \
|
||||
$(TARGETPFX)do_wear.o $(TARGETPFX)dog.o $(TARGETPFX)dogmove.o \
|
||||
@@ -590,10 +590,10 @@ HOBJ = $(TARGETPFX)allmain.o $(TARGETPFX)alloc.o \
|
||||
$(TARGETPFX)dungeon.o $(TARGETPFX)eat.o $(TARGETPFX)end.o \
|
||||
$(TARGETPFX)engrave.o $(TARGETPFX)exper.o $(TARGETPFX)explode.o \
|
||||
$(TARGETPFX)extralev.o $(TARGETPFX)files.o $(TARGETPFX)fountain.o \
|
||||
$(TARGETPFX)getpos.o $(TARGETPFX)hack.o $(TARGETPFX)insight.o \
|
||||
$(TARGETPFX)invent.o $(TARGETPFX)isaac64.o $(TARGETPFX)light.o \
|
||||
$(TARGETPFX)lock.o $(TARGETPFX)mail.o $(TARGETPFX)makemon.o \
|
||||
$(TARGETPFX)mcastu.o $(TARGETPFX)mdlib.o \
|
||||
$(TARGETPFX)getpos.o $(TARGETPFX)glyphs.o $(TARGETPFX)hack.o \
|
||||
$(TARGETPFX)insight.o $(TARGETPFX)invent.o $(TARGETPFX)isaac64.o \
|
||||
$(TARGETPFX)light.o $(TARGETPFX)lock.o $(TARGETPFX)mail.o \
|
||||
$(TARGETPFX)makemon.o $(TARGETPFX)mcastu.o $(TARGETPFX)mdlib.o \
|
||||
$(TARGETPFX)mhitm.o $(TARGETPFX)mhitu.o $(TARGETPFX)minion.o \
|
||||
$(TARGETPFX)mklev.o $(TARGETPFX)mkmap.o $(TARGETPFX)mkmaze.o \
|
||||
$(TARGETPFX)mkobj.o $(TARGETPFX)mkroom.o $(TARGETPFX)mon.o \
|
||||
@@ -611,17 +611,18 @@ HOBJ = $(TARGETPFX)allmain.o $(TARGETPFX)alloc.o \
|
||||
$(TARGETPFX)role.o $(TARGETPFX)rumors.o $(TARGETPFX)save.o \
|
||||
$(TARGETPFX)selvar.o $(TARGETPFX)sfstruct.o \
|
||||
$(TARGETPFX)shk.o $(TARGETPFX)shknam.o $(TARGETPFX)sit.o \
|
||||
$(TARGETPFX)sounds.o $(TARGETPFX)sp_lev.o $(TARGETPFX)spell.o $(TARGETPFX)stairs.o \
|
||||
$(TARGETPFX)symbols.o $(TARGETPFX)sys.o $(TARGETPFX)steal.o \
|
||||
$(TARGETPFX)steed.o $(TARGETPFX)strutil.o $(TARGETPFX)teleport.o \
|
||||
$(TARGETPFX)timeout.o $(TARGETPFX)topten.o $(TARGETPFX)track.o $(TARGETPFX)trap.o \
|
||||
$(TARGETPFX)u_init.o $(TARGETPFX)uhitm.o $(TARGETPFX)utf8map.o \
|
||||
$(TARGETPFX)vault.o $(TARGETPFX)vision.o $(TARGETPFX)weapon.o \
|
||||
$(TARGETPFX)sounds.o $(TARGETPFX)sp_lev.o $(TARGETPFX)spell.o \
|
||||
$(TARGETPFX)stairs.o $(TARGETPFX)symbols.o $(TARGETPFX)sys.o \
|
||||
$(TARGETPFX)steal.o $(TARGETPFX)steed.o $(TARGETPFX)strutil.o \
|
||||
$(TARGETPFX)teleport.o $(TARGETPFX)timeout.o $(TARGETPFX)topten.o \
|
||||
$(TARGETPFX)track.o $(TARGETPFX)trap.o $(TARGETPFX)u_init.o \
|
||||
$(TARGETPFX)uhitm.o $(TARGETPFX)utf8map.o $(TARGETPFX)vault.o \
|
||||
$(TARGETPFX)vision.o $(TARGETPFX)weapon.o \
|
||||
$(TARGETPFX)were.o $(TARGETPFX)wield.o $(TARGETPFX)windows.o \
|
||||
$(TARGETPFX)wizard.o $(TARGETPFX)wizcmds.o $(TARGETPFX)worm.o $(TARGETPFX)worn.o \
|
||||
$(TARGETPFX)write.o $(TARGETPFX)zap.o \
|
||||
$(TARGETPFX)wizard.o $(TARGETPFX)wizcmds.o $(TARGETPFX)worm.o \
|
||||
$(TARGETPFX)worn.o $(TARGETPFX)write.o $(TARGETPFX)zap.o \
|
||||
$(REGEXOBJ) $(RANDOBJ) $(SYSOBJ) $(WINOBJ) $(HINTOBJ) $(SNDLIBOBJ) \
|
||||
$(TARGETPFX)version.o
|
||||
$(TARGETPFX)version.o
|
||||
|
||||
DATE_O = $(TARGETPFX)date.o
|
||||
|
||||
@@ -1154,6 +1155,7 @@ $(TARGETPFX)files.o: files.c $(HACK_H) ../include/dlb.h ../include/wintty.h \
|
||||
#zlib.h
|
||||
$(TARGETPFX)fountain.o: fountain.c $(HACK_H)
|
||||
$(TARGETPFX)getpos.o: getpos.c $(HACK_H)
|
||||
$(TARGETPFX)glyphs.o: glyphs.c $(HACK_H)
|
||||
$(TARGETPFX)hack.o: hack.c $(HACK_H)
|
||||
$(TARGETPFX)hacklib.o: hacklib.c $(HACK_H)
|
||||
$(TARGETPFX)insight.o: insight.c $(HACK_H)
|
||||
|
||||
@@ -150,8 +150,8 @@ HACKCSRC = allmain.c alloc.c apply.c artifact.c attrib.c ball.c bones.c \
|
||||
botl.c calendar.c cmd.c coloratt.c dbridge.c decl.c detect.c dig.c \
|
||||
display.c dlb.c do.c do_name.c do_wear.c dog.c dogmove.c dokick.c \
|
||||
dothrow.c drawing.c dungeon.c eat.c end.c engrave.c exper.c \
|
||||
explode.c extralev.c files.c fountain.c getpos.c hack.c hacklib.c \
|
||||
insight.c invent.c light.c lock.c \
|
||||
explode.c extralev.c files.c fountain.c getpos.c glyphs.c hack.c \
|
||||
hacklib.c insight.c invent.c light.c lock.c \
|
||||
mail.c makemon.c mcastu.c mhitm.c mhitu.c minion.c \
|
||||
mklev.c mkmap.c mkmaze.c mkobj.c mkroom.c mon.c mondata.c \
|
||||
monmove.c monst.c mplayer.c mthrowu.c muse.c music.c o_init.c \
|
||||
@@ -196,8 +196,8 @@ HOBJ1 = allmain.obj,alloc.obj,apply.obj,artifact.obj,attrib.obj, \
|
||||
do.obj,do_name.obj,do_wear.obj
|
||||
HOBJ2 = dog.obj,dogmove.obj,dokick.obj,dothrow.obj,drawing.obj, \
|
||||
dungeon.obj,eat.obj,end.obj,engrave.obj,exper.obj,explode.obj, \
|
||||
extralev.obj,files.obj,fountain.obj,getpos.obj,hack.obj,hacklib.obj, \
|
||||
insight.obj,invent.obj
|
||||
extralev.obj,files.obj,fountain.obj,getpos.obj,glyphs.obj,hack.obj, \
|
||||
hacklib.obj,insight.obj,invent.obj
|
||||
HOBJ3 = light.obj,lock.obj,mail.obj,makemon.obj,mcastu.obj, \
|
||||
mhitm.obj,mhitu.obj,minion.obj,mklev.obj,mkmap.obj,mkmaze.obj, \
|
||||
mkobj.obj,mkroom.obj,mon.obj,mondata.obj,monmove.obj
|
||||
|
||||
@@ -118,8 +118,8 @@ HACKFILES := allmain alloc apply artifact attrib ball bones \
|
||||
botl calendar cmd coloratt dbridge decl detect dig display dlb do \
|
||||
do_name do_wear dog dogmove dokick dothrow drawing \
|
||||
dungeon eat end engrave exper explode extralev \
|
||||
files fountain getpos hack hacklib insight invent isaac64 light \
|
||||
lock mail makemon mcastu mdlib mhitm mhitu minion mklev \
|
||||
files fountain getpos glyphs hack hacklib insight invent isaac64 \
|
||||
light lock mail makemon mcastu mdlib mhitm mhitu minion mklev \
|
||||
mkmap mkmaze mkobj mkroom mon \
|
||||
mondata monmove monst mplayer mthrowu muse music \
|
||||
nhlua nhlsel nhlobj objnam o_init objects \
|
||||
@@ -700,7 +700,9 @@ $(TARGETPFX)attrib.obj: attrib.c $(HACK_H)
|
||||
$(TARGETPFX)ball.obj: ball.c $(HACK_H)
|
||||
$(TARGETPFX)bones.obj: bones.c $(HACK_H)
|
||||
$(TARGETPFX)botl.obj: botl.c $(HACK_H)
|
||||
$(TARGETPFX)calendar.obj: calendar.c $(HACK_H)
|
||||
$(TARGETPFX)cmd.obj: cmd.c $(HACK_H) $(INCL)func_tab.h
|
||||
$(TARGETPFX)coloratt.obj: coloratt.c $(HACK_H)
|
||||
$(TARGETPFX)dbridge.obj: dbridge.c $(HACK_H)
|
||||
$(TARGETPFX)decl.obj: decl.c $(HACK_H)
|
||||
$(TARGETPFX)detect.obj: detect.c $(HACK_H) $(INCL)artifact.h
|
||||
@@ -728,6 +730,8 @@ $(TARGETPFX)extralev.obj: extralev.c $(HACK_H)
|
||||
$(TARGETPFX)files.obj: files.c $(HACK_H) $(INCL)dlb.h $(INCL)wintty.h \
|
||||
#zlib.h
|
||||
$(TARGETPFX)fountain.obj: fountain.c $(HACK_H)
|
||||
$(TARGETPFX)getpos.obj: getpos.c $(HACK_H)
|
||||
$(TARGETPFX)glyphs.obj: glyphs.c $(HACK_H)
|
||||
$(TARGETPFX)hack.obj: hack.c $(HACK_H)
|
||||
$(TARGETPFX)hacklib.obj: hacklib.c $(HACK_H)
|
||||
$(TARGETPFX)insight.obj: insight.c $(HACK_H)
|
||||
@@ -791,12 +795,14 @@ $(TARGETPFX)questpgr.obj: questpgr.c $(HACK_H) $(INCL)dlb.h \
|
||||
$(TARGETPFX)read.obj: read.c $(HACK_H)
|
||||
$(TARGETPFX)rect.obj: rect.c $(HACK_H)
|
||||
$(TARGETPFX)region.obj: region.c $(HACK_H)
|
||||
$(TARGETPFX)report.obj: report.c $(HACK_H)
|
||||
$(TARGETPFX)restore.obj: restore.c $(HACK_H) $(INCL)tcap.h
|
||||
$(TARGETPFX)rip.obj: rip.c $(HACK_H)
|
||||
$(TARGETPFX)rnd.obj: rnd.c $(HACK_H) $(INCL)isaac64.h
|
||||
$(TARGETPFX)role.obj: role.c $(HACK_H)
|
||||
$(TARGETPFX)rumors.obj: rumors.c $(HACK_H) $(INCL)dlb.h
|
||||
$(TARGETPFX)save.obj: save.c $(HACK_H)
|
||||
$(TARGETPFX)selvar.obj: selvar.c $(HACK_H)
|
||||
$(TARGETPFX)sfstruct.obj: sfstruct.c $(HACK_H)
|
||||
$(TARGETPFX)shk.obj: shk.c $(HACK_H)
|
||||
$(TARGETPFX)shknam.obj: shknam.c $(HACK_H)
|
||||
@@ -804,6 +810,7 @@ $(TARGETPFX)sit.obj: sit.c $(HACK_H) $(INCL)artifact.h
|
||||
$(TARGETPFX)sounds.obj: sounds.c $(HACK_H)
|
||||
$(TARGETPFX)sp_lev.obj: sp_lev.c $(HACK_H) $(INCL)sp_lev.h
|
||||
$(TARGETPFX)spell.obj: spell.c $(HACK_H)
|
||||
$(TARGETPFX)stairs.obj: stairs.c $(HACK_H)
|
||||
$(TARGETPFX)steal.obj: steal.c $(HACK_H)
|
||||
$(TARGETPFX)steed.obj: steed.c $(HACK_H)
|
||||
$(TARGETPFX)symbols.obj: symbols.c $(HACK_H) $(INCL)tcap.h
|
||||
@@ -824,6 +831,7 @@ $(TARGETPFX)were.obj: were.c $(HACK_H)
|
||||
$(TARGETPFX)wield.obj: wield.c $(HACK_H)
|
||||
$(TARGETPFX)windows.obj: windows.c $(HACK_H) $(INCL)dlb.h $(INCL)wintty.h
|
||||
$(TARGETPFX)wizard.obj: wizard.c $(HACK_H)
|
||||
$(TARGETPFX)wizcmds.obj: wizcmds.c $(HACK_H)
|
||||
$(TARGETPFX)worm.obj: worm.c $(HACK_H)
|
||||
$(TARGETPFX)worn.obj: worn.c $(HACK_H)
|
||||
$(TARGETPFX)write.obj: write.c $(HACK_H)
|
||||
|
||||
@@ -423,7 +423,7 @@ $ gosub compile_list
|
||||
$ c_list = "allmain,apply,artifact,attrib,ball,bones,botl,calendar,cmd" -
|
||||
+ ",coloratt,dbridge,dothrow,drawing,detect,dig,display,do,do_name" -
|
||||
+ ",do_wear,dog,dogmove,dokick,dungeon,eat,end,engrave,exper,explode" -
|
||||
+ ",extralev,files,fountain,getpos"
|
||||
+ ",extralev,files,fountain,getpos,glyphs"
|
||||
$ gosub compile_list
|
||||
$ c_list = "hack,hacklib,insight,invent,light,lock,mail,makemon" -
|
||||
+ ",mcastu,mdlib,mhitm,mhitu,minion,mklev,mkmap,mkmaze" -
|
||||
|
||||
@@ -988,7 +988,7 @@ COREOBJS = $(addsuffix .o, allmain alloc apply artifact attrib ball bones botl \
|
||||
dbridge decl detect dig display dlb do do_name do_wear \
|
||||
dog dogmove dokick dothrow drawing dungeon \
|
||||
eat end engrave exper explode extralev files fountain \
|
||||
getpos hack insight invent isaac64 light lock \
|
||||
getpos glyphs hack insight invent isaac64 light lock \
|
||||
mail makemon mcastu mdlib mhitm mhitu minion mklev mkmap mkmaze mkobj mkroom \
|
||||
mon mondata monmove monst mplayer mthrowu muse music \
|
||||
nhlobj nhlsel nhlua windsound o_init objects objnam options \
|
||||
|
||||
@@ -509,7 +509,7 @@ HACKCSRC = allmain.c alloc.c apply.c artifact.c attrib.c ball.c bones.c \
|
||||
botl.c calendar.c cmd.c coloratt.c dbridge.c decl.c detect.c dig.c display.c \
|
||||
dlb.c do.c do_name.c do_wear.c dog.c dogmove.c dokick.c dothrow.c \
|
||||
drawing.c dungeon.c eat.c end.c engrave.c exper.c explode.c \
|
||||
files.c fountain.c hack.c \
|
||||
files.c fountain.c getpos.c glyphs.c hack.c \
|
||||
insight.c invent.c isaac64.c light.c \
|
||||
lock.c mail.c makemon.c mcastu.c mdlib.c mhitm.c \
|
||||
mhitu.c minion.c mklev.c mkmap.c mkmaze.c mkobj.c mkroom.c mon.c \
|
||||
@@ -517,9 +517,9 @@ HACKCSRC = allmain.c alloc.c apply.c artifact.c attrib.c ball.c bones.c \
|
||||
nhlua.c nhlsel.c nhlobj.c o_init.c objects.c objnam.c \
|
||||
options.c pager.c pickup.c pline.c polyself.c potion.c pray.c \
|
||||
priest.c quest.c questpgr.c read.c rect.c region.c restore.c \
|
||||
rip.c rnd.c role.c rumors.c save.c sfstruct.c \
|
||||
shk.c shknam.c sit.c sounds.c \
|
||||
sp_lev.c spell.c steal.c steed.c symbols.c sys.c teleport.c \
|
||||
rip.c rnd.c role.c rumors.c save.c selvar.c sfstruct.c \
|
||||
shk.c shknam.c sit.c sounds.c sp_lev.c spell.c \
|
||||
stairs.c steal.c steed.c symbols.c sys.c teleport.c \
|
||||
timeout.c topten.c track.c trap.c u_init.c uhitm.c utf8map.c \
|
||||
vault.c version.c vision.c weapon.c were.c wield.c \
|
||||
windows.c wizard.c worm.c worn.c write.c zap.c
|
||||
@@ -664,7 +664,7 @@ VTTYOBJ05 = $(OTTY)do_name.o $(OTTY)do_wear.o $(OTTY)dog.o $(OTTY)dogmove
|
||||
VTTYOBJ06 = $(OTTY)dothrow.o $(OTTY)drawing.o $(OTTY)dungeon.o $(OTTY)eat.o
|
||||
VTTYOBJ07 = $(OTTY)end.o $(OTTY)engrave.o $(OTTY)exper.o $(OTTY)explode.o
|
||||
VTTYOBJ08 = $(OTTY)extralev.o $(OTTY)files.o $(OTTY)fountain.o $(OTTY)getpos.o
|
||||
VTTYOBJ09 = $(OTTY)hack.o $(OTTY)insight.o $(OTTY)invent.o
|
||||
VTTYOBJ09 = $(OTTY)glyphs.o $(OTTY)hack.o $(OTTY)insight.o $(OTTY)invent.o
|
||||
VTTYOBJ10 = $(OTTY)isaac64.o $(OTTY)light.o $(OTTY)lock.o $(OTTY)mail.o
|
||||
VTTYOBJ11 = $(OTTY)makemon.o $(OTTY)mcastu.o $(OTTY)mhitm.o $(OTTY)mhitu.o
|
||||
VTTYOBJ12 = $(OTTY)minion.o $(OTTY)mklev.o $(OTTY)mkmap.o $(OTTY)mkmaze.o
|
||||
@@ -732,7 +732,7 @@ VGUIOBJ05 = $(OGUI)do_wear.o $(OGUI)dog.o $(OGUI)dogmove.o $(OGUI)dokick.
|
||||
VGUIOBJ06 = $(OGUI)dothrow.o $(OGUI)drawing.o $(OGUI)dungeon.o $(OGUI)eat.o
|
||||
VGUIOBJ07 = $(OGUI)end.o $(OGUI)engrave.o $(OGUI)exper.o $(OGUI)explode.o
|
||||
VGUIOBJ08 = $(OGUI)extralev.o $(OGUI)files.o $(OGUI)fountain.o $(OGUI)getpos.o
|
||||
VGUIOBJ09 = $(OGUI)hack.o $(OGUI)insight.o $(OGUI)invent.o
|
||||
VGUIOBJ09 = $(OGUI)glyphs.o $(OGUI)hack.o $(OGUI)insight.o $(OGUI)invent.o
|
||||
VGUIOBJ10 = $(OGUI)isaac64.o $(OGUI)light.o $(OGUI)lock.o $(OGUI)mail.o
|
||||
VGUIOBJ11 = $(OGUI)makemon.o $(OGUI)mcastu.o $(OGUI)mhitm.o $(OGUI)mhitu.o
|
||||
VGUIOBJ12 = $(OGUI)minion.o $(OGUI)mklev.o $(OGUI)mkmap.o $(OGUI)mkmaze.o
|
||||
@@ -2724,6 +2724,7 @@ $(OTTY)files.o: files.c $(HACK_H) $(INCL)\dlb.h \
|
||||
$(INCL)\wintty.h
|
||||
$(OTTY)fountain.o: fountain.c $(HACK_H)
|
||||
$(OTTY)getpos.o: getpos.c $(HACK_H)
|
||||
$(OTTY)glyphs.o: glyphs.c $(HACK_H)
|
||||
$(OTTY)hack.o: hack.c $(HACK_H)
|
||||
$(OTTY)hacklib.o: hacklib.c $(HACK_H)
|
||||
$(OTTY)insight.o: insight.c $(HACK_H)
|
||||
@@ -3097,6 +3098,7 @@ $(OGUI)files.o: files.c $(HACK_H) $(INCL)\dlb.h \
|
||||
$(INCL)\wintty.h
|
||||
$(OGUI)fountain.o: fountain.c $(HACK_H)
|
||||
$(OGUI)getpos.o: getpos.c $(HACK_H)
|
||||
$(OGUI)glyphs.o: glyphs.c $(HACK_H)
|
||||
$(OGUI)hack.o: hack.c $(HACK_H)
|
||||
$(OGUI)hacklib.o: hacklib.c $(HACK_H)
|
||||
$(OGUI)insight.o: insight.c $(HACK_H)
|
||||
|
||||
@@ -170,8 +170,9 @@ struct console_t {
|
||||
WORD background;
|
||||
WORD foreground;
|
||||
WORD attr;
|
||||
int current_nhcolor;
|
||||
int current_nhbkcolor;
|
||||
int32 current_nhcolor;
|
||||
int32 current_nhbkcolor;
|
||||
int32 current_colorflags;
|
||||
int current_nhattr[ATR_INVERSE+1];
|
||||
COORD cursor;
|
||||
HANDLE hConOut;
|
||||
@@ -207,6 +208,7 @@ struct console_t {
|
||||
0, /* attr */
|
||||
0, /* current_nhcolor */
|
||||
0, /* current_nhbkcolor */
|
||||
0, /* current_colorflags */
|
||||
{FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE},
|
||||
{0, 0}, /* cursor */
|
||||
NULL, /* hConOut*/
|
||||
@@ -693,8 +695,7 @@ emit_start_24bitcolor(long color24bit)
|
||||
{
|
||||
DWORD unused, reserved;
|
||||
static char tcolorbuf[QBUFSZ];
|
||||
long mcolor =
|
||||
(color24bit & 0xFFFFFF); /* color 0 has bit 0x1000000 set */
|
||||
uint32 mcolor = COLORVAL(color24bit);
|
||||
Snprintf(tcolorbuf, sizeof tcolorbuf, tcfmtstr24bit,
|
||||
((mcolor >> 16) & 0xFF), /* red */
|
||||
((mcolor >> 8) & 0xFF), /* green */
|
||||
@@ -1451,21 +1452,36 @@ g_pututf8(uint8 *sequence)
|
||||
}
|
||||
|
||||
void
|
||||
term_start_24bitcolor(struct unicode_representation *uval)
|
||||
term_start_extracolor(uint32 nhcolor)
|
||||
{
|
||||
#ifdef VIRTUAL_TERMINAL_SEQUENCES
|
||||
console.color24 = uval->ucolor; /* color 0 has bit 0x1000000 set */
|
||||
console.color256idx = uval->u256coloridx;
|
||||
if ((nhcolor & NH_BASIC_COLOR) == 0) {
|
||||
console.color24 = COLORVAL(nhcolor); /* color 0 has bit 0x1000000 set */
|
||||
console.current_colorflags = 0;
|
||||
} else {
|
||||
#endif
|
||||
/* NH_BASIC_COLOR */
|
||||
console.current_nhcolor = COLORVAL(nhcolor);
|
||||
console.current_colorflags = NH_BASIC_COLOR;
|
||||
term_start_color(console.current_nhcolor);
|
||||
#ifdef VIRTUAL_TERMINAL_SEQUENCES
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void term_start_256color(int idx)
|
||||
{
|
||||
console.color256idx = idx;
|
||||
}
|
||||
|
||||
void
|
||||
term_end_24bitcolor(void)
|
||||
term_end_extracolor(void)
|
||||
{
|
||||
#ifdef VIRTUAL_TERMINAL_SEQUENCES
|
||||
console.color24 = 0L;
|
||||
console.color256idx = 0;
|
||||
#endif
|
||||
console.current_nhcolor = NO_COLOR;
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user