Added a background to the help menu. Made textboxes support CTRL-<key>.
commitda8b4e5d35e2b165f0eb52abc19cb95abc1d6d10
authordwk <dwks@theprogrammingsite.com>
Fri, 13 Jun 2008 08:27:16 +0000 (13 02:27 -0600)
committerdwk <dwks@theprogrammingsite.com>
Fri, 13 Jun 2008 08:27:16 +0000 (13 02:27 -0600)
tree695442b842d39238e4f763de251115a42a5dc021
parentddfb88b4a617a285e49588e9b051d42a5dfa0136
Added a background to the help menu. Made textboxes support CTRL-<key>.

The help menu's background is a new NASA image of the Andromeda Galaxy
(M33).

The variables in src/CMakeLists.txt were shuffled around so that -g
could be added to all of the source files at once. The CMake build
system now creates debug executables.

Made CTRL-directional keys and CTRL-DELETE and CTRL-BACKSPACE work in
textboxes. When control is held down, these keys operate on words
instead of single characters. (Currently, everything that is not a space
is part of a word -- this may change.) move_cursor_word() might be too
clever for its own good.

Simplified help.c a little bit, and fixed a memory leak (fclose() was
not being called).

Notes:
- Removed some unnecessary #includes.
- Used set_widget_visibility() twice in menu.c, simplifying the code.
- Comboboxes now (always) have horizontal scrollbars, just to test it out.
- xuni is now over 14,000 lines long.
14 files changed:
TODO
gui/background/m33.jpg [new file with mode: 0644]
gui/data/help.xml
src/CMakeLists.txt
src/graphics.c
src/gui.c
src/gui.h
src/test/CMakeLists.txt
src/test/game.c
src/test/help.c
src/test/menu.c
src/test/options.c
src/widget/combobox.c
src/widget/image_tile.c