Commit graph

56 commits

Author SHA1 Message Date
zicodxx d2365d65f0 Simplification of palette code; Properly screen clearing in SDL-only build when palette changes; Removed obsolete functions like gr_update (replaced by gr_flip), gr_palette_fade_in/out, gr_palette_clear; Added functionality to render Automap while menu display as well; Improved blocking of some controls code while Automap active; Fixed some compiler warnings 2008-03-20 23:23:46 +00:00
zicodxx 6479a897b2 Fixed some memory issues; Fixed some HUD element alignment; Only send NetDrv packets if NetDrvInstalled is true; Fixed demo glitches; Actually using Game_mode in demos to make Newdemo_game_mode hacking obsolete 2008-03-08 22:37:09 +00:00
zicodxx 10f39559bf Fixed wrong font width spacing, -gl_prshot, mission loading, null-terminatinon in several menus, cockpit glitch; Improved gl_reticle, -noredundancy; Some code cleanup 2008-02-27 22:05:58 +00:00
zicodxx f3d8d50a94 Reworked fonts routines - makes easier to expand and scale correctly; Reworked menus with better border scaling, improved rendering and cleanups; Improved font priniting ingame, better alignment; Reworked Netgame list; Real Doublebuffering in SDL-mode; Removed old and unused sources 2008-02-24 14:41:27 +00:00
zicodxx 46c229a572 Renaming udp.* to netdrv_udp.* to fit naming convention; Small menu ui fixes 2008-01-29 15:57:59 +00:00
zicodxx 64f760e4f0 Removed SDL Gammaramp code (obsolete); Improvements on Demo code 2008-01-13 13:32:06 +00:00
zicodxx 66ed0f62f1 Removed SDL Gammaramp code (obsolete); Improvements on Demo code 2008-01-13 13:27:58 +00:00
zicodxx 2f60e0ae31 Safe timer rollover in menu idle-demo function; Reintroduced menu shortcuts; Implemented support for menu scrolling if nitems > 15 2008-01-08 21:02:06 +00:00
zicodxx df7a1ca071 Introduced timer_delay2 as replacement for timer_delay to sleep according to given FPS rate considering calc time between frames 2007-11-21 12:46:09 +00:00
zicodxx c3b0baa1c3 Memory stuff 2007-10-29 21:40:49 +00:00
zicodxx 4ee1ca5020 Using FONTSCALE_X instead of MENSCALE_X to scale netlist tabs 2007-10-28 21:52:10 +00:00
zicodxx f80b7223f6 Fixed size of kconfig_sub_table background; Fixed problems caused by use of load_stars() 2007-10-06 14:51:30 +00:00
zicodxx e955dff203 Updated docs; Removed GP2X support since I won't support this device anymore 2007-09-28 22:44:04 +00:00
zicodxx f8d02edc55 Small fixes for new netgame info screen; Fixed PING routines; Once again fixed some newmenu mouse actions 2007-09-26 18:32:00 +00:00
zicodxx 98fb90209b Removed key shortcuts for menus; Correctly aligned ScrollBox arrows; ScrollOffset now increments earlier is scrolling is done with keys; Fixed width for menu mouse selections; Fxied mouse selector for submenus in ScrollBoxes; Using defines for Arrow-chars in Weapon reordering 2007-09-24 08:05:56 +00:00
zicodxx 9eb7dfc112 Code-cleanup; Implemented new multi profile feature 2007-09-20 14:22:57 +00:00
zicodxx 7316f617a3 Fixed some mem-leaks; Made show_fullscr() use ogl_ubitmapm_cs(); Removed use of glScissor for menus - using Blitting; Code cleanup 2007-08-27 23:01:34 +00:00
zicodxx e655c3115b Fixed excessive use of set_screen_mode; Menu fixes; Better way to determinate Scollboxes 2007-08-08 18:07:21 +00:00
zicodxx 2bc4cd32bb Cleanup in Config- and PLX-code; Saving Resolution in Config file so it will apply directly at game-init; Removed seperated resolution mode for menus, SCREEN_MENU now always uses Game_screen_mode; Last FindArg cleanups; Removed MenuHires(Available) and FontHires(Available) and replaced with HiresGFX(Available) to make a more common way to determinate if Hires data is used or not (interactive Demo); Improved support for Interactive Demo 2007-07-26 23:57:29 +00:00
zicodxx 928a542b88 Removed old Tactile-code since ForceFeedback is currently out of question 2007-07-22 02:01:02 +00:00
zicodxx 860b964ee4 Code cleanup and small fixes 2007-07-22 01:34:00 +00:00
zicodxx 29ef28bef3 Cleaned up more FindArg's - (most important) OpenGL Options 2007-07-15 21:22:07 +00:00
zicodxx 8efe1ea653 Placing FindArg calls to seperated function, putting variables to a struct - frist step, not finished, yet; Large code cleanup 2007-07-14 20:33:42 +00:00
zicodxx 0aa3fc1acf adjusted size of Inputbox; code cleanup for saving/restoring state; also display savegame thumbnail when saving game 2007-06-16 08:14:00 +00:00
zicodxx cf14254e01 small code cleanup; improved texture caching in menus to save RAM 2007-06-15 12:32:44 +00:00
zicodxx e22e079b56 fixed a bunch of compiler warnings 2007-06-11 09:06:14 +00:00
zicodxx 5f26019972 improved pixel-correct (almost) scaling of menus; new Netgame info screen which can show up necessary game rules 2007-05-31 22:30:18 +00:00
kreatordxx fd8471138f add use_players_dir argument, which puts player files and saved games in Players subdirectory, like original Mac D2 folder layout 2007-05-21 11:24:27 +00:00
zicodxx c2270758ef free grabbed mouse in Demo Playback; improved Player-files deletion 2007-05-16 11:26:34 +00:00
zicodxx f20ec1e42e Added config field to map a Mouse Axis/Wheel to cycle Primary and Secondary weapons; lots of controls-related code cleaning 2007-05-14 13:38:44 +00:00
zicodxx d758d1bda6 update viewing values at Fullscreen Toggle; added Fullscreen Toggle to Menus and Demo Playback 2007-05-09 09:44:45 +00:00
zicodxx 5ba9f82e76 only draw copyright stuff if there is really the menu background (not being changed by draw_stars()) 2007-04-15 06:51:35 +00:00
zicodxx 898ad2913d introducing kconfig_sub_draw_table() making it possible to redraw configuration tables with OGL swapping and clearing; increased timer_delay for menus and briefings to save more CPU usage 2007-04-14 08:43:49 +00:00
kreatordxx 4ff4ddd0a3 include SDL/SDL.h for all platforms and physfs/physfs.h for Mac OS X to avoid having to add some hard-coded include paths 2007-04-09 02:41:45 +00:00
zicodxx 71c9c5d87a hide cursor after newmenu_get_filename() 2007-04-07 13:57:17 +00:00
zicodxx dc5aabc757 close menu with boxed message; improved palette reloading; fixed selected item for restore game dialog 2007-04-04 17:18:17 +00:00
zicodxx 6145aaa2c9 clear HUD-Messages if a Demo starts so old messages do not appear; also set gr_palette_load() in nm_draw_background1 so palette resets if Demo-playback is cancelled 2007-04-03 22:12:54 +00:00
zicodxx 6f8fb1e1ed palette reloading sets at every newmenu_close() 2007-04-02 05:42:59 +00:00
zicodxx 708371c331 moved gr_palette_load() in nm_draw_background so it always does apply and resets step-ups properly 2007-03-31 21:40:38 +00:00
kreatordxx a50d211aa4 move variable declarations to the top for non-gcc compilers (like MrC for MPW) 2007-03-31 00:37:58 +00:00
zicodxx 02212354b1 palette-related fixes for Doublebuffered menus; fixes for SDL-build 2007-03-29 00:13:08 +00:00
zicodxx 0656621186 do not close movies for now to prevent leaks (PhysFS should do that); fixed crash with malformed N_players if Netgame start is forced in DEBUG; improved briefing screen loading and delay; made wall warning-message not show up in NDEBUG (non-critical) 2007-03-25 09:18:22 +00:00
kreatordxx 0c30130ca5 draw mine view directly to screen for non-OpenGL build, no using an offscreen buffer (will use SDL_Flip later) 2007-03-24 04:37:33 +00:00
zicodxx b41a8a437a Use Doublebuffer in OGL for all parts of the game and properly redraw elements, fixed Profiler build 2007-03-22 11:32:22 +00:00
zicodxx c0643d8b23 implemented expanded Joystick configuration panel (Thanks xatmes); corrected draw functions for kconfig_sub() and Scoreboard to show them correct in non 4/3 aspects; corrected Close-boxes for Mouse Menu control 2007-03-06 10:36:37 +00:00
zicodxx 8756f8f065 some menu fixes 2007-03-03 18:27:55 +00:00
zicodxx ef1a1de34b joystick axes can be reassigned; higher offset for axes moving detection; correction for menus that are bigger than screen 2007-01-10 00:50:36 +00:00
kreatordxx d698e87960 warning fixes for gcc 4.0 2006-12-24 09:15:37 +00:00
zicodxx 3d3188473b GP2X handheld support; added SConstruct file (MAC support incomplete); code optimisations for software renderer; fixed memleaks 2006-12-19 02:25:50 +00:00
zicodxx a1dcf39e3b if player is deleted also delete PLX file; removed date strings, not necessary; added Menu_special 2006-10-10 09:53:58 +00:00