From mboxrd@z Thu Jan 1 00:00:00 1970 From: shebs@sourceware.cygnus.com To: xconq-cvs@sourceware.cygnus.com Subject: xconq ./ChangeLog sdl/sdlcmd.c sdl/sdlconq.h s ... Date: Mon, 26 Mar 2001 09:14:00 -0000 Message-id: <20010326171411.4710.qmail@sourceware.cygnus.com> X-SW-Source: 2001/msg00079.html List-Id: 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.