xconq ./ChangeLog sdl/sdlcmd.c sdl/sdlconq.h s ...

shebs@sourceware.cygnus.com shebs@sourceware.cygnus.com
Mon Mar 26 09:14:00 GMT 2001


CVSROOT:	/cvs/xconq
Module name:	xconq
Changes by:	shebs@sources.redhat.com	2001-03-26 09:14:11

Modified files:
	.              : ChangeLog 
	sdl            : sdlcmd.c sdlconq.h sdlmain.c sdlscreen.c 

Log message:
	Add buttons to SDL interface, use for construction.  Also
	allow panels to be transparent, add mouseover help.
	* sdlconq.h (Panel overlay, label, buttons, numbuttons): New
	fields.
	(Button): New structure.
	* sdlmain.c (handle_mouse_down_in_panel): New function.
	(handle_mouse_down): Use it.
	* sdlscreen.c (create_panel): Add screen argument.
	(open_screen): Move panel_specific code to create_panel,
	add panel labels.
	(create_panel): Add a group of buttons.
	(set_panel_sizes): Account for transparent panels.
	(draw_panel): Only draw background if not transparent, tweak
	position of expand/contract button, draw buttons.
	(struct protobutton): New structure, info about possible
	buttons.
	(protobuttons, num_protobuttons, button_offset): New globals.
	(prev_button_fn, next_button_fn, build_button_fn): New functions.
	(update_unit_info): Fill in the bottom panel button with
	construction actions.
	(create_button, draw_button): New functions.
	(draw_world_map): Change calc to area to clear.
	* sdlcmd.c (impl_build): Make extern.
	
	* sdlmain.c (screen_oneliner): New function.
	(update_mouseover): Use it.
	* sdlscreen.c (draw_mouseover_panel): Ditto.



More information about the Xconq-cvs mailing list