Glenn Maynard
dfe7ec00ae
fix assert
2005-01-22 03:52:23 +00:00
Glenn Maynard
1d3613f161
for real this time :)
2005-01-22 03:39:39 +00:00
Glenn Maynard
754bce5c98
optimize rendering iteration
2005-01-22 03:11:29 +00:00
Glenn Maynard
032ddf0e08
Don't hold a redundant copy of the NoteData in NoteField. NoteField is
...
now just a renderer for NoteData. This means we don't have to carefully
apply all changes to NoteData to NoteField.
2005-01-22 02:50:45 +00:00
Glenn Maynard
46ace22b79
continue merging NoteDataWithScoring stuff
2005-01-22 02:10:54 +00:00
Glenn Maynard
c321bbe196
start merging NoteDataWithScoring and NoteField per-hold and per-tap
...
data into TapNote and HoldNote. This reduces lookup costs significantly.
It's a bit simpler, though I'm not entirely happy with the resulting encapsulation ...
2005-01-22 01:37:32 +00:00
Glenn Maynard
5407f0998e
merge tap result into a TapNoteResult struct
2005-01-21 22:50:13 +00:00
Glenn Maynard
f19925001d
unused
2005-01-21 22:43:49 +00:00
Glenn Maynard
2b73f63ea8
RetryCancel -> AbortRetry
...
remove Dialog::cancel
2005-01-20 19:40:24 +00:00
Glenn Maynard
38c6dcbb0b
ugly hack to fix crash on "retry"
2005-01-20 19:16:47 +00:00
Glenn Maynard
6b2e1e6d13
more branch conversions
2005-01-20 18:29:20 +00:00
Glenn Maynard
75c7d7ec62
jump through fewer hoops with ScreenStage
2005-01-20 18:13:37 +00:00
Glenn Maynard
65e5d35937
unneeded include
2005-01-20 17:18:51 +00:00
Glenn Maynard
59d04d5755
proper portable fallback
2005-01-20 16:05:17 +00:00
Glenn Maynard
583eaf5532
fix syntax problem in some compilers
2005-01-20 14:53:22 +00:00
Glenn Maynard
cc70e8dd82
fix old sort not being selected in sort menu
2005-01-20 03:15:01 +00:00
Glenn Maynard
a2e18e1f78
update
2005-01-20 03:12:02 +00:00
Glenn Maynard
5670caf20d
update
2005-01-20 02:39:22 +00:00
Glenn Maynard
808f7ab7d5
fix m_meterSongPosition finishing too soon
2005-01-20 02:21:55 +00:00
Glenn Maynard
43ae26174e
removed
2005-01-20 02:11:59 +00:00
Glenn Maynard
6fdf6bfa57
cleanup
2005-01-20 02:07:02 +00:00
Glenn Maynard
d00062b915
fix gcc compile
2005-01-20 02:04:46 +00:00
Glenn Maynard
b19f730790
script fix
2005-01-20 01:51:30 +00:00
Glenn Maynard
362c2a1d10
remove some unused stuff
2005-01-20 01:50:56 +00:00
Glenn Maynard
7ac35530e9
comment
2005-01-20 01:49:04 +00:00
Glenn Maynard
5f4ee474f5
comments
2005-01-20 01:47:45 +00:00
Glenn Maynard
b8532a2880
update
2005-01-20 01:46:13 +00:00
Glenn Maynard
ce043592f3
Remove Xbox stuff from LoadingWindow_SDL; I don't think that build uses SDL anymore. Note that this type of platform-specific stuff doesn't belong in generic drivers like this ...
2005-01-20 01:44:46 +00:00
Glenn Maynard
1a1ab12c1f
cleanup
2005-01-20 01:42:06 +00:00
Glenn Maynard
9fc3addf45
cleanup
2005-01-20 01:42:05 +00:00
Glenn Maynard
9ebd1d19dd
more renames
2005-01-20 01:35:49 +00:00
Glenn Maynard
4a442d1699
more renames
2005-01-20 01:30:56 +00:00
Glenn Maynard
24250824de
At the cost of losing change history, I'm renaming a couple "SDL" filenames
...
that no longer have any connection to SDL; the names are just too confusing.
2005-01-20 01:26:15 +00:00
Glenn Maynard
21316d7904
use GetArg, so parameters are evaluated correctly
2005-01-20 01:09:34 +00:00
Glenn Maynard
e3ce7e8e73
fix script loading
...
move @expression evaluation into LuaManager (LuaManager::RunAtExpression)
evaluate string command parameters
2005-01-20 01:08:26 +00:00
Glenn Maynard
ae1329802b
SelectEvaluationScreen()
2005-01-20 00:38:25 +00:00
Glenn Maynard
6493010e49
Use a Lua script to select the evaluation screen, instead of a ScreenBranch.
...
This approach has several advantages. It's more flexible; full conditionals
can be used. It mixes with things like the "bGoingToPlayTheSameMusic"
logic in ScreenAttract much better; it gets the real real next screen, not
the branch. It also mixes with screen preloading, such as used by ScreenStage.
(I don't know if grouping functions that are used like branches makes sense;
I'm not sure how Lua will be used in general, so this stuff might get reorganized
later.)
2005-01-20 00:37:33 +00:00
Glenn Maynard
d18a8342fc
s/Lua/Scripts/ (we don't call the "Graphics" directory "Png/" ...)
2005-01-19 23:46:09 +00:00
Glenn Maynard
714bf62d5d
add "Trace" (in here and not RageLog because I'm not yet quite ready
...
to make everything in Rage depend on Lua ...)
2005-01-19 23:43:28 +00:00
Glenn Maynard
5ef0d4159d
Load global Lua scripts.
...
This is appropriate for global scripts which are loaded only once, and
used multiple times: the scripts can safely affect global state (eg. override
functions), and stay in memory. There's no way to unload them short
of resetting the Lua state. It's not appropriate for one-shot scripts, such
as those that might be associated with BGAnimations. (needs more work)
2005-01-19 23:36:15 +00:00
Glenn Maynard
dd3aa1c12e
I'd hoped to not need explicit initialization of Lua, but it's more
...
trouble than it's worth.
Add LuaManager::RunScriptFile, LuaManager::RunScript, LuaManager::Init.
2005-01-19 23:33:19 +00:00
Glenn Maynard
0f4aec8584
change Lua to a singleton object
...
hide Lua state
2005-01-19 23:01:53 +00:00
Glenn Maynard
91a6486f9e
start changing Lua to a singleton object
2005-01-19 22:27:24 +00:00
Glenn Maynard
048ff316e7
comment
2005-01-19 21:45:09 +00:00
Glenn Maynard
e9789a861d
Once a screen is queued to load, discard further inputs
2005-01-19 21:44:03 +00:00
Glenn Maynard
d8b7d68842
Make lua a global library. I'm not sure this is best (PrefsManager needs it), but it's nice to simply be able to define Lua functions anywhere ... (fixes build of some tests)
2005-01-19 18:23:19 +00:00
Glenn Maynard
41622d238c
Use sysfs to probe memory cards. This has several advantages:
...
all of the information we need is in one place, with proper links so we
don't have to do weird hacks to connect data together
we don't have to touch /proc/bus/usb/devices; doing so generates USB
messages to all devices, which can cause problems
works for all removable devices; usb-storage or ub should both work with
no changes, as long as mountpoints exist in /etc/fstab
doesn't need to fork lsusb
Old support is removed; unless serious, unfixable problems are found with
this method, the old code is too big and confusing to keep around. This
code needs more testing.
2005-01-19 18:11:13 +00:00
Glenn Maynard
b0df65805e
Update iLastHeldRow even when out of range, to be sure it's clamped
...
properly. Fixed hold counting glitches.
2005-01-18 08:20:14 +00:00
Glenn Maynard
9344535419
fix Command/ActorUtil::Command ambiguity
2005-01-17 22:45:00 +00:00
Glenn Maynard
288b5c903b
cleanup
2005-01-17 22:42:57 +00:00
Glenn Maynard
c456148b37
quiet aclocal 1.8 warnings
2005-01-17 17:51:18 +00:00
Glenn Maynard
7b43001220
"aspect ratio" is ambiguous; s/m_fAspectRatio/m_fDisplayAspectRatio/
2005-01-16 22:57:11 +00:00
Glenn Maynard
10b175566b
preserve aspect ratio in screenshots even if resolution is 640x480
2005-01-16 22:14:39 +00:00
Glenn Maynard
3fe8ec27db
don't convert the image if we have nothing else to do
2005-01-16 22:13:01 +00:00
Glenn Maynard
bdc1b08695
pass DAR to the display; preserve aspect ratio in screenshots
2005-01-16 22:06:36 +00:00
Glenn Maynard
6ca113d42e
cleanup
2005-01-16 21:10:15 +00:00
Glenn Maynard
75973e6fa4
remove trace
2005-01-16 20:54:37 +00:00
Glenn Maynard
b733db6152
remove SongCreditDisplay; use @GetSongCredits() instead
2005-01-16 20:53:29 +00:00
Glenn Maynard
478fa499c1
fix stuff sneaking into player's best that shouldn't
2005-01-16 20:51:11 +00:00
Glenn Maynard
37fe56a4f7
cosmetic
2005-01-16 20:37:08 +00:00
Glenn Maynard
39384227c4
allow Lua expressions in text metrics by prepending @
2005-01-16 20:36:27 +00:00
Glenn Maynard
0849ef8a46
log dialogs
2005-01-16 20:32:53 +00:00
Glenn Maynard
9ff1834076
remove LoadFromActorFile overload that's only used in one place
2005-01-16 19:52:41 +00:00
Glenn Maynard
5057144536
remove old debug (note: FAIL_M(x) is better than ASSERT_M(0, x))
2005-01-16 19:43:13 +00:00
Glenn Maynard
77faa0d089
don't need to keep m_bGeneric around
2005-01-16 19:19:24 +00:00
Glenn Maynard
c1e3239a5f
cleanup
2005-01-16 19:18:23 +00:00
Glenn Maynard
8f99164eb5
All BGAnimations are "generic", except for those loaded directly from
...
Background. This should be more consistent (we were creating BGAnimations
as non-generic in some places where it probably should have been generic).
This means all themes need to explicitly set the position of all BGAnimation
graphics, which is good practice anyway.
2005-01-16 18:25:29 +00:00
Glenn Maynard
a65c514dad
fix test_audio_readers build
2005-01-16 16:34:19 +00:00
Glenn Maynard
0e94b4cbdf
SM_BeginFadingOut is being sent by ScreenAttract already
2005-01-16 14:53:32 +00:00
Glenn Maynard
7183a5e271
Add ScreenAttract::AutoBeginFadingOut() to disable sending
...
SM_BeginFadingOut. We can't do this in the ctor (since it's sent during
Update now); we can't do it in Update(), because if the message is posted
with a delay of 0 (ScreenRanking), the message will be added by
ScreenAttract::Update and immediately processed by Actor::Update
before the derived Update can remove it.
2005-01-16 14:48:44 +00:00
Glenn Maynard
82ed283ac0
load scroller in LoadFromAniDir for now; not sure why this doesn't always work
2005-01-16 02:04:39 +00:00
Glenn Maynard
7a0373aafd
update
2005-01-16 00:25:24 +00:00
Glenn Maynard
b573ab428f
remove unused stuff
2005-01-16 00:23:08 +00:00
Glenn Maynard
8ef0fff740
cleanup
2005-01-15 22:58:27 +00:00
Glenn Maynard
f256618fe1
no need to persist some of this particle stuff
2005-01-15 22:52:46 +00:00
Glenn Maynard
ad7b93372a
EFFECT_TILE_PULSE isn't in m_Type ...
2005-01-15 22:36:23 +00:00
Glenn Maynard
0abc942910
clean up OnCommand handling in song backgrounds
2005-01-15 22:34:04 +00:00
Glenn Maynard
a0e9c5a8c6
Remove CommandRepeatSeconds. Instead, do:
...
OnCommand=x;y;z;queuecommand,playcommand,On
2005-01-15 22:31:43 +00:00
Glenn Maynard
762c9a77fb
cleanup
2005-01-15 22:29:42 +00:00
Glenn Maynard
4ce9b72e41
BGAnimation -> AutoActor
2005-01-15 21:03:26 +00:00
Glenn Maynard
b1227b4372
headers
2005-01-15 21:00:50 +00:00
Glenn Maynard
862f19ed65
simplify
2005-01-15 20:55:04 +00:00
Glenn Maynard
635d5e43e2
eliminate LoadFromStaticGraphic
2005-01-15 20:48:20 +00:00
Glenn Maynard
594587607c
Eliminate BGAnimation::LoadFromMovie and BGAnimationLayer::LoadFromMovie.
2005-01-15 20:37:46 +00:00
Glenn Maynard
66d39dd65c
Add ActorFrame::DeleteChildrenWhenDone, to call DeleteAllChildren automatically.
...
Move movie GainFocus/LoseFocus handling to Sprite.
Visualizations are part of Background, not BGAnimation; move them there. Remove BGAnimation::LoadFromVisualization and BGAnimationLayer::LoadFromVisualization.
2005-01-15 20:32:35 +00:00
Glenn Maynard
f4a51bef4d
move FullScreenRectF into ScreenDimensions.h
2005-01-15 19:44:32 +00:00
Glenn Maynard
6d64f3aa78
cleanup
2005-01-15 19:42:47 +00:00
Glenn Maynard
c9091a1214
Don't play "On" automatically for non-generic BGAnimations; play it
...
explicitly, like we do with all other objects.
2005-01-15 19:21:09 +00:00
Glenn Maynard
dc7fcbc776
remove m_Overlay (duplicates ScreenWithMenuElements::m_sprOverlay)
2005-01-15 18:54:04 +00:00
Glenn Maynard
314e801115
m_vpBGAnimations hasn't actually done anything in about a year (it's
...
never loaded); remove it. It's not useful, anyway: it gives no means to
tween options when changing the selection.
2005-01-15 18:50:52 +00:00
Glenn Maynard
29b2a6d22f
remove m_bgOverlay (duplicates ScreenWithMenuElements::m_sprOverlay)
2005-01-15 18:41:09 +00:00
Glenn Maynard
bf7eeb60fb
unused includes
2005-01-15 18:36:29 +00:00
Glenn Maynard
754fb297fa
cleanups, fixes
2005-01-15 18:33:09 +00:00
Glenn Maynard
78800818e3
Remove BGAnimation::GetLengthSeconds; use GetTweenTimeLeft instead.
2005-01-15 18:31:14 +00:00
Glenn Maynard
8cd0d9e04c
load Scroller in BGAnimation::LoadFromNode
2005-01-15 14:52:37 +00:00
Glenn Maynard
336a035660
BGAnimationLayer::LoadFromIni -> BGAnimationLayer::LoadFromNode
2005-01-15 13:56:05 +00:00
Glenn Maynard
4267a5f942
ActorScroller::LoadFromIni -> ActorScroller::LoadFromNode
2005-01-15 13:47:02 +00:00
Glenn Maynard
2ecbfae787
fix record
...
eliminate g_pCurrentMap (one less piece of state to become desynced)
2005-01-15 13:14:36 +00:00
Glenn Maynard
8781bb055d
cleanup, fix gcc compile
2005-01-15 13:05:33 +00:00
Glenn Maynard
0b4ad2db3b
generalize
2005-01-15 04:31:35 +00:00