Commit Graph
100 Commits
Author SHA1 Message Date
Glenn Maynard 32129814b7 Any scroller that has an OnCommand for its parts may want to PositionItems
first, not just ScreenSelectMaster's.  Also, the position set by this depends
on SetNumSubdivisions, which (will be) set by OnCommand, and not set this
early.  So, use PositionItems manually if wanted.
2005-12-07 05:16:11 +00:00
Glenn Maynard 534d9e40ec bind PositionItems 2005-12-07 05:11:40 +00:00
Glenn Maynard aeb830f434 fix OnCommand run twice (m_Scroller propagates it) 2005-12-07 05:08:49 +00:00
Glenn Maynard 4dfdeaacf2 cleanup 2005-12-07 05:01:13 +00:00
Glenn Maynard c5766b32aa simplify Load3. (Most scrollers use one subdivision.) 2005-12-07 04:22:47 +00:00
Glenn Maynard 5cb8148d30 add SetNumSubdivisions
secondsperitem -> setsecondsperitem
2005-12-07 04:19:32 +00:00
Glenn Maynard 7b646dc6b1 split SetNumSubdivisions 2005-12-07 04:16:11 +00:00
Glenn Maynard 12ff6ff4da simplify ActorScroller::Load3 2005-12-07 03:53:49 +00:00
Glenn Maynard 24dd9f52a5 simplify ActorScroller::Load2 2005-12-07 03:50:11 +00:00
Glenn Maynard 7c65f28e44 add SetSecondsPerItem
default SetSecondsPerItem to 0.  1 isn't a useful default (almost
nothing ever scrolls that slowly).
2005-12-07 03:43:47 +00:00
Glenn Maynard 6497ac8f94 style 2005-12-07 03:03:21 +00:00
Glenn Maynard 321931c19a not used 2005-12-07 03:01:23 +00:00
Glenn Maynard b617542b62 cleanup 2005-12-07 03:00:27 +00:00
Glenn Maynard 8bf79ca4e2 warning 2005-12-07 00:13:36 +00:00
Glenn Maynard a72100249c don't SetLoadedFromProfile here 2005-12-07 00:01:12 +00:00
Glenn Maynard 9c8caf4c72 metrics 2005-12-06 22:35:55 +00:00
Glenn Maynard 687fb0d3ec X positions themable
ScreenMapControllers::BeginScreen
2005-12-06 22:13:28 +00:00
Glenn Maynard a6414302b6 cleanup 2005-12-06 21:54:23 +00:00
Glenn Maynard a4c0b8e963 Test writable without writing a file. This reduces the chance of corruption: merely mounting a device should not write to it. 2005-12-06 21:53:47 +00:00
Glenn Maynard 4bd7da7256 Delete old files after writing, not before, to prevent data loss. (File
writing makes efforts to try to avoid data loss if we crash while saving.)
2005-12-06 20:44:39 +00:00
Glenn Maynard ab9526a9ed don't SetSavedToDisk, etc. if the save failed 2005-12-06 20:40:09 +00:00
Glenn Maynard 533e2e2175 error handling 2005-12-06 17:45:35 +00:00
Glenn Maynard 343c4d106c fix temp file still overwrites actual file, if a Write or Flush has failed 2005-12-06 17:38:27 +00:00
Glenn Maynard 452e8c1e74 cleanup 2005-12-06 17:35:40 +00:00
Glenn Maynard 6c2475399a cleanup 2005-12-06 17:12:18 +00:00
Glenn Maynard f99fa91bf9 If we didn't rename the temporary file, delete it. 2005-12-06 17:09:34 +00:00
Glenn Maynard dff9a680b5 simplify 2005-12-06 17:07:21 +00:00
Glenn Maynard 8ab36ad2a0 If the flush fails, don't clear the buffer. That way, if Flush() is called multiple
times, and for some reason it succeeds on the second call (eg. more disk
space is now available), we don't lose that data.
2005-12-06 16:23:38 +00:00
Glenn Maynard 445074885a cleanup 2005-12-06 16:22:11 +00:00
Glenn Maynard 0c5ebc4c46 warning 2005-12-06 15:57:09 +00:00
Glenn Maynard 5acbca107c cleanup 2005-12-06 03:46:24 +00:00
Glenn Maynard ea7ba635a5 unused 2005-12-06 03:32:20 +00:00
Glenn Maynard abeead164e Using ActorScroller adds too many metrics. Prefer to set parameters
that aren't needed for initialization and aren't always used via
commands, not load-time parameters.
2005-12-06 03:29:16 +00:00
Glenn Maynard 569f3055db add setfastcatchup 2005-12-06 03:17:32 +00:00
Glenn Maynard 4b499e0f72 unused 2005-12-06 03:09:33 +00:00
Glenn Maynard f59e884ede simplify rarely-used Load2 2005-12-06 03:05:57 +00:00
Glenn Maynard ac2b782192 merge code 2005-12-06 02:53:07 +00:00
Glenn Maynard 6d974bc5e2 don't reinit to defaults
nudge Load2 and Load3 together
2005-12-06 02:48:54 +00:00
Glenn Maynard a71723089f simplify 2005-12-06 02:46:44 +00:00
Glenn Maynard be96b79251 do xy in metrics 2005-12-06 01:12:41 +00:00
Glenn Maynard 3147fc74a3 do in metrics 2005-12-06 01:11:57 +00:00
Glenn Maynard 76f2581d44 translatable 2005-12-06 00:57:29 +00:00
Glenn Maynard ab2c346e5a make mapping logic not dependent on the framerate. The "prefer non-
axes" logic may not have worked at all on fast systems with vsync off.
2005-12-06 00:53:31 +00:00
Glenn Maynard 69473b0cf4 allow optionally specifying keys to map 2005-12-06 00:34:51 +00:00
Glenn Maynard a97370b997 take buttons from a list (centralizes GAMESTATE and GAMEMAN access) 2005-12-05 17:49:25 +00:00
Glenn Maynard aa80056f45 fix repeating stops 2005-12-05 17:33:56 +00:00
Glenn Maynard 8804df2380 reorder m_textMappedTo 2005-12-05 17:33:34 +00:00
Glenn Maynard eda52eb988 remove dtor 2005-12-05 17:28:31 +00:00
Glenn Maynard afd723cfe4 metrics 2005-12-05 17:24:54 +00:00
Glenn Maynard f3bbbe2b3f theming 2005-12-05 17:24:34 +00:00
Glenn Maynard 4185fb165f simplify 2005-12-05 17:13:42 +00:00
Glenn Maynard 97a449a9a6 use SCREENMAN->SystemMessage 2005-12-05 17:10:00 +00:00
Glenn Maynard 5a2e281d80 remove unused 2005-12-05 17:06:35 +00:00
Glenn Maynard 1153c40179 fix changed base class 2005-12-05 17:05:24 +00:00
Glenn Maynard 5f83ff601b ScreenMapControllers::TweenOffScreen 2005-12-05 17:03:46 +00:00
Glenn Maynard 2fe74fea4c static 2005-12-05 17:00:20 +00:00
Glenn Maynard 9ec4f0a9d2 m_textError metrics 2005-12-05 16:59:45 +00:00
Glenn Maynard c8a0e0f8d2 m_textError theming 2005-12-05 16:58:05 +00:00
Glenn Maynard c2f36ec041 don't do that. If you want different theme metrics for a platform, create a
derived theme.
2005-12-05 16:54:33 +00:00
Glenn Maynard 6c8c558d43 Rage* shouldn't depend on ScreenDimensions (uses ThemeMan) 2005-12-04 17:58:25 +00:00
Glenn Maynard a2ada6b973 Rage* shouldn't depend on ScreenDimensions (uses ThemeMan) 2005-12-04 17:16:52 +00:00
Glenn Maynard e217a25dce unused 2005-12-04 17:16:06 +00:00
Glenn Maynard da20a407ff remove RageDisplay_OGL::SetViewport; nothing changes the viewport
offset
2005-12-04 17:14:50 +00:00
Glenn Maynard 91250c21c5 cleanup 2005-12-04 16:59:53 +00:00
Glenn Maynard 538d933e87 maybe fix VC2005 warnings 2005-12-04 16:47:47 +00:00
Glenn Maynard 60bdd7ae04 fix "pull back camera" in widescreen 2005-12-02 16:48:13 +00:00
Glenn Maynard 1829ba9eee cleanup 2005-12-01 00:10:09 +00:00
Glenn Maynard b839369dc8 comment 2005-12-01 00:08:36 +00:00
Glenn Maynard bb90407f8a static 2005-12-01 00:07:47 +00:00
Glenn Maynard 0a961c49c8 Revert cropping. "scaletocover,0,0,SCREEN_WIDTH,SCREEN_HEIGHT"
achieves the same effect.
2005-11-30 23:29:16 +00:00
Glenn Maynard 76f05625d5 ZoomToWidth/ZoomToHeight obeys crop. This way,
CropToAspectRatio,16/9;
  ZoomToWidth,SCREEN_WIDTH;
  ZoomToHeight,SCREEN_HEIGHT
will zoom to the center 16:9 area of the image.
2005-11-30 23:11:31 +00:00
Glenn Maynard c607f34d3a add Actor::CropToAspectRatio 2005-11-30 23:02:22 +00:00
Glenn Maynard 05be71df90 remove unmaintained VC 7.0 project 2005-11-30 22:55:38 +00:00
Glenn Maynard 81c1217ef7 expose aspect ratios 2005-11-30 22:54:00 +00:00
Glenn Maynard 7df3399dec partial revert for now 2005-11-29 18:05:16 +00:00
Glenn Maynard 8929a640a9 fix comment 2005-11-29 17:41:10 +00:00
Glenn Maynard f33504c73f LuaHelpers::PrepareExpression is used for metric compatibility; don't use
when loading from XML.
2005-11-29 17:36:19 +00:00
Glenn Maynard ce84697994 reuse ActorFrame 2005-11-29 17:34:21 +00:00
Glenn Maynard e2f20b43d5 don't reinit ActorFrame stuff 2005-11-29 17:27:34 +00:00
Glenn Maynard 348a3fb4e0 remove BGAnimationLayer::Unload, BGAnimationLayer::Init 2005-11-29 17:23:04 +00:00
Glenn Maynard 207987ec45 remove extra Init() calls 2005-11-29 17:20:10 +00:00
Glenn Maynard 8305eea9eb handle 1280x1024 (dumb resolution that shouldn't exist)
"SAR" (mpeg-centric) -> more common "PAR"
2005-11-29 06:12:09 +00:00
Glenn Maynard 7a61e70c9a eval StreamWidth 2005-11-29 05:56:20 +00:00
Glenn Maynard 476a0990ff SetGlobal(float) 2005-11-29 05:24:48 +00:00
Glenn Maynard c4aa5b70df cleanup 2005-11-29 02:20:28 +00:00
Glenn Maynard cd62607128 cleanup 2005-11-29 02:14:33 +00:00
Glenn Maynard e130c39f86 Fix spurious ChangeDisplaySettings calls; this fixes extra
graphics hitches when entering fullscreen.
2005-11-29 00:44:42 +00:00
Glenn Maynard be332f9883 remove old trace 2005-11-29 00:22:38 +00:00
Glenn Maynard 77c6ffdfd1 cleanup 2005-11-28 20:33:20 +00:00
Glenn Maynard 220602d4a2 fix lerp (obscure: this only matters for non-rectangular texture coordinates) 2005-11-28 18:08:51 +00:00
Glenn Maynard b6ba17a7bb fix busy looping on slower systems, inefficient buffer filling 2005-11-28 17:17:35 +00:00
Glenn Maynard 40c3fa3995 generalize texture coord gen 2005-11-28 16:54:19 +00:00
Glenn Maynard 5be508809b When cropping, derive the texture coords from the vertices, so the
texture coord code doesn't have to know about the cropping code.
2005-11-28 16:36:15 +00:00
Glenn Maynard b948f686cc cleanup 2005-11-25 20:38:03 +00:00
Glenn Maynard 9ed3cde95a cleanup 2005-11-25 18:36:44 +00:00
Glenn Maynard d84c8b6cae vc6 2005-11-25 02:52:01 +00:00
Glenn Maynard 78dd08df43 VC6 workaround 2005-11-25 02:33:50 +00:00
Glenn Maynard 31ef353ed6 fix bogus resolutions being set 2005-11-24 18:28:52 +00:00
Glenn Maynard 92c3de82d6 cleanups 2005-11-23 22:47:47 +00:00
Glenn Maynard ecd8d199bd missed commit: update for USB cleanup 2005-11-23 22:43:17 +00:00