Commit Graph
51 Commits
Author SHA1 Message Date
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +00:00
Chris Danford 353e0c5b6e break up arch stuff into smaller .cpp files to fix smpackage build and not pull in unnecessary stuff 2005-12-16 04:16:09 +00:00
Glenn Maynard 348a3fb4e0 remove BGAnimationLayer::Unload, BGAnimationLayer::Init 2005-11-29 17:23:04 +00:00
Glenn Maynard 6a8a81a095 remove Generic stuff. It broke a while back, and it's too painful to keep around. 2005-08-31 22:15:33 +00:00
Glenn Maynard 1c81bcc5fc EarlyAbortDraw() const 2005-08-25 00:57:53 +00:00
Glenn Maynard 0532a3db79 cleanup 2005-07-07 10:48:02 +00:00
Chris Danford 98784d3fb5 Split Update into Update and UpdateInternal so that every class doesn't need to early abort in Update when hibernating 2005-06-11 10:32:58 +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 ca09e21104 move render state effect variables out of BGALayer and into ActorFrame 2005-02-28 04:14:25 +00:00
Chris Danford cda4c3b04a make Actor LoadFromNode signatures consistent 2005-01-17 05:28:16 +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 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 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 336a035660 BGAnimationLayer::LoadFromIni -> BGAnimationLayer::LoadFromNode 2005-01-15 13:56:05 +00:00
Chris Danford 981e52ec58 merge IniFile and XmlFile 2005-01-07 14:28:00 +00:00
Chris Danford 57e02f2b75 change BGALayer to use Actor's map of commands
add "applydefaultoptions" command
clean up CoinMode and Premium enums
2005-01-04 10:51:25 +00:00
Chris Danford a675190a55 Don't re-parse the ini file multiple times per BGALayer. Yuck. 2004-12-27 10:24:54 +00:00
Chris Danford f5d3b27450 name cleanup: Gaining -> Gain, Losing->Lose 2004-08-22 02:16:31 +00:00
Glenn Maynard 12bf8f87fd license updates 2004-06-01 00:53:06 +00:00
Glenn Maynard aada5a8a91 "DrawCond" 2004-03-27 00:23:29 +00:00
Chris Danford dd78eb858f fix PlayCommand doesn't propogate 2004-02-01 04:41:48 +00:00
Chris Danford 88cca70487 combine .actor and BGALayer loading
make BGAniLayer derive from ActorFrame
2004-01-25 22:22:40 +00:00
Glenn Maynard 0a8096b293 Give BGAnimations loaded from AutoActor Actor semantics, not
BGAnimation semantics.
2003-11-05 03:56:37 +00:00
Glenn Maynard 48ee51e268 support BGAnimation::FinishTweening 2003-11-05 02:23:21 +00:00
Glenn Maynard 8e9e04e221 generalized BGA command names 2003-10-31 01:55:17 +00:00
Glenn Maynard a0b4b80a03 Remove another unsafe cast.
m_fStretchTexCoordVelocityX -> TexCoordVelocityX, etc.
Remove TYPE_STRETCH.
Disassociate BGAL::Type from the "Type" BGA metric.  Prefer "Type=sprite",
"Type=particles", "Type=tile", and "Stretch=1" (for sprite only).  Type=0, 1, 2, 3 still
work; 0 is "Type=sprite", Stretch=0 and 1 is Type=sprite, Stretch=1.
Remove old code.
Historical note: "stretch" was used in this code at various times to mean both 1:
"stretch the internal texture image to fit the texture" and 2: "stretch the displayed
image to fill the screen".  It now only means #2.  #1 is done automatically when needed.
Note that LoadFromAniLayerFile should never load an INI; it's for backwards-
compatibility only.  LoadFromIni is simpler and more flexible.
2003-10-31 00:01:16 +00:00
Chris Danford d95785d3c6 rename variables 2003-10-24 08:49:48 +00:00
Chris Danford 7ba701cffa increase particle limit, add command repeating to layer 2003-10-24 07:25:13 +00:00
Chris Danford 5b3a0330b9 add OffCommand to BGAnimation 2003-07-10 03:37:13 +00:00
Chris Danford 332c2b318c break battle into two PlayModes: CPU_BATTLE, HUMAN_BATTLE 2003-07-08 19:56:56 +00:00
Chris Danford 6c99547b6a add ClearZBuffer command for Actors
add Lighting flag for BGAnimationLayer
2003-07-07 20:24:51 +00:00
Chris Danford c67d78d948 let Actor subclasses have first crack at parsing commands
allow Models and BitmapTexts in BGAnimationLayer (detected through file extension)
add RageModelVertex, which doesn't have a color property
add "stretch" file name hint for textures
2003-07-07 01:29:18 +00:00
Glenn Maynard 11cdc5dc56 nothing derives from BGAL 2003-06-30 05:34:03 +00:00
Chris Danford cded5dbac0 Scale background playback speed by song rate. This sync isn't very accurate though (because of inaccurate playback rate code in sound library?) 2003-04-14 04:54:16 +00:00
Chris Danford cfe1f9ec67 Add parameters to BackgroundChange: fRate, bFadeLast, bRewindMovie, bLoop.
I don't like how this changes the syntax for the #BGCHANGES tag in an SM file.  I will think more about this - it's important to finalize it quickly.
2003-04-14 04:10:01 +00:00
Glenn Maynard 7f17ae1b42 add BGAnimationLayer::GetMaxTweenTimeLeft
this isn't an overload of GetTweenTimeLeft, since it returns the
tween time of its children, which is separate from its own tween
time
2003-03-17 01:34:12 +00:00
Glenn Maynard daf9d373a3 Dynamically allocate Sprites in backgrounds, instead of always
allocating and initializing hundreds of them per background.
2003-03-17 01:15:42 +00:00
Chris Danford f5402584f9 make UseSongBG work for BGAnimations not inside of Background (e.g. on ScreenStage) 2003-03-10 02:46:01 +00:00
Glenn Maynard 70af758545 fix minor warnings 2003-03-05 23:47:08 +00:00
Chris Danford d34102b717 scripting support in BGAnimations 2003-03-05 02:52:40 +00:00
Andrew Livy 78d66da3d3 BGAnimation Layer now has a -really poor- tweening mechanism.
It barely takes into account -time-.

Pump How To Play BGA Screen now kinda complete, and uses the mechanism
(this is a for a demonstration on the kinds of things we need to support in
BGALayer to make truly unique animations, it shouldn't be carved in stone
and used as THE BGA Tweening system as it is.)
2003-01-12 18:41:24 +00:00
Andrew Livy 0f7b5c2a6b Started on Pump How To Play screen.
Changes to BGAnimations:
Metric Configurable Stuff:
1. you can rotate your BGA's
2. You can specify their X
3. You can specify their Y
4. You can make them appear (once) after a set time
5. You can make them hide (once) after a set time (useful if you want an item to show and appear just once)
6. You can set how ZOOMED in the element is.

This will only work for sprite 0 in the BGAnimation Layer,
I have currently done NO checking should there be more than one sprite in the layer (I suspect only sprite 0 will change and the rest will be unaffected)
But again fairly untested. Check out the Pump How To Play screen to see it running.

In the works:
Tweening With BGAnimations.
Haven't quite figured this one yet.
2003-01-12 00:57:53 +00:00
Andrew Livy 73e02a6d1a Para Theme Changes, Style Select Now Looks Cool :) Also added a Horizontal Scrolling Element for BGA's that will stretch the width but not the height of the graphic, and will allow the user to set it's Y postion in a metric. 2002-12-21 20:33:10 +00:00
Glenn Maynard 24cc7a3c04 Get rid of all other #pragma once's, except the one in StdAfx.h.
(three cheers for perl)
2002-11-16 08:07:38 +00:00
Chris Danford 73f7db6b15 Replaced most D3DX dependencies. Added Brendan's not-yet-functional networking code. 2002-10-28 05:30:45 +00:00
Chris Danford 5e9a6a4df6 Added fade between movies and touched up some graphics 2002-10-10 04:11:30 +00:00