Commit graph

163 commits

Author SHA1 Message Date
Simon Howard
d4df22aa1e Beginnings of limited textscreen UTF-8 support.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2487
2012-02-02 23:35:16 +00:00
Simon Howard
1138de4fb6 Fix scroll bar behavior (thanks Alexandre Xavier).
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2484
2012-02-02 21:10:20 +00:00
Simon Howard
cc87c97e4b Fix numeric keypad when entering values in text boxes (thanks Twelve).
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2463
2011-10-23 19:53:06 +00:00
Simon Howard
8ee96dadb9 Fix crash when closing a window.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2462
2011-10-23 19:42:43 +00:00
Simon Howard
cc7a430448 Don't save value when destructor is called.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2461
2011-10-23 19:28:10 +00:00
Simon Howard
dd52766c7b Rework textscreen focus handling so that input boxes will stop editing
when they lose their focus (thanks Twelve).

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2460
2011-10-23 19:25:55 +00:00
Simon Howard
30952764cf Fix libtextscreen window hotkeys to work when shift is held down /
capslock turned on. Fix a similar problem in-game when typing cheat
codes or using menu hotkeys (thanks Alexandre Xavier).

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2327
2011-04-17 17:33:04 +00:00
Simon Howard
eb86fcdf30 Allow the shift key to be held down when changing key/mouse/joystick
bindings to prevent bindings to the same key from being cleared (thanks
myk).

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2325
2011-04-11 19:49:45 +00:00
Simon Howard
d4ef7c3772 Fix action area minimum width calculation.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2324
2011-04-09 00:27:13 +00:00
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