Commit Graph

  • 7f47d0adf4 Cargo menu cleanup: MENU_STATE.CurState is now 0-based; split drawing into functions; added symbolic positioning constants; moved colors to colors.h; not relying on MENU_STATE.Initialized avolkov 2009-12-12 07:50:45 +00:00
  • 4fbe2c2477 Cleanup of game options menus: not reusing MENU_STATE anymore; clear sub-menu functions; not relying on MENU_STATE.Initialized; clearer Load from Main menu (not perfect); clearer CurrentActivity flags manipulation avolkov 2009-12-12 04:45:15 +00:00
  • 7365b09a95 Save/load UI cleanup: own MENU_STATE; MENU_STATE hacks removed; fully redrawing the summary every time for simplicity and better color-matching avolkov 2009-12-12 00:34:07 +00:00
  • 3d68c686ea Correct sentence. Meep-Eep 2009-12-11 23:19:36 +00:00
  • 2057e5e2bd Full screen transitions do not need to specify a rect avolkov 2009-12-11 18:46:09 +00:00
  • c984f9c48c Removed a comment that is not relevant anymore avolkov 2009-12-11 18:21:52 +00:00
  • c9d6ee1bda Cleanup: remove MENU_STATE.flash_task completely avolkov 2009-12-10 21:44:21 +00:00
  • f6a1b6973b Remove pSolarSysState->MenuState completely avolkov 2009-12-10 21:34:12 +00:00
  • c0eb61d875 Dead variable MENU_STATE.MenuRepeatDelay removed avolkov 2009-12-10 21:01:05 +00:00
  • bce2dc0933 Remove the last dependencies on pSolarSysState->MenuState.Initialized; replaced with SOLARSYS_STATE.InOrbit avolkov 2009-12-10 20:52:20 +00:00
  • 0ff2a62648 Do not make users wait for fades when closing the game avolkov 2009-12-10 19:03:57 +00:00
  • 5415199305 Cleanup: TaskContext removed; the only place using it now has an own context avolkov 2009-12-10 09:41:31 +00:00
  • 212f9a68ea Keep 'Entering planetary orbit...' screen on while a planet is zooming in avolkov 2009-12-10 09:26:57 +00:00
  • 70e7ae8204 Remove one more dependance on pSolarSysState->MenuState.Initialized avolkov 2009-12-10 09:11:44 +00:00
  • 742f64ac4c Fixes devices menu after loading directly into planet orbit, broken by r3393 (planet rotation task removal) avolkov 2009-12-10 08:50:35 +00:00
  • 1d508c0b4c Screen fade task retired; also replace XFormColorMap() hacks with a separate new call FadeScreen() avolkov 2009-12-10 08:23:51 +00:00
  • 2d13f9a9d7 Music fade task retired; also absolve audio drivers from managing the stream decoder task avolkov 2009-12-10 04:38:35 +00:00
  • 4dfdd607ad Credits task retired; credits drawing is now a callback of DoInput avolkov 2009-12-09 23:43:40 +00:00
  • a8aaba1485 Cleaner use of background/foreground colors in presentations avolkov 2009-12-08 22:59:23 +00:00
  • 63f66cf010 Use SaveContextFrame() where appropriate avolkov 2009-12-08 22:46:15 +00:00
  • 939fc2e5db Better context drawing origin semantics; also chaser fix for foreground frame hotspot left broken in r3401 avolkov 2009-12-08 21:50:16 +00:00
  • 4ad67018fa Change GetContextClipRect() semantics so that a valid rect is always filled in; added some gfx predicate functions, not used everywhere yet avolkov 2009-12-08 20:58:18 +00:00
  • 5976a133dd Some graphics primitives scaling comments and consistency edits avolkov 2009-12-08 19:11:29 +00:00
  • 2e3dfee3cd Dead batching flags removed avolkov 2009-12-08 17:01:38 +00:00
  • 3c63c20371 Dead context clipping flag removed avolkov 2009-12-08 16:55:56 +00:00
  • a8ea62eeb0 Uncouple text drawing from batching avolkov 2009-12-08 16:37:52 +00:00
  • fb48357a54 Make context cliprect + foreground frame hotspot semantics actually sane; do not hack _CurFramePtr->HotSpot avolkov 2009-12-07 23:23:46 +00:00
  • 723d4ec110 Expand 'sf.net'; list another web page. Meep-Eep 2009-12-07 22:01:26 +00:00
  • 7334ca7eea A few cleanups. Meep-Eep 2009-12-07 21:56:24 +00:00
  • 6e83a1df99 Fix harmless compilation warning. Meep-Eep 2009-12-07 21:54:22 +00:00
  • 9940281f1a LockMutext(GraphicsLock) before SetContext() Meep-Eep 2009-12-07 21:42:59 +00:00
  • d93037c045 Updated. Meep-Eep 2009-12-07 19:56:32 +00:00
  • 8e1875fdb6 Hangar animation is now a DoInput callback; now works in Game menu too avolkov 2009-12-05 23:27:06 +00:00
  • 890b844edb Fixed planet blinking when exiting scan; bug #799 avolkov 2009-12-05 22:38:37 +00:00
  • e151b933f8 Planet rotation task retired; this introduces a DoInput frame callback and lays the foundation for the removal of credits task avolkov 2009-12-05 22:15:23 +00:00
  • 8b61f282d0 Typo. Meep-Eep 2009-12-05 17:04:20 +00:00
  • 240dc2d78d Split planet rotation code into sensible functions in preparation for dethreading; some cleanups avolkov 2009-12-05 02:26:29 +00:00
  • b98aff0d7f Planet surface and sphere cleanup: names, casts, horrible code; some comments avolkov 2009-12-04 20:38:52 +00:00
  • c3f408a9b8 Restore arrow menu sounds after editing a control set name; bug #1066 avolkov 2009-12-04 18:24:15 +00:00
  • f59b1f9e8e Cleanup of key repeat set functions usage avolkov 2009-12-04 00:12:12 +00:00
  • af0c63d3dc Small solar system menu fix avolkov 2009-12-03 22:38:07 +00:00
  • 75e3ab16e6 Small ipdisp clarification avolkov 2009-12-03 22:28:40 +00:00
  • 2cba7e4942 Cleanup: use IP location<->display conversion functions; some ipdisp clarifications avolkov 2009-12-03 21:36:32 +00:00
  • b0bdc9e7b3 Refactored solar system drawing, now using a straightforward approach; unexpected function side-effects mostly removed (that model/view thing); some cleanups avolkov 2009-12-03 03:54:12 +00:00
  • 11ae7a4334 Remove more draw_sys_flags via a refactoring of system view saving code; this will lead to a simplification of system transitions avolkov 2009-12-01 23:23:09 +00:00
  • 3453867e92 Cleanup: unused graphics calls removed avolkov 2009-12-01 21:48:38 +00:00
  • d7e628a7c2 Removal of unused DRAW_PLANETS and DRAW_ORBITS flags avolkov 2009-12-01 20:52:44 +00:00
  • e90739a1d2 Smooth solar system zoom experiment fixed, uncomment #define SMOOTH_SYSTEM_ZOOM to try; some cleanups avolkov 2009-12-01 20:43:33 +00:00
  • 9562043687 Cleanup of some of the pSolarSysState references avolkov 2009-12-01 17:18:26 +00:00
  • d050f79cb6 Split DoFlagshipCommands() into separate menu functions for IP, Orbital and Hyperspace; this allowed for some solarsys and manifest menu cleanups; temporary pBaseDesc setups removed; some invariant tests removed; some code moved around to more appropriate places avolkov 2009-11-30 21:57:13 +00:00
  • 273a9933bb Split off unicode.h from strlib.h. Meep-Eep 2009-11-30 20:37:10 +00:00
  • c863198a12 Remove warning. Meep-Eep 2009-11-30 20:11:56 +00:00
  • a6a7b843d0 Use an own 'UniChar' rather than 'wchar_t', which may not be large enough, depending on the platform. Also split off UNICODE functionality from strlib.h into unicode.h. Meep-Eep 2009-11-30 20:09:57 +00:00
  • 5e4b5c3c5f Clean up DeltaSISGauges a bit more. Meep-Eep 2009-11-30 18:52:15 +00:00
  • 1d07ed79a2 Little fix. Meep-Eep 2009-11-30 17:44:59 +00:00
  • b5824cca45 Little fix. Meep-Eep 2009-11-30 17:43:30 +00:00
  • 375909497e Small MSVC compilation fix avolkov 2009-11-30 14:58:10 +00:00
  • 75c11e7822 Added 'COLOR' resource type. Meep-Eep 2009-11-29 23:32:02 +00:00
  • 85a10c006c Drawing functions take their color as a Color argument, instead of as separate r, g, and b arguments. This paves the way for using draw operations with an alpha channel. Meep-Eep 2009-11-29 19:54:51 +00:00
  • b67323f0b4 Alpha value of 0xff is fully opaque Meep-Eep 2009-11-29 19:11:51 +00:00
  • e6b2bc9930 All graphics operations use 24-bits colors at the game level too now, instead of 16 bits colors. Using a structure 'Color' instead of 'COLOR' and 'TFB_Palette' now. Meep-Eep 2009-11-29 15:29:38 +00:00
  • af41b0f118 Fix warning. Meep-Eep 2009-11-28 22:06:18 +00:00
  • 7405dbcf55 Remove another dependency on the VGA palette index in COLOR. Meep-Eep 2009-11-28 20:43:08 +00:00
  • cf6a9378ef Removed another dependency on the VGA register byte in COLOR. Meep-Eep 2009-11-28 20:03:05 +00:00
  • ef66877a29 Move MSVC welfare (v)snprintf() functions to utils.c. Meep-Eep 2009-11-28 19:44:10 +00:00
  • 4c4a80c64b MSVC compilation fix for vsnprintf() avolkov 2009-11-28 19:21:08 +00:00
  • 1c6b9baa73 Make snprintf/vsnprintf more compatible with the C standard on MSVC. Meep-Eep 2009-11-28 18:00:46 +00:00
  • 441b7d9cdf Remove dependency on VGA index field in COLOR. Meep-Eep 2009-11-28 16:36:40 +00:00
  • c0481ea13c Remove another dependency on the VGA register field in a COLOR. Meep-Eep 2009-11-28 16:23:36 +00:00
  • e3862aefcd Get rid of one abuse of the vga palette index of a COLOR to store state. Meep-Eep 2009-11-28 15:07:38 +00:00
  • 74c013217e Cleanups. Meep-Eep 2009-11-28 13:46:56 +00:00
  • 2c63415b36 Cleanups; separate model from view in some functions. Meep-Eep 2009-11-28 01:53:47 +00:00
  • 98dbf1431b Comm animations task retired; Talking Pet mind control strobe reworked into an ambient animation; potential buffer overflow and potential wrong summary context fixed (counts towards bug #576) avolkov 2009-11-26 17:10:02 +00:00
  • 0489a89e70 Fold two input-dependent comm functions into DoInput() paradigm avolkov 2009-11-25 21:43:48 +00:00
  • 27e4e770cc Remove last pSolarSysState reference from generate functions avolkov 2009-11-25 12:48:27 +00:00
  • b3c85f3c19 Restore tab indentation avolkov 2009-11-25 12:08:01 +00:00
  • 7dde9add97 Use buffer size aware string func variants avolkov 2009-11-25 11:55:19 +00:00
  • 76abf75aaa Improved safemode; --safe option now ignores uqm.cfg entirely. mcmartin 2009-11-25 03:40:49 +00:00
  • 700305b994 Fix some format string warnings mcmartin 2009-11-25 03:38:49 +00:00
  • bd640f38dc Add a SOLARSYS_STATE parameter to initNpcs(), reinitNpcs(), and uninitNpcs(). Meep-Eep 2009-11-24 18:40:38 +00:00
  • f2c5cb505a Cleanup: unused hacky REPAIR_SCAN removed avolkov 2009-11-23 11:12:00 +00:00
  • 4fa963e4e5 Oops fix for r3345: should not leak FRAMEs avolkov 2009-11-23 11:08:44 +00:00
  • d4155e0ebe Standardized context frame save/restore; not yet used everywhere it should be avolkov 2009-11-23 11:03:41 +00:00
  • b48fe236bd Correct Chmmr response for what_about_samatra question; bug #1073 avolkov 2009-11-23 09:50:33 +00:00
  • ff07a6b73e Cleanup of input wait functions and looped AnyButtonPress() uses avolkov 2009-11-22 23:40:56 +00:00
  • a44f12cfe7 Give more colors a name, and move them to colors.h Meep-Eep 2009-11-22 17:58:28 +00:00
  • c99241ca22 Cleanup: removal of pLanderInputState global avolkov 2009-11-22 17:47:12 +00:00
  • 68579000ce Cleanup: ScanContext dispensed by scan.c avolkov 2009-11-22 17:11:33 +00:00
  • 8465e0ab19 Further cleanup (or start thereof). Meep-Eep 2009-11-22 14:59:06 +00:00
  • 09ec2f57ab Cleanups. Meep-Eep 2009-11-22 14:03:56 +00:00
  • 8a7344c337 Cleanups. Meep-Eep 2009-11-22 12:53:53 +00:00
  • 3ed5978b79 One less dependency on pSolarSysState. Meep-Eep 2009-11-22 11:12:37 +00:00
  • 9d1009ae96 Fixed MSVC project file for r3334 avolkov 2009-11-21 22:00:15 +00:00
  • 76d4261313 Refactoring the universe generation code. Meep-Eep 2009-11-21 21:04:45 +00:00
  • 7d3e5b3511 Header and name cleanup: moved stuff around to relevant headers; removed some irrelevant #includes; better names avolkov 2009-11-21 01:15:21 +00:00
  • e40d9499b2 Remove some scan map 'repair' hacks. We redraw the entire scan map, instead of repairing, since 3DO avolkov 2009-11-20 20:14:35 +00:00
  • d595d40186 Removal of redraw hacks obsoleted by revisions 390 (introduction of SOLARSYS_STATE.PauseRotate), 469 (save of screen state) and 1321 (abolishment of IPtask_func); dead PlayMusic() hacks also removed; also fixes bug #868 avolkov 2009-11-20 18:37:32 +00:00
  • 7b5395ae9c Oops, remove the hack that should have been removed in r3309 avolkov 2009-11-20 17:14:20 +00:00
  • 5be8df3e5f Bugfix: defer deactivation of ended animations until all animations have been processed for the frame; this makes BlockMask tests stable and prevents early activation of a conflicting animation avolkov 2009-11-20 15:31:08 +00:00
  • fe137f036c Arilou animations fixes: set WAIT_TALKING flag for the correct anims; flag some mutually-exclusive anims; couple comments avolkov 2009-11-19 13:49:36 +00:00