Commit graph

154 commits

Author SHA1 Message Date
Simon Howard
954eeae87e Close dropdown list popup windows when clicking outside the window.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2323
2011-04-04 20:30:17 +00:00
Simon Howard
eac4192d1b Fix crash.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2322
2011-04-04 20:12:59 +00:00
Simon Howard
fe9fc9e107 Fix crash.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2321
2011-04-04 20:09:42 +00:00
Simon Howard
9f3f6683d9 Change the background color when hovering over widgets.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2320
2011-04-04 20:07:07 +00:00
Simon Howard
a69af94b58 Scroll faster in reaction to the scroll wheel.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2310
2011-03-27 23:45:53 +00:00
Simon Howard
e339efa45f Switch separator to show "screen mode" or "window size" depending on
whether fullscreen is turned on or not.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2308
2011-03-22 21:33:17 +00:00
Simon Howard
bc087b49e2 Fix scrollbars so that clicks scroll the pane to a location that matches
the clicked location. Interpret mousewheel events so that scroll panes
can be scrolled.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2307
2011-03-22 21:08:04 +00:00
Simon Howard
a366f68b29 Fix bug with libtextscreen where it was not possible to type a '+'
(thanks Alexandre Xavier).

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2249
2011-02-05 16:50:28 +00:00
Simon Howard
83fb03a0e0 When large numbers of screen resolutions are detected, increase the
number of columns in the mode list to fit them all on-screen. Remove
superfluous left-side spacing from the checkbox and radio button widgets
so that the modes can be packed closer together.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2242
2011-01-31 01:25:47 +00:00
Simon Howard
af3e4412d3 Change alignment of actions in a window's action area so that there is
equal space either side of the center widget. This is more aesthetically
pleasing.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2208
2010-12-10 20:43:05 +00:00
Simon Howard
56824b130b Replace txt_widget_t#selectable with a callback function to query
whether the widget is selectable. This stops the table code from
selecting things that aren't really selectable - eg. empty tables,
scrollpanes containing unselectable widgets, etc.
Fixes a bug with the warp menu (thanks Proteh).

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2207
2010-12-10 20:31:46 +00:00
Simon Howard
2a786cc67e Allow textscreen font to be overridden using the TEXTSCREEN_FONT command
line variable.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2195
2010-12-05 14:42:09 +00:00
Simon Howard
6f8ac36f66 Add textscreen Doxyfile to dist. Add .desktop file to svn:ignore. Add
opl ctags file to localvimrc.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1922
2010-04-30 19:38:24 +00:00
Simon Howard
a9e2d244a5 Add tags files to svn:ignore properties.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1828
2010-01-27 19:16:26 +00:00
Simon Howard
7972eefbf4 Fix textscreen black border bug.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1745
2009-12-12 01:20:49 +00:00
Simon Howard
9ea3cb62c9 Perform bounds checking on values passed to TXT_UpdateScreenArea() to
avoid crashes.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1728
2009-11-05 19:57:55 +00:00
Simon Howard
3771126689 Initial hacks for compiling under SDL 1.3.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1726
2009-10-26 19:28:12 +00:00
Simon Howard
410579ec66 Change British English spellings to American English, for consistency.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1699
2009-09-30 23:07:03 +00:00
Simon Howard
42f7a9b8a2 Use "const char" in libtextscreen where appropriate (thanks entryway).
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1679
2009-09-20 15:27:40 +00:00
Simon Howard
ec81c27ef5 Allow PGUP/PGDN to scroll up and down in scroll panes (thanks
LionsPhil).

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1631
2009-08-27 23:27:47 +00:00
Simon Howard
1715116ef1 Remove redundant variable assignment (thanks Quasar/Yagisan)
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1630
2009-07-20 22:27:59 +00:00
Simon Howard
779a2157c0 Grab the input in setup when reading a new key binding, so that Windows
CE buttons are read properly. Map buttons to PC function keys.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1594
2009-06-11 19:41:20 +00:00
Simon Howard
895f440628 Catch errors when initialising SDL. Use the small textscreen font by
default on Windows CE if no fullscreen modes are available.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1570
2009-06-07 16:41:46 +00:00
Simon Howard
0be19fa1fe Fix tags for functions using TXT_UNCAST_ARG.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1532
2009-05-26 22:14:24 +00:00
Simon Howard
21d67cd730 Make txt_inputboxes emit a "changed" signal when their value is changed.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1520
2009-05-12 18:01:27 +00:00
Simon Howard
5859134e1c Better ASCII chart.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1509
2009-05-05 00:00:53 +00:00
Simon Howard
3b2481de03 Minor smallfont fixups.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1508
2009-05-04 23:46:27 +00:00
Simon Howard
c944d2ab2f Add copyright headers to textscreen examples.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1505
2009-05-01 21:05:57 +00:00
Simon Howard
30c46a6d70 More smallfont fixups.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1504
2009-04-26 16:59:08 +00:00
Simon Howard
8f2df5e7cf Fix up some extended ASCII characters.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1503
2009-04-23 19:58:11 +00:00
Simon Howard
40d03a9c38 Oops.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1502
2009-04-23 18:19:52 +00:00
Simon Howard
c2a270f893 Add small textscreen font for low resolution displays, based on the
Atari-Small font by Tom Fine.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1501
2009-04-23 18:18:43 +00:00
Simon Howard
f9c51c1b5c Add "make doc" target to run Doxygen, and add a Doxyfile. Add @file tags
to start of header files so that Doxygen will process them.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1451
2009-03-08 22:51:25 +00:00
Simon Howard
11f9260535 Add documentation for high-level txt_desktop.h functions.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1450
2009-03-07 00:35:08 +00:00
Simon Howard
2b5dae761b Add documentation for high-level textscreen functions.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1449
2009-03-07 00:24:45 +00:00
Simon Howard
9b5d574982 Fix signed/unsigned conversion warning.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1448
2009-03-06 20:01:32 +00:00
Simon Howard
39b7cb7bb2 Fix layout of widgets within scroll panes. Scroll scroll panes in
response to keyboard events.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1440
2009-01-30 23:53:47 +00:00
Simon Howard
a6be65e608 Shrink text box slightly.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1439
2009-01-29 23:26:03 +00:00
Simon Howard
61361932bf Allow clicking within scroll bars to set position.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1438
2009-01-29 23:00:14 +00:00
Simon Howard
5a122d591e Add scrollable pane widget to textscreen library.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1437
2009-01-29 22:54:13 +00:00
Simon Howard
a0062502d1 Add SDL_CFLAGS, SDL_LDFLAGS to default compile flags, and check for SDL
in configure before checking for libraries and headers, to fix Windows.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1412
2008-12-09 19:56:43 +00:00
Simon Howard
9935860426 Add fixes for MSVC warnings (thanks entryway).
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1095
2008-02-28 20:04:10 +00:00
Simon Howard
65ed2a3208 Update chocolate-setup to the new screen mode config system.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1042
2008-02-04 22:43:11 +00:00
Simon Howard
75ce08abd6 #define inline to _inline in MSVC.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 976
2007-10-18 23:40:50 +00:00
Simon Howard
e4681dd485 Allow more than the standard three mouse buttons to be defined through
setup (hopefully)

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 939
2007-07-29 23:41:12 +00:00
Simon Howard
18a8a2ced6 Make the numeric keypad behave like Vanilla does.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 935
2007-07-08 20:53:18 +00:00
Simon Howard
7ecdb1bfab Add *.exe to svn:ignore.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 899
2007-06-09 18:00:19 +00:00
Simon Howard
9d7126c11b Rename txt_main.c to txt_sdl.c; add txt_sdl.h for SDL-specific API
functions, while keeping txt_main.h for the common API. Add
TXT_SDL_SetEventCallback to allow programs to intercept SDL events in
the textscreen main loop.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 892
2007-06-04 18:32:50 +00:00
Simon Howard
2e3e45cb9b Add TXT_SetWindowTitle function to wrap SDL_WM_SetCaption, so that
txt_desktop.c doesn't need to call SDL functions directly.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 885
2007-05-24 14:29:08 +00:00
Simon Howard
6a36c84b15 <SDL.h> -> "SDL.h"
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 866
2007-03-27 11:40:04 +00:00