Glenn Maynard
ee061be26a
I'm not sure why this ClearSubscribers was here; it's causing
...
metrics to not be loaded after a resolution change, because
the reload is optimized out by SwitchThemeAndLanguage.
(We may have loaded ThemeMetrics on demand in the
past.)
The reload needs to always happen, even though the theme
hasn't changed, since the theme load is affected by the
resolution; eg. upvalues in Lua scripts may have been
computed based on SCREEN_WIDTH.
2007-02-11 01:52:41 +00:00
Steve Checkoway
30d9410b65
Unneeded.
2006-11-01 10:45:51 +00:00
Glenn Maynard
ab1fd34e76
Previously, changing themes attempted to preserve Lua data by
...
serializing data and tables while reinstantiating Lua. That's
ugly, and can't serialize some things (eg. functions).
Instead, when changing themes, shut down the high-level objects
and unregister as much as we can from Lua, change the theme,
then reregister things. This doesn't clean the slate as much;
globals won't be erased, etc.
A better way would be to clear everything that uses Lua
(delete singletons), then reload it all. Singleton creation is
a bit of a mess currently so that would break a lot, and we
don't want to reload songs.
2006-09-20 23:45:38 +00:00
Steve Checkoway
b1ccf2e5ff
The correct syntax for theme metrics is "class::name".
2006-09-17 05:37:42 +00:00
Steve Checkoway
6ea2a41b00
Cleanup RageException::Throw(). Do not use ssprintf() inside of Throw() and do not pass it bare error messages. Use RageException::Throw( "%s", sError.c_str() ); instead. Be consistent with quoting file names "%s" and theme metrics as "%s : %s". Try to make them complete English sentences when possible.
2006-09-17 01:19:19 +00:00
Glenn Maynard
e7fdfa2132
prefer GAMESTATE->JoinPlayer to setting GAMESTATE->m_bSideIsJoined manually
2006-09-15 05:56:43 +00:00
Chris Danford
e4717d1f79
reload all ThemeMetrics when aspect ratio changes so that metrics using SCREEN_* are reevaluated
2006-03-12 20:05:27 +00:00
Chris Danford
70479fd0c4
tab cleanup
...
no need to fall back to opengl on xbox
2006-02-06 18:23:30 +00:00
Chris Danford
7f821e8cfc
CString -> RString
2006-01-22 01:00:06 +00:00
Glenn Maynard
8fd297bdfc
phase out vDefs param
2006-01-17 21:31:50 +00:00
Glenn Maynard
85d654a306
remove unused parameter; simplify
2006-01-17 20:36:29 +00:00
Glenn Maynard
ded3feb51c
use pHand->m_Def
2006-01-17 20:28:44 +00:00
Glenn Maynard
45c359651b
cleanup
2006-01-16 23:04:27 +00:00
Glenn Maynard
002ccb6bcb
remove empty dtor
...
private
2006-01-16 23:00:03 +00:00
Glenn Maynard
3c63e09ca3
Previously, OptionRowHandler was owned and freed by
...
ScreenOptionsMaster (and ScreenOptionsManageProfiles).
Make it owned by OptionRow; the only pointer to them
is where they're stored in the OptionRow. This
eliminates the remaining association between m_OptionRowHandlers
and m_pRows; that was confusing, because they're in
different places, and aren't always the same size. It
also simplifies using OptionRowHandlers.
2006-01-16 22:55:57 +00:00
Glenn Maynard
fac88fb0fe
make dupe the ExportOptions loop look like the one in ScreenOptions
2006-01-16 20:59:11 +00:00
Glenn Maynard
5320b3e92e
OptionRowHandlers were originally exclusive to SOMaster, but
...
they're accessible by SOptions now, too. Move this slightly
tricky next-screen logic into SOptions, since it can apply
to any screen that sets OptionRowHandlers.
(Actually, this doesn't really belong in BeginFadingOut, since
it's not called "MaybeBeginFadingOutDependingOnTheCurrentOption".
Maybe this should be done in ExportOptions, I'm not sure yet,
but this is a step in the right direction.)
2006-01-16 20:30:55 +00:00
Glenn Maynard
d1f82038d1
simplify
2006-01-16 20:02:42 +00:00
Glenn Maynard
a00ff1269f
cleanup
2006-01-16 03:57:12 +00:00
Glenn Maynard
244345febb
simplify
2006-01-16 03:52:45 +00:00
Glenn Maynard
a40a954ff7
cleanup
2006-01-16 03:49:21 +00:00
Glenn Maynard
06e94c8b8c
add NavigationMode
...
(OptionMenuFlags predated metric fallback logic, where we didn't
want to add a ton of flags that we'd have to duplicate in a bunch
of screens.)
2006-01-16 03:25:30 +00:00
Glenn Maynard
4fa6ab0e88
regular metric for InputMode
2006-01-16 02:37:19 +00:00
Glenn Maynard
2517ced11c
standard metric for "forceallplayers"
2006-01-15 22:35:25 +00:00
Glenn Maynard
d3fa0e12b0
remove no-op
2006-01-15 22:19:32 +00:00
Glenn Maynard
a87993bcb1
finish ctor transition
2006-01-15 20:46:15 +00:00
Glenn Maynard
2b4c9e4516
Transition away from Screen(sName).
2006-01-15 19:49:02 +00:00
Glenn Maynard
9056419cf5
remove logs (this stuff predates the crash handler and has been copied
...
and pasted around since)
2006-01-15 08:51:03 +00:00
Glenn Maynard
2b00a2f62a
simplify
2006-01-15 08:41:17 +00:00
Glenn Maynard
9ca202d311
remove transition
2006-01-15 08:21:03 +00:00
Glenn Maynard
0ff2505831
PlayerNumber(0) -> PLAYER_1
2006-01-15 08:15:27 +00:00
Glenn Maynard
cfedf33602
remove empty overload
2006-01-15 08:13:24 +00:00
Glenn Maynard
cb4739ff31
Use ApplyCommitsScreens. This is simpler, and eliminates one of the
...
few remaining uses of "NEXT_SCREEN" (deviations from the Screen path)
and nonstandard "SM_GoToNextScreen".
2006-01-15 08:04:40 +00:00
Glenn Maynard
1d186c481d
const fix
2006-01-15 07:12:05 +00:00
Glenn Maynard
4a09761d19
fix crash
2006-01-15 00:05:22 +00:00
Glenn Maynard
201c4f42a8
generalize special case
2006-01-14 08:00:09 +00:00
Glenn Maynard
d276d5d001
cleanup
2006-01-13 22:40:28 +00:00
Chris Danford
37f82b43f7
remove CStringArray #define
2005-12-09 21:36:22 +00:00
Chris Danford
2d8b30e049
polish
2005-12-06 12:41:33 +00:00
Chris Danford
00b346939d
add OptionRowHandlerGameCommand to cut out unnecessary level of indirection in metrics
2005-12-06 04:25:52 +00:00
Chris Danford
800158e185
move floating globals into a namespace
2005-12-02 01:16:28 +00:00
Chris Danford
8b8fa8aad3
move CommonMetrics into a namespace so that it's clear where they're coming from when used.
2005-10-27 05:16:19 +00:00
Chris Danford
5d7885c764
move game prefs into PrefsManager
2005-10-27 04:54:45 +00:00
Glenn Maynard
b3d5f2390e
cleanup
2005-10-17 06:37:59 +00:00
Chris Danford
15880eafd6
When in attract and not playing attract sounds, have SOUNDMAN only play sounds with RageSoundParams.m_bCriticalSound == true.
...
Currently, only the coin sound has RageSoundParams.m_bCriticalSound = true.
2005-10-04 06:51:06 +00:00
Chris Danford
c885d87f4a
Use a lua transform function to position SOptions rows instead of having a Y metric for each row
2005-08-15 07:51:16 +00:00
Chris Danford
da001879d4
OptionRowHandlers -> m_OptionRowHandlers
2005-07-16 05:24:41 +00:00
Glenn Maynard
d9068e601d
LoadOptionIcon -> SetOptionIcon
2005-07-15 05:43:10 +00:00
Glenn Maynard
1f3ac4613c
simplify: add SetInputMode, like SetNavigation (rest of commit coming)
2005-07-15 03:28:09 +00:00
Glenn Maynard
b5d68fc123
call base ScreenOptions::Init after handling forceallplayers
2005-07-15 02:27:37 +00:00