Commit Graph

227 Commits

Author SHA1 Message Date
Max Horn
bb210766ce scroll to caret if user types
svn-id: r5968
2002-12-14 22:10:37 +00:00
Max Horn
5c80aeaed6 improved caret
svn-id: r5967
2002-12-14 21:59:16 +00:00
Max Horn
09e8c84ca3 improved caret
svn-id: r5966
2002-12-14 21:57:30 +00:00
Max Horn
3af3741562 improved line editing; reworked various internal details
svn-id: r5965
2002-12-14 21:37:40 +00:00
Max Horn
534b4c4be4 added a scrollbar to console
svn-id: r5964
2002-12-14 20:04:46 +00:00
Max Horn
c5294a3528 added a simple prompt; added an edit caret; some other cleanup
svn-id: r5963
2002-12-14 18:57:15 +00:00
Max Horn
3575a2db06 fixed arrow/mouse wheel scrolling: now honors seperator items (i.e. you can't select the anymore); seperator items are now marked by an empty string
svn-id: r5961
2002-12-14 17:59:22 +00:00
Max Horn
531f758c66 changed console look&feel a little bit
svn-id: r5959
2002-12-14 16:08:37 +00:00
Max Horn
9fee7b2326 make alpha blend level adjustable, and fixed an overflow bug
svn-id: r5958
2002-12-14 16:07:26 +00:00
Max Horn
d30e577416 some more console code
svn-id: r5955
2002-12-14 15:45:45 +00:00
Max Horn
200c110f3d fixed typo
svn-id: r5953
2002-12-14 14:32:19 +00:00
Max Horn
b9b8045e1f moved the console code to gui/console.cpp; make it actually printout something. Note that this is WORK IN PROGRESS! I know it is incomplete, no need to tell me that
svn-id: r5952
2002-12-14 14:31:44 +00:00
Max Horn
96131f865c clarification
svn-id: r5951
2002-12-14 14:26:37 +00:00
Max Horn
7f46dc6690 cleanup
svn-id: r5947
2002-12-14 01:49:19 +00:00
Max Horn
7e90ae0102 added a dummy savepath setting; space gets scare, seems we really need tabs
svn-id: r5946
2002-12-14 01:49:08 +00:00
Max Horn
837f33e31b changed back transparency
svn-id: r5943
2002-12-13 23:34:07 +00:00
Max Horn
e01ecb3a7f added an API to query the list of available music drivers; cleanup
svn-id: r5942
2002-12-13 23:29:18 +00:00
Max Horn
e1b29ce16c playing a bit with the alpha level
svn-id: r5941
2002-12-13 23:17:47 +00:00
Max Horn
dbb6c8495a added seperator items (to show off :-), moved dialog a bit up
svn-id: r5940
2002-12-13 22:19:35 +00:00
Max Horn
b60cfbaf2f added support for seperator items; perform clipping if popup doesn't fit on screen
svn-id: r5939
2002-12-13 22:19:26 +00:00
Max Horn
d0dff9d727 added TODO comment
svn-id: r5938
2002-12-13 21:43:46 +00:00
Max Horn
7c9ba3a63a added keyboard & scroll wheel support
svn-id: r5937
2002-12-13 21:35:04 +00:00
Max Horn
4bf96d1c8b changed OSystem to allow RBG<->16bit color conversion to be done in the backend; after all, the backend 'knows' best what format the overlay uses. Default implementations of RBGToColor and colorToRBG assume 565 mode, backends other than SDL may want to provide alternate implementations (SDL backend already does the right thing for non-565 modes)
svn-id: r5931
2002-12-13 16:15:58 +00:00
Max Horn
1f64278abb fixup dummy options dialog a bit
svn-id: r5925
2002-12-13 01:42:31 +00:00
Max Horn
f4d78cd330 added timeout for popup; fixed notifcation sent when popup item is chosen
svn-id: r5920
2002-12-12 23:31:58 +00:00
Max Horn
2af8f20344 added a dummy global options dialog; PopUpWidget tweaks
svn-id: r5919
2002-12-12 23:22:48 +00:00
Max Horn
f6de146c5e changed the slider widget, better suited to represent volume settings this way (IMO)
svn-id: r5918
2002-12-12 23:21:29 +00:00
Max Horn
57d8bb978f added PopUpWidget; hacked it into the edit game dialog just to show how to use it; note: this is NOT finished by any means, the look will change, the code will change, this is just an early preview :-)
svn-id: r5914
2002-12-12 12:07:46 +00:00
Max Horn
7098159101 fixed launcher buttons again
svn-id: r5770
2002-12-01 12:47:13 +00:00
Max Horn
2450640218 fix for bug #646218 (Start button in launcher was not getting disabled)
svn-id: r5766
2002-12-01 02:04:55 +00:00
James Brown
850428d1a5 Add a few EditGame options. Honor game-specific fullScreen from the Launcher
svn-id: r5715
2002-11-25 09:43:22 +00:00
Max Horn
340a422425 removed debug printf
svn-id: r5696
2002-11-23 00:10:31 +00:00
Max Horn
0b82e20b00 improved keyboard input behaviour in SDL backend: make use of the unicode feature in SDL. This way, Shift-1 on my german keyboard generates ! not 1 (on an US keyboard it'll be a different symbol). Should fix bug #600258 and #551447
svn-id: r5692
2002-11-22 18:46:18 +00:00
Max Horn
17cf386e88 changed the key input system in NewGUI: pass both the keycode and the ascii value to handleKeyUp/Down. Also, use this to fix the key repeat code (see bug #626225)
svn-id: r5691
2002-11-22 14:02:54 +00:00
Max Horn
4165e1ceb4 cleanup
svn-id: r5674
2002-11-21 17:29:57 +00:00
Max Horn
293c6cc461 enhanced Config::rename_domain; added the ability to change the domain name in EditGameDialog
svn-id: r5673
2002-11-21 17:25:31 +00:00
Max Horn
3ceee2fc42 allow some more chars as input
svn-id: r5672
2002-11-21 17:24:42 +00:00
Max Horn
dd5e27f2c7 added missing right border
svn-id: r5671
2002-11-21 17:05:50 +00:00
Max Horn
73369f6f37 some fixes; hooked up the EditGameDialog (so changes to 'name' there actually take effect)
svn-id: r5670
2002-11-21 16:56:29 +00:00
Max Horn
32de70fb65 changed comments slightly
svn-id: r5667
2002-11-21 15:24:38 +00:00
Max Horn
9ff12dbc01 Implemented EditTextWidget; fixed Add Game/Remove Game in launcher; make use of EditTextWidget in EditGameDialog; various other tweaks
svn-id: r5665
2002-11-21 15:20:52 +00:00
Max Horn
5b59dc4019 implemented remove buttons; added EditGameDialog stub (it only displays some info, no edit possible yet); except for that, the 'Add Game' and 'Edit Game' buttons should be complete now
svn-id: r5663
2002-11-21 14:12:55 +00:00
Max Horn
fa312d3746 center dialog vertically, too; split overlong lines at whitespaces if posible
svn-id: r5661
2002-11-21 13:20:27 +00:00
Max Horn
7a5063f086 enhanced launcher: added 'Remove' button, renamed 'Configure...' to 'Edit Game...'; display warning dialog if 'Add Game...' can't find any game in the selected directory; show warnings dialogs for stuff that is NYI
svn-id: r5660
2002-11-21 13:11:29 +00:00
Max Horn
dec234c6a5 factored out ChooserDialog into it's own header/source file, and made the title adjustable; added a dummy file for EditFieldWidget (not implemented yet); some other cleanup
svn-id: r5658
2002-11-21 12:48:50 +00:00
Max Horn
69bceafc6e revamped build system somewhat: 'modules' like scumm, simon, gui etc. now all build into a lib, and all have a module.mk file that lists all their file. Advantage: further modularizes the build system, seperating all parts of ScummVM
svn-id: r5653
2002-11-21 04:08:37 +00:00
Max Horn
c5c1091613 added _configureButton stub
svn-id: r5652
2002-11-21 04:02:10 +00:00
Max Horn
e5257ac4fe added a chooser sub dialog used by 'Add Game'
svn-id: r5651
2002-11-21 03:51:07 +00:00
Max Horn
4896b55670 remember last directory (or rather, don't lobotomize yourself :-)
svn-id: r5647
2002-11-21 02:51:17 +00:00
Max Horn
2eb39f6497 lo and behold - the 'Add Game' button now works, at least in some cases! More to come...
svn-id: r5646
2002-11-21 02:19:02 +00:00
Max Horn
ce3cde15a0 added some preliminary game auto detect code to the launcher; this required a small change to the FS API, Windows/Morphos code will have to be adapted slightly I fear. Also, not all games are detected correctly, and some probably never will be, so we still have to add a dialog for cases where auto detect doesn't work
svn-id: r5600
2002-11-19 01:36:47 +00:00
Max Horn
eaa0e48741 enabled 'Go Up' button
svn-id: r5572
2002-11-15 17:54:49 +00:00
Max Horn
5be4474a9a don't crash when the list is empty
svn-id: r5569
2002-11-15 17:38:50 +00:00
Max Horn
bba16ed775 Browser already can display files and navigate down; TOOD: go up, choose
svn-id: r5551
2002-11-14 14:42:39 +00:00
Max Horn
e152733344 added completly useless non functional browser dialog skeleton. Just to show Endy I really have started working on it finally <g>
svn-id: r5547
2002-11-14 13:46:35 +00:00
Max Horn
287d45ff36 cleaned up Config::get_domain; fixed sorting in launcher
svn-id: r5541
2002-11-13 20:23:24 +00:00
Max Horn
76afd1d1a9 more initialisation fixes
svn-id: r5535
2002-11-13 15:20:08 +00:00
Max Horn
bc883a5f1a fixed dialog redrawing (when you switched in the save/load dialog between save and load mode, it would loose the transparency)
svn-id: r5512
2002-11-10 19:39:32 +00:00
Max Horn
42e6a81629 improved MessageDialog: long lines are split now (this needs improvement to favor splitting at spaces); maximum size is restricted to 300x180
svn-id: r5491
2002-11-10 14:53:28 +00:00
Max Horn
56a41a26c0 make buttons 2 pixel wider (fixes 'Options' button); don't use non-portable hack to swap ints
svn-id: r5427
2002-11-05 22:34:50 +00:00
Max Horn
5c0b145315 fix for bug #633087 (umlauts in GUI)
svn-id: r5426
2002-11-05 21:48:40 +00:00
Max Horn
d0d709627c clip text drawing
svn-id: r5416
2002-11-05 13:33:34 +00:00
James Brown
0e0701ade4 Get launcher to display aliased games as well as 'basic' games
svn-id: r5343
2002-10-28 10:40:49 +00:00
James Brown
29f335c15e Don't crash the launcher if there are no entries
svn-id: r5342
2002-10-28 10:24:27 +00:00
James Brown
959a9acf14 Add support for aliased scummvm config entries.
Eg:
 [germandott]
 path=/games/german/dott
 gameid=tentacle
 description=the german version of DOTT

I havn't finished the Launcher changes to show aliased entries yet, as I need to parse the whole domainmap to do so.

svn-id: r5341
2002-10-28 09:03:02 +00:00
Lionel Ulmer
ab3aecddd5 Fix warning found by Valgrind.
svn-id: r5314
2002-10-26 09:31:14 +00:00
Max Horn
4585debc18 use a 'real' caret instead of appending an understcore while editing
svn-id: r5289
2002-10-23 14:00:47 +00:00
Max Horn
ea828761a4 grrr... why did my commit not remove those?!
svn-id: r5275
2002-10-23 08:02:36 +00:00
Nicolas Bacca
3b7ce4fed1 Useless, just in order to compile without errors ...
svn-id: r5252
2002-10-22 22:35:35 +00:00
Nicolas Bacca
c585fe7a37 Do not repeat keys for WinCE (problems with GAPI and virtual keyboard)
svn-id: r5251
2002-10-22 22:35:07 +00:00
Max Horn
7198181b09 reworked the way the save/load dialog works. yup, still not perfect, but we're hopefully getting closer. Feedback welcome
svn-id: r5189
2002-10-19 01:22:41 +00:00
Max Horn
308a52a2ae added some TODO comments so that people know a bit better what is planned here (but also feel free to implement any of those before I get to it <g>)
svn-id: r5172
2002-10-17 22:43:13 +00:00
Max Horn
b1766c28b2 patch #620627: mouse wheel support for NewGui
svn-id: r5169
2002-10-16 20:32:12 +00:00
Max Horn
d5bcb63f82 dialogs now can be run 'modal'
svn-id: r5168
2002-10-16 17:37:30 +00:00
Max Horn
d8b72c31c9 sort the games in the launcher list by name
svn-id: r5154
2002-10-15 15:32:54 +00:00
Max Horn
42c7315eed some more launcher tweaks
svn-id: r5138
2002-10-13 11:51:48 +00:00
Max Horn
cdb7b13789 revised options dialog
svn-id: r5130
2002-10-12 00:26:24 +00:00
Max Horn
06d5fe86f5 Fix for bug #620854 (launcher crash)
svn-id: r5116
2002-10-09 19:32:54 +00:00
Max Horn
3d7552890a fixed ListWidget drawin/behaviour if there are less items than fit on one page; enhanced launcher dialog to disable start button if nothing is selected
svn-id: r5068
2002-10-01 23:11:19 +00:00
Max Horn
273e4b4740 fixed scrollbar drawing/response when there are less items than fit on one page
svn-id: r5066
2002-10-01 22:39:55 +00:00
Max Horn
8f7e3119bf fixed key repeat in NewGui; made the launcher game list non-editable
svn-id: r5052
2002-09-30 12:56:59 +00:00
Max Horn
d921d06d39 played a bit with the launcher - it now is already somewhat usable <g>
svn-id: r5047
2002-09-30 00:55:47 +00:00
Max Horn
94b55db821 patch #612722: MI2 NewGui title fix
svn-id: r5030
2002-09-28 19:25:09 +00:00
Max Horn
9dc5fe2a1d cleaned up various variable names in the SDL backend & NewGui; also fixed a small buglet that could cause garbage to appear behind the mouse cursor when closing NewGui while inside a game
svn-id: r5029
2002-09-28 16:19:28 +00:00
Max Horn
45877ea2dc changed the crosshair curso to match the Scumm one (I hope?)
svn-id: r5028
2002-09-28 15:58:25 +00:00
Max Horn
6024c80f14 added (currently completly useless) launcher dialog
svn-id: r5024
2002-09-27 23:27:14 +00:00
Max Horn
e674b9e2e2 enabled demo dialog shown during startup; some fixes/cleanup in NewGUI
svn-id: r5023
2002-09-27 13:06:58 +00:00
Max Horn
09f56dc233 some fixes for the message dialog; added some comments
svn-id: r5021
2002-09-26 12:29:10 +00:00
Max Horn
58e5e0069f added simple message dialog
svn-id: r5020
2002-09-26 11:44:02 +00:00
Max Horn
1bfaa3c02f removed even the last traces of Scumm dependencies from NewGUI. Yes, you heard right NewGUI is now 100% Scumm free and we can go for the launcher/message dialogs!
svn-id: r5016
2002-09-24 23:45:25 +00:00
Max Horn
6bb2e335c7 NewGUI now has its own event loop; this may cause some regression
svn-id: r5001
2002-09-22 04:03:45 +00:00
Matt Hargett
8390b0cc53 2002-09-21 Matt Hargett <matt@use.net>
* scumm.dsp, scummvm.dsp, simon.dsp: Turn on warning as errors. Generate
    PDBs on all builds.

  * gameDetector.cpp, newgui.cpp, widget.cpp, actor.cpp,
    dialogs.cpp, resource.cpp, saveload.cpp, scumm_renderer.cpp:
    Fix warnings where possible. One pragma added to eliminate
    warning of unknown pragmas.

  * string.cpp: If unknown escape sequence, print warning.

svn-id: r4998
2002-09-22 03:53:53 +00:00
Max Horn
a681eb029e renamec string -> _string and sentence -> _sentence in class Scumm (I originally reworked StringTab, but then noticed the save game format depends on it <sigh>)
svn-id: r4995
2002-09-22 01:17:53 +00:00
Max Horn
f838473c25 NewGui now has its own mouse cursor code -> again one less dependency on Scumm; moved makeCursorColorTransparent to gfx.cpp where it belongs
svn-id: r4977
2002-09-19 23:06:54 +00:00
Max Horn
85aa2cd8e8 found out that guifont actually contains a char width table -> make use of it now
svn-id: r4976
2002-09-19 22:37:00 +00:00
Max Horn
5f716f54f0 removed obsolete font drawing code from old GUI to make CCCP happy :-)
svn-id: r4975
2002-09-19 22:07:46 +00:00
Max Horn
9939746022 removed even more scumm dependencies from NewGUI; fixed some redraw issues (this might help the inventory-display issue in The Dig, and definitly fixes the 'vanishing volcanoe' in the FOA extro)
svn-id: r4974
2002-09-19 21:45:56 +00:00
Max Horn
859ef578dc moved the Scumm specific dialogs to scumm/dialogs.*
svn-id: r4973
2002-09-19 17:44:41 +00:00
Max Horn
f644bea112 improved the text display in a newgui a bit: make the font proportiona; implemented text alignment (left/right/center); alpha blending now not anymore at 50% but at 66%; moved some #defines to util.h
svn-id: r4972
2002-09-19 17:03:24 +00:00
Max Horn
bb57506d48 Added overlay to OSystem interface; implemented overlay in SDL backend (all other backends, including SDL_gl, still need to implement this!); changed NewGUI to make use of the overlay; added Cmd-Q as a shortcut for Quit on MacOS X
svn-id: r4971
2002-09-19 16:06:51 +00:00