Commit Graph
100 Commits
Author SHA1 Message Date
Glenn Maynard f9f990f590 support UTF-8 through ISO-8859-1 in MakeUpper, MakeLower, Capitalize 2006-03-01 02:45:42 +00:00
Glenn Maynard 3d86168ebb g_Uptab -> g_UpperCase 2006-03-01 01:04:02 +00:00
Glenn Maynard a4b7b70d06 remove ToLower, ToUpper 2006-03-01 00:42:26 +00:00
Glenn Maynard 9c4d7606cf ToLower -> MakeLower 2006-03-01 00:39:32 +00:00
Glenn Maynard d151beec27 g_Uptab values for ISO-8859-1 2006-03-01 00:26:07 +00:00
Glenn Maynard bcc8984b93 detach uptab from char_traits_char_nocase 2006-03-01 00:24:59 +00:00
Glenn Maynard 26e8fbd0ae detach uptab from char_traits_char_nocase 2006-03-01 00:24:25 +00:00
Glenn Maynard 18fbd2e8a4 take a char* for utf8_to_wchar 2006-03-01 00:14:50 +00:00
Glenn Maynard 3a1d3883b5 unsigned 2006-03-01 00:11:59 +00:00
Glenn Maynard fbd9a129ad cleanup 2006-03-01 00:10:12 +00:00
Glenn Maynard a1b6acfb4e compile fix 2006-02-28 23:50:57 +00:00
Glenn Maynard 70c3facebc don't use istring here 2006-02-28 23:04:24 +00:00
Glenn Maynard 054cacfc11 expose Center1Player 2006-02-28 21:55:58 +00:00
Glenn Maynard 9ac8082f3a more useful warning 2006-02-28 21:45:46 +00:00
Glenn Maynard 96c05aae34 Move write buffering from RageFileObjDirect to RageFileObj; enable
it for RageFileDriverTimeout, too.
2006-02-28 07:43:54 +00:00
Glenn Maynard 0e66237817 low-level WriteInternal() shouldn't call higher-level Flush() 2006-02-28 06:09:38 +00:00
Glenn Maynard af3bbbd99a ResetBuf -> ResetReadBuf 2006-02-28 05:11:34 +00:00
Glenn Maynard 1220fc988a FillBuf -> FillReadBuf 2006-02-28 05:10:54 +00:00
Glenn Maynard f6b45581b4 cleanup 2006-02-28 03:22:23 +00:00
Glenn Maynard 8ff0263439 add AllowCenter1Player metric 2006-02-28 01:19:06 +00:00
Glenn Maynard 5f8337e9da move some stuff out of PManager 2006-02-28 01:13:44 +00:00
Glenn Maynard 0ac58078b4 unused 2006-02-27 06:09:08 +00:00
Glenn Maynard 78848a0ca1 simplify 2006-02-27 06:08:29 +00:00
Glenn Maynard e54eca031c ugly: apply just the alpha to m_Underline. This is what used to be
done in UpdateEnabledDisabled, but we don't want to update this tweening
in two places; they collide and cancel each other.
2006-02-27 06:02:54 +00:00
Glenn Maynard bbf668ab97 remove unused 2006-02-27 05:54:21 +00:00
Glenn Maynard 977689ac83 Annoying: allow OptionRowHandlers to specify what they reloaded, and
don't re-create things if we've only changed what's enabled.  Use this
with the Lua interface, by making EnabledForPlayers a function returning
a table instead of a table.
2006-02-27 05:43:39 +00:00
Glenn Maynard 9488915ff0 fix initial underline width 2006-02-27 03:54:03 +00:00
Glenn Maynard 264120c28c unused 2006-02-27 03:28:37 +00:00
Glenn Maynard 966da17301 simplify 2006-02-27 03:28:15 +00:00
Glenn Maynard f00e70e5d4 Collateral fix: SetBaseAlpha is propagated by ActorFrame. 2006-02-27 03:09:00 +00:00
Glenn Maynard 5c6cd59375 add GetCurrentDiffuseAlpha 2006-02-27 03:06:43 +00:00
Glenn Maynard c2243b0b0e ScreenOptions fading is a headache. We move rows up and down, and
fade them in and out at the same time; we do this by tweening the whole
row up and down, and fading each part of the row.  This is a big pain,
because we're also tweening each part for other reasons, and these
tweens tend to collide.  The whole thing is brittle and complicated,
and it's making fixing other problems a pain.

Try it a little differently: to fade the whole row, tween the alpha
along with the position of the whole row.  Then, manually propagate
the changing alpha value to each part, using BaseAlpha, so it doesn't
affect other tweens.

This also helps segregate the fading: with the exception of the actual
propagation, OptionRow doesn't have to know anything about it.  Before,
it had to constantly be careful that any tweening operations didn't
collide with the alpha tweening; often, one or the other would be cancelled,
resulting in either the change not happening at all, or snapping instead
of fading.

(This is still a hack, but it's more manageable; it puts control of high-level
tweening entirely in SOptionsMenu's control, instead of half in OptionRow.)
2006-02-27 03:04:56 +00:00
Glenn Maynard 1262243670 simplify 2006-02-27 01:37:43 +00:00
Glenn Maynard 973438f79b merge loop, comment 2006-02-27 00:52:09 +00:00
Glenn Maynard 25c9e31218 underlines and icons are unrelated; reorder 2006-02-27 00:51:11 +00:00
Glenn Maynard d5f650dce5 fix hidden underlines for disabled players (missed commit) 2006-02-26 21:38:44 +00:00
Glenn Maynard b73b9e66f0 cleanup 2006-02-26 21:35:18 +00:00
Glenn Maynard b492263f82 closer to a fixed Reload 2006-02-26 21:32:52 +00:00
Glenn Maynard 2de0170202 fix ReloadRowMessages ignored 2006-02-26 09:37:37 +00:00
Glenn Maynard 1a67cca345 If we have a window, g_pContext is set; if not, it's NULL. Avoid redundantly tracking state, when it can be clearly derived from other state; it introduces ways that the class might be in an inconsistent state and adds bookkeeping. 2006-02-25 21:05:19 +00:00
Glenn Maynard c6125c4e26 Actor.cpp "fDeltaTime >= 0" assertion fires occasionally. This is under
Foreground's update, caused by GAMESTATE->m_fMusicSeconds moving backwards.

This happens due to frame skips confusing GameSoundManager::GetFrameTimingAdjustment.
It expects that, when the framerate is stable, each frame will take 1/FPS.
If we skip a frame, it thinks one frame is 30ms late, and tries to
adjust by 30-16ms.  Reduce the threshold for this adjustment to half a frame;
if we're that much late, the problem isn't scheduling jitter--we've probably
dropped a frame, and adjusting here is incorrect.

In case that isn't enough, clamp fDeltaTime in Foreground, too.
2006-02-25 10:08:18 +00:00
Glenn Maynard 1514f2f5d4 remove old checkpoints 2006-02-25 06:07:40 +00:00
Glenn Maynard ad8dbf5e86 cleanup 2006-02-25 03:26:46 +00:00
Glenn Maynard ed60014bb3 fix ScreenSelect ignores StopMusicOnBack 2006-02-25 00:51:30 +00:00
Glenn Maynard 67c3a01267 fix EditOptions cancel 2006-02-25 00:40:16 +00:00
Glenn Maynard c1e2a828ac missed commit; fix mr.pfnEnabled not applied initially 2006-02-25 00:26:17 +00:00
Glenn Maynard 53ea100d0b cleanup 2006-02-25 00:17:48 +00:00
Glenn Maynard 94e19ae408 cleanup 2006-02-25 00:08:55 +00:00
Glenn Maynard 171dc26845 Fix RageException::Throw during concurrent loading crashes. 2006-02-24 03:15:25 +00:00
Glenn Maynard 2b02810758 cleanup 2006-02-24 03:09:11 +00:00
Glenn Maynard d63e24c167 CancelTransitionsOut 2006-02-24 03:03:14 +00:00
Glenn Maynard f4b57aa968 fix PlaySharedBackgroundOffCommand called when it shouldn't be 2006-02-24 03:02:00 +00:00
Glenn Maynard d42559a5cd I'm still slowly wrangling out just how Cancel should work.
Screens typically have two general simple models of transitioning;
either the menu elements transition out, or we drop a fade on top
of everything.  The former leaves the background in place, the
latter doesn't.  Transitioning is usually used when we're going
to a screen with the same background; fading is used otherwise.
(There are combinations of these, and more complex modes, but
these are the basics.)

Traditionally, cancelling has always wiped.  It usually goes back
to the title menu, which rarely has the same background; and it's
an uncommon path, so it's not worth setting up a full transition
for.  However, for cases where we don't go all the way back, this
is incorrect; it looks very strange to press escape in the options
submenu or the player options menu, and to have it wipe the screen.

I've dealt with this in the past by setting up a "cancel" transition
that simply runs "Off" and waits.  That works, but it's a pain, since
the wait duration needs to line up with the length of the transition.
Instead, add a transition mode "CancelTransitionsOut" that causes
Cancel to run the Out transition directly.  (This also plays the
start sound, due to a discrepency right now: with Out, it's the
screen's job to play the sound, but with Cancel, it's the transition's
job.  Figure that out later ...)

Ultimately, we should be able to have full CancelCommand transitions
if we want, but the SWME TweenOnScreen/TweenOffScreen code transition
needs to be completed first (replacing individual transitions with a
single "On"/"Off" command).
2006-02-24 03:01:28 +00:00
Glenn Maynard 3e5bcbe583 ActorScroller::GetSecondsToDestination 2006-02-24 01:57:10 +00:00
Glenn Maynard ffb7f14ef5 simplify 2006-02-24 01:11:45 +00:00
Glenn Maynard 1c3d8baeeb Screen:PostScreenMessage 2006-02-24 01:09:42 +00:00
Glenn Maynard 77a9377ef2 use a namespace instead of a singleton 2006-02-24 01:09:13 +00:00
Glenn Maynard 617cc32566 eliminate remaining special-cased messages 2006-02-24 01:03:18 +00:00
Glenn Maynard 74a8e62d5c These all point to the deleted out-of-date makefile. (They also mess up filename completion for "Makefile" ...) 2006-02-24 00:28:59 +00:00
Glenn Maynard 0ad99bffc2 switch -> if 2006-02-24 00:20:41 +00:00
Glenn Maynard 2d27c7e037 delete: this hasn't been updated in nine months, which means nobody's using it 2006-02-24 00:05:21 +00:00
Glenn Maynard af7fb8a25c Clean up some messages. I'm not too crazy about this; we should have parameters
to messages, and unify them with actor messages instead of having two major,
distinct, functionally similar messaging systems.   This is an improvement over
a chunk of messages that are handled differently than all other messages, though.
2006-02-23 23:50:32 +00:00
Glenn Maynard 7da80cdaa2 WideScreen metrics 2006-02-22 08:30:25 +00:00
Glenn Maynard 4433dc510e The "aspect ratio" preference is complicated for casual users. Add a simple on/off wide-screen toggle. 2006-02-22 08:25:49 +00:00
Glenn Maynard 10ee126b64 resample.dll 2006-02-21 03:07:08 +00:00
Glenn Maynard f4e1bae560 OS mountpoints (with RageFileDriverDirect) don't end in a backslash;
fixes CreateDirectories failing
2006-02-20 23:34:55 +00:00
Glenn Maynard 782169ca61 cleanup (this while looks like an independent statement, which is confusing) 2006-02-19 11:35:08 +00:00
Glenn Maynard 73bb009fb9 set the target in one place (linker -> output file) 2006-02-18 06:12:29 +00:00
Glenn Maynard 30bc09ee74 fix speed line 2006-02-18 03:18:58 +00:00
Glenn Maynard 35599d7f97 Fix incorrect behavior when START is pressed during transitions on
options screens.  (We don't ignore this at a higher level, because we
want to allow start when transitioning when it's not going to go to another
screen.)
2006-02-18 03:02:21 +00:00
Glenn Maynard 7ed5caf16b fix hiding m_sprLineHighlight (for real) 2006-02-18 02:51:58 +00:00
Glenn Maynard bc94e6e8a8 fix hiding m_sprLineHighlight 2006-02-18 02:51:22 +00:00
Glenn Maynard 34452071c3 simplify 2006-02-18 02:33:35 +00:00
Glenn Maynard 0f37043af8 simpler symbols 2006-02-18 01:07:39 +00:00
Glenn Maynard 63a87f73a7 empty props 2006-02-17 21:42:24 +00:00
Glenn Maynard 8e89e4b358 no longer exists 2006-02-17 21:36:10 +00:00
Glenn Maynard 3654470a05 Fix notes placed 1/64th above the beat are the wrong color in vivid. 2006-02-17 05:57:00 +00:00
Glenn Maynard db4ccaf529 Fix rounding error from NoteDisplay::SetActiveFrame "vivid" output. 2006-02-17 05:53:29 +00:00
Glenn Maynard e1d55d1361 rename buffers (make read-buffer explicit) 2006-02-15 00:52:31 +00:00
Glenn Maynard 7272580311 EnableBuffering -> EnableReadBuffering 2006-02-15 00:49:28 +00:00
Glenn Maynard 831cc0cd91 cleanup 2006-02-15 00:47:18 +00:00
Glenn Maynard 6fc982d681 private SetError; this isn't a class to derive from
cleanup
2006-02-15 00:42:04 +00:00
Glenn Maynard 3b0f4fa656 cleanup 2006-02-15 00:39:02 +00:00
Glenn Maynard 3def328a9a spacing 2006-02-14 11:40:24 +00:00
Glenn Maynard 01629e7f53 spacing 2006-02-14 11:35:00 +00:00
Glenn Maynard 2b9f484548 spacing (only) 2006-02-14 11:30:53 +00:00
Glenn Maynard 62a0ac1370 spacing 2006-02-14 11:16:39 +00:00
Glenn Maynard 958299c734 spacing 2006-02-14 11:10:03 +00:00
Glenn Maynard 1662ac4637 return error 2006-02-14 11:07:46 +00:00
Glenn Maynard 205b8d6411 cleanup, remove ASMHClass::LogMessageNumbers 2006-02-14 11:06:20 +00:00
Glenn Maynard 585ed24473 cleanups, descriptions 2006-02-14 11:00:15 +00:00
Glenn Maynard 6553336107 const 2006-02-14 10:48:01 +00:00
Glenn Maynard 3581f4514a simpler 2006-02-14 10:47:23 +00:00
Glenn Maynard a40af5b2e7 support optionally gzipped .vdi files 2006-02-14 06:21:46 +00:00
Glenn Maynard 3ddf9bc5e8 simplify 2006-02-14 06:18:30 +00:00
Glenn Maynard 718bbd3ada better error message 2006-02-14 05:54:40 +00:00
Glenn Maynard fc2028b997 szError -> RString 2006-02-14 05:53:57 +00:00
Glenn Maynard 2ab27b5478 fix vdi filename 2006-02-14 05:52:18 +00:00
Glenn Maynard 346724ca33 xml fallback error check 2006-02-14 05:16:23 +00:00
Glenn Maynard af5f496cd4 xml parse error check; cleanup 2006-02-14 05:15:39 +00:00