Glenn Maynard
744329f9e9
fix assert when no songs
2005-07-04 22:31:18 +00:00
Glenn Maynard
7ecccfeac0
unused
2005-07-04 22:16:42 +00:00
Glenn Maynard
1e8268e625
static
2005-07-04 21:48:01 +00:00
Glenn Maynard
2d27081573
do this with lua
2005-07-04 21:47:16 +00:00
Glenn Maynard
9a6fa1bae8
actor instance tables
2005-07-04 21:45:16 +00:00
Glenn Maynard
ea6d806dad
Allow associating a table with Lua-bound objects, for storing state in Lua.
...
Design goals are: minimal overhead (one table); minimal extra code to use
it (two lines in the header, to have a space to store a reference to the
table), same API for classes with and without a table; allow switching to
a table-bound class without derived classes having to know about it; keep
zero per-object overhead for classes that don't need it.
2005-07-04 21:43:27 +00:00
Glenn Maynard
1e05d86b7d
missing includes
2005-07-04 20:52:21 +00:00
Glenn Maynard
6c4276648a
cleanup
2005-07-04 20:44:07 +00:00
Glenn Maynard
a55bbfc255
song.h
2005-07-03 07:50:59 +00:00
Glenn Maynard
11a28632bc
fix assert
2005-07-03 06:55:31 +00:00
Glenn Maynard
d6c14eac6f
If a screen is already prepared, don't reload it in PrepareScreen.
...
Prepare backgrounds, too.
Disallow calling SetNewScreen from a screen ctor/Init; it complicates things.
When loading a new screen (through LoadDelayedScreen), load the
screen with PrepareScreen, to reduce code paths.
2005-07-03 06:13:30 +00:00
Glenn Maynard
61e795c7ed
cleanup
2005-07-03 06:09:03 +00:00
Glenn Maynard
adf4aa2645
SetNewScreen on first update, instead of in the ctor, so we don't have to
...
handle "set a new screen while we're still loading the old one". (Note that
this isn't preferred, anyway; it's much better to decide in advance which
screen you want via Lua. ScreenBranch is deprecated.)
2005-07-03 06:07:46 +00:00
Glenn Maynard
5c9f7f571f
use default
2005-07-03 06:06:00 +00:00
Glenn Maynard
39570d6fd7
metrics
2005-07-03 05:35:01 +00:00
Glenn Maynard
ea258068a9
... and ScreenSongOptions::GoToNextScreen
2005-07-03 05:15:49 +00:00
Glenn Maynard
1141c3ca7f
sync with ScreenOptionsMaster::GoToPrevScreen
2005-07-03 05:15:30 +00:00
Glenn Maynard
a858910ad1
cleanup
2005-07-03 04:54:37 +00:00
Glenn Maynard
1ae5083fba
remove ScreenManager::MiniMenu
2005-07-03 04:52:15 +00:00
Glenn Maynard
0259484d16
ScreenMiniMenu::MiniMenu
2005-07-03 04:50:21 +00:00
Glenn Maynard
e7ef5539d0
remove
2005-07-03 04:46:39 +00:00
Glenn Maynard
9b08148f60
ScreenTextEntry::TextEntry/ScreenTextEntry::Password
2005-07-03 04:45:34 +00:00
Glenn Maynard
ea97ec6095
ScreenTextEntry::TextEntry
2005-07-03 04:42:47 +00:00
Glenn Maynard
1e894d05bb
done in SM_GainFocus
2005-07-03 04:36:58 +00:00
Glenn Maynard
c21c5e3000
cleanup
2005-07-03 04:36:01 +00:00
Glenn Maynard
2cb0658151
ScreenPrompt::Prompt update
2005-07-03 04:34:53 +00:00
Glenn Maynard
0e09a3fb3d
ScreenPrompt::Prompt, cleaning up ScreenManager
2005-07-03 04:33:22 +00:00
Glenn Maynard
b0a079c777
"Send this before making the new screen, since it might set things that will be
...
re-set in the new screen's ctor." Don't do that--don't assume that the old
LoseFocus will be called before the ctor or Init. If you're doing something that
interacts with state changed by focus, do it in the first update, when you're
guaranteed to have focus. Make no guarantees about who has focus when
a new screen is constructed; only that LoseFocus will be sent before GainFocus,
and GainFocus before the first update.
2005-07-03 04:24:57 +00:00
Glenn Maynard
14a3b69f84
style updates
2005-07-03 04:03:46 +00:00
Glenn Maynard
a49aecd774
pull ScreenPrompt init into a separate function, so it's slightly less of a special
...
case; maybe this class's instances can be made reusable ...
2005-07-03 03:49:19 +00:00
Glenn Maynard
5bdae4fa35
cleanup
2005-07-03 03:44:05 +00:00
Glenn Maynard
f2a418d79d
implement HiddenPtr smart pointer type; use it for Steps. This avoids having
...
to write a whole copy constructor for a class just to hide a couple types from
the header.
2005-07-03 03:05:54 +00:00
Glenn Maynard
b0935c1111
deps
2005-07-03 02:51:29 +00:00
Glenn Maynard
2b365a1ea9
missing include
2005-07-03 02:49:42 +00:00
Glenn Maynard
ac15f8064b
missing includes
2005-07-03 02:48:38 +00:00
Glenn Maynard
11138513be
implement copy ctor. fixes assertion failure after gameplay, due to
...
a RageTexturePreloader being inside an Actor which is copied
2005-07-03 02:37:49 +00:00
Glenn Maynard
7c7ad81638
RageTextureManager::CopyTexture
2005-07-03 02:30:45 +00:00
Glenn Maynard
78eba6aef0
move to the right place
2005-07-02 23:38:36 +00:00
Glenn Maynard
73655e87d9
can't #ifdef a typedef; check for vc6 instead
...
move to the right place
2005-07-02 23:37:55 +00:00
Glenn Maynard
8c542f8f27
cleanup
2005-07-02 23:06:41 +00:00
Glenn Maynard
abac95a1b7
store the path in the actor's name, so we can treat backgrounds like loaded
...
screens
2005-07-02 22:44:56 +00:00
Glenn Maynard
e3999565d8
missing include
2005-07-02 22:38:55 +00:00
Glenn Maynard
0d6c835e58
dep cleanup
2005-07-02 22:38:02 +00:00
Chris Danford
a1f3b14619
VC6 fix
2005-07-02 18:04:31 +00:00
Glenn Maynard
0a3d0759b6
sync before umount; cleanup
2005-07-02 05:37:33 +00:00
Glenn Maynard
82e0d89f65
quiet
2005-07-02 04:17:27 +00:00
Glenn Maynard
7b03083616
cleanup
2005-07-01 05:11:39 +00:00
Glenn Maynard
bb8af41cb1
missing headers
2005-07-01 05:07:22 +00:00
Glenn Maynard
3450307b01
reduce dependencies
2005-07-01 05:06:00 +00:00
Glenn Maynard
04546763e0
reducing ProfileManager.h dependency on Profile.h (many users only use
...
PManager to see if a profile is loaded, etc, not to access the actual profiles)
2005-07-01 04:46:32 +00:00