Commit Graph
53 Commits
Author SHA1 Message Date
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +00:00
Glenn Maynard 6344476389 add ActorUtil::ActorParam helper 2006-01-14 05:27:29 +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 938bfeb7b0 add ActorUtil::SetParamFromStack, ActorUtil::GetParam. Save params to
a table, not as global variables.  Saving and loading from globals is still
around temporarily.
2005-10-29 01:28:29 +00:00
Glenn Maynard fbe094d34c Create actors with ActorUtil::Create in ActorUtil::MakeActor. This means
ActorUtil::LoadFromNode always uses ActorUtil::Create.  Previously, sprites
and models loaded without an explicit Class= were loaded directly.

Nested XML is merged explicitly.  Before, we loaded the final actor, and then
called Actor::LoadFromNode to pull in attributes from each nested XML node
as ActorUtil::LoadFromNode recursed back out, which was a bit confusing.  It
also caused weirdness with InitCommand: each time called it again, possibly
with a different InitCommand.  We need to only call it once, after all nodes
are loaded.

(MergeActorXML is a little annoying, but it does make it more clear what's
really happening.)
2005-10-11 21:59:48 +00:00
Glenn Maynard c9cb09dd36 ActorUtil::LoadFromActorFile -> ActorUtil::LoadFromNode 2005-10-11 02:51:05 +00:00
Glenn Maynard a69244f41f Take a path to ActorUtil::MakeActor, not a RageTextureID. Nothing uses it
here.
2005-10-10 20:55:47 +00:00
Glenn Maynard ed1ff5c63c fix up screen command loading 2005-09-08 03:38:08 +00:00
Glenn Maynard 02d10ae927 add LoadAllCommandsFromName 2005-09-07 20:41:50 +00:00
Chris Danford 7c4f2595ab Remove support for .actor. Use .xml instead. 2005-09-02 00:09:21 +00:00
Chris Danford 7cfcce6e7d remove .sprite file support. Use .xml instead 2005-07-26 20:00:19 +00:00
Glenn Maynard 55d6382c49 add virtual Copy() to Actor 2005-07-18 22:00:19 +00:00
Chris Danford 623dc2512f merge PlayCommand2 and PlayCommand so that Actor derivities only have to override one method to get the correct behavior 2005-06-12 00:35:08 +00:00
Chris Danford 94a9cda191 add GetFileType to consolidate file extension parsing 2005-05-29 01:04:44 +00:00
Chris Danford 8eaf93a23d position Scroller items with a Lua function
add ActorFrame::m_bDrawByZPosition
2005-05-03 09:29:54 +00:00
Chris Danford ade579667b load all commands from metrics when the On command is played. This fixes skips when playing the Off command. 2005-03-13 20:44:26 +00:00
Chris Danford 8cf70ce1d0 register a class using any name 2005-03-01 02:49:57 +00:00
Glenn Maynard b3a8e8fd4f split out ActorUtil::ResolvePath 2005-02-26 10:07:02 +00:00
Chris Danford f395d0a401 preload commands 2005-02-23 23:04:06 +00:00
Chris Danford 5ed6736eef sScreenName -> sType 2005-02-23 22:21:39 +00:00
Chris Danford 8c53c62f2b add Actor type registration 2005-02-09 05:31:14 +00:00
Chris Danford 1de61aa8ae split AutoActor into a separate file 2005-02-09 05:27:51 +00:00
Glenn Maynard 9344535419 fix Command/ActorUtil::Command ambiguity 2005-01-17 22:45:00 +00:00
Chris Danford 5d6eb1d236 put ActorUtil functions in a namespace 2005-01-17 05:42:52 +00:00
Chris Danford cda4c3b04a make Actor LoadFromNode signatures consistent 2005-01-17 05:28:16 +00:00
Glenn Maynard 9ff1834076 remove LoadFromActorFile overload that's only used in one place 2005-01-16 19:52:41 +00:00
Chris Danford 981e52ec58 merge IniFile and XmlFile 2005-01-07 14:28:00 +00:00
Chris Danford 78db0513dc sClassName -> sScreenName
load commands from .actor files
2005-01-04 10:42:59 +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
Charles Lohr 70ea342ac1 Move: Utility from ActorUtil to ScreenNetBase 2004-11-24 00:00:56 +00:00
Charles Lohr b43d281b78 Cleanup; Get rid of nasty repetitive code. 2004-11-23 22:06:27 +00:00
Chris Danford 40e692a32c const fixes 2004-11-06 03:00:10 +00:00
Glenn Maynard c531e8b172 license update 2004-06-08 00:47:53 +00:00
Chris Danford bb8ae37aab add graphic for ScreenPlayerOptions CancelAll 2004-03-13 18:15:50 +00:00
Chris Danford 23e763c107 fix eval screen assert 2004-03-10 07:19:40 +00:00
Chris Danford d0356d78fa if using a handicap option, don't add a high score and show "disqualify" on the eval screen 2004-03-09 08:19:55 +00:00
Chris Danford 69fd514b68 add 3D scrolling to ActorScroller
generalize BGAnimation, BGAnimationLayer to eliminate shared code with ActorFrame
2004-02-01 03:14:37 +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 a295e91e19 cleanup 2004-01-13 01:24:36 +00:00
Chris Danford f7647ae391 add pre-parsing for ActorCommands (though not yet used in ThemeManager) 2004-01-10 20:34:18 +00:00
Glenn Maynard 580c5899b0 Add AutoActor::IsLoaded.
Don't dereference an unloaded AutoActor.
Add const accessors.
2003-10-31 03:54:46 +00:00
Glenn Maynard e8394c109a simplify 2003-10-31 01:02:50 +00:00
Glenn Maynard c5086b20eb Bump Util commands out of the header. 2003-10-31 00:50:06 +00:00
Glenn Maynard 19f3338e5a Allow hinting sprite loads through MakeActor 2003-10-30 23:47:01 +00:00
Glenn Maynard 124707961c Move actor command parsing helpers into ActorUtil. 2003-10-30 21:57:38 +00:00
Steve Checkoway a906e9d37a I trust that this was what was intended. 2003-09-22 10:04:43 +00:00
Chris Danford e6d4d3fd43 Add AutoActor helper class. 2003-09-21 02:36:48 +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 31cf51d1ff eol 2003-06-30 06:05:05 +00:00
Chris Danford aac9739fac Add crop property to Actor - currently only used in Sprite 2003-06-20 23:04:11 +00:00