Chris Danford
2276b03c55
background assert -> warning. This fired, but I can't repro it and the assert didn't give useful data.
2005-06-14 05:21:48 +00:00
Chris Danford
6babd726f6
fix colors ignored in BGChange with file = -random-
2005-06-07 09:44:03 +00:00
Chris Danford
b489c43a88
add color parameter to BGChanges
2005-06-05 22:21:55 +00:00
Chris Danford
afec93797f
play commands even if not switching backgrounds. This is useful for short "flash" BGAs that play a few times in a row with nothing else in-between.
2005-06-05 03:18:09 +00:00
Chris Danford
73167283a3
fix random BGA placed on BPM change overrides scripted BG
...
add SBE_UpperLeft for correct alignment of BGAs
2005-06-05 02:23:15 +00:00
Chris Danford
3ff4a16ea0
sEffect specified in BackgroundChange overrides a random background's default effect
2005-06-04 23:27:44 +00:00
Chris Danford
3b61a74477
reduce header file dependencies
2005-06-04 21:22:50 +00:00
Chris Danford
c80d0c4a53
add support for random background sets using Song genre
2005-06-02 10:09:46 +00:00
Chris Danford
fa1bb13ccb
fill in random backgrounds only in layer 0
...
choose N random background up front, then load when used instead of choosing one at a time as they're needed
obey BGChange transition and effect in BGChanges to random
2005-06-02 04:37:33 +00:00
Chris Danford
dac72665e3
move background file enumerating into BackgroundUtil.*
...
fix editor background change functionality
2005-05-31 01:17:37 +00:00
Chris Danford
ac5a99b41f
specify effect and transition in each background change
2005-05-29 01:11:49 +00:00
Chris Danford
68a82faa6a
add multiple background layers
2005-05-26 09:35:57 +00:00
Chris Danford
0938d9d9a7
conver more to use Preference
2005-04-28 08:27:40 +00:00
Chris Danford
1469f8ffd7
add ClampOutputPercent for displays that can't display the full range of brightness
2005-04-15 11:03:04 +00:00
Glenn Maynard
d4a36895e3
fix GainFocusCommand, LoseFocusCommand not sent
2005-04-08 02:35:42 +00:00
Chris Danford
218be32879
separate fail types per player. Now FailType adjustments based on Difficulty only affect the relevant players.
2005-04-05 08:30:57 +00:00
Chris Danford
bb6592a4e7
use float.h and limit.h constants instead of arbitrary large numbers
2005-03-25 20:01:51 +00:00
Chris Danford
66a30e72b8
optimize: Add GetTimeSinceStartFast() that caches the time for archs where GetMicrosecondsSinceStart() is slow
2005-03-21 21:40:07 +00:00
Chris Danford
bb490cce88
always show tutorial at full brightness
2005-03-17 02:16:31 +00:00
Chris Danford
3953ce9bb2
always show tutorial at full brightness
2005-03-16 23:27:00 +00:00
Chris Danford
5991ee650b
fix tween overflow in editor playback
2005-03-14 12:10:35 +00:00
Ben Anderson
0db665d4d6
Thorough(!) remodeling of the arch/ directory and the contents therein; fixed link-time warnings on GCC and should make things a lot easier to manage. A pile of other random things too, mostly cleanups and getting things to work with the remodeled arch/ directory.
2005-03-14 06:44:38 +00:00
Chris Danford
78d7035b02
prefer random backgrounds in /<GroupName>
2005-03-02 03:20:12 +00:00
Glenn Maynard
e1d7d006cc
allow xml loading for backgrounds
2005-02-25 06:56:03 +00:00
Chris Danford
42c5e2b3f9
allow specifying a Lua function for a command with "%funciton(self) self:blah end"
2005-02-23 19:15:24 +00:00
Glenn Maynard
ffcdaeb515
fix OnCommand not being sent
2005-02-18 00:13:53 +00:00
Chris Danford
bb712884bb
move global StageStats into a singleton
2005-02-16 03:25:45 +00:00
Chris Danford
4223e09cc8
GetPathTo -> GetPath
2005-02-06 03:32:53 +00:00
Chris Danford
a24bd3014c
cleanup: "(PlayerNumber)" -> ""
2005-01-31 03:18:46 +00:00
Chris Danford
8555a6da45
use Lua to execute commands
...
(needs cleanup)
2005-01-26 11:21:43 +00:00
Glenn Maynard
3634c07656
Represent TimingData values (except for "seconds") in fixed-point.
...
Maybe we should stop calling note indexes "rows" and "indexes", and just
call them "beats"; if they're stored as an integer, they're in fixed-point. Things
like "note rows per second" are a lot less intuitive than just calling them "beats
per second".
2005-01-23 21:55:01 +00:00
Glenn Maynard
dfe7ec00ae
fix assert
2005-01-22 03:52:23 +00:00
Glenn Maynard
77faa0d089
don't need to keep m_bGeneric around
2005-01-16 19:19:24 +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
Chris Danford
8f524bd0f5
fix background position and scale not set correctly
2005-01-16 05:51:04 +00:00
Glenn Maynard
0abc942910
clean up OnCommand handling in song backgrounds
2005-01-15 22:34: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
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
3153c70ddb
Load Background's BGAs on first load, not in the ctor, so Jukebox and
...
Demonstration set up first; otherwise, BGAs with Lua expressions that
depend on them won't work.
2005-01-04 01:45:28 +00:00
Glenn Maynard
63364e5dcc
fix vc7 warnings
2004-12-29 22:41:27 +00:00
Glenn Maynard
6fa1bda0be
don't load initial static bg if other negative bgchanges are supplied; don't bother loading the bg itself if it's never used
2004-12-27 01:33:09 +00:00
Glenn Maynard
e42236713d
remove unused Background::LoadFromAniDir
2004-12-26 20:16:46 +00:00
Chris Danford
f840c014a9
Move some player-specific data out of the bloated GameState class.
...
Have gameplay objects hold a PlayerState pointer instead of a PlayerNumber and indexing back into GameState.
This will simplify off-screen players (e.g. CPU ghosts, network replicated human players, >2 players using one NoteField)
2004-12-20 06:25:59 +00:00
Sean Burke
e15d1da6b7
Revert and fix a bit better.
2004-12-04 20:44:02 +00:00
Steve Checkoway
eaca864906
Fix crash (only gcc?)
2004-12-04 20:36:29 +00:00
Chris Danford
005a7f5efa
convert more prefs to use Preference
2004-12-04 10:35:50 +00:00
Chris Danford
ed19821e09
rename: ActorCommand -> Command
...
Make Command smaller and more generic.
Parse arguments on use, not in Command::Load.
2004-12-03 05:19:46 +00:00
Chris Danford
bcbe615c0d
Pass ActorCommand structures to Actor instead of unparsed command strings.
...
This way, we can potentially do the parsing early and not parse inside of Actor as the command is executing.
2004-11-06 23:13:47 +00:00