Commit Graph

24 Commits

Author SHA1 Message Date
Glenn Maynard b31be5e213 fix up overlay draw order 2005-02-25 01:51:40 +00:00
Glenn Maynard b51b0cfb4c Use Init() for all screens, so we can set state before the base class
members are loaded--they'll see resets, score finalization, etc.  It
also results in smaller code, due to a g++ bug that causes constructors
to be emitted several times.
2005-02-23 06:29:05 +00:00
Glenn Maynard 8a04a3eeeb Add ScreenWithMenuElements::FirstUpdateCommand, a Lua expression
that gets called on first update.  Note the difference between
using ThemeMetric<LuaExpression> and ThemeMetric<ActorCommands>:
with ActorCommands, you get the special, backwards-compatible
parsing; with LuaExpression, only a regular expression is parsed.

You can still only (cleanly) call one function, since "return"
is prepended: if you say "f() g()", it'll try to run "return f() g()".
I tried having a separate type for "expression" and "script", but
it seems confusing to have some metrics parsed as scripts and
some as expressions, allowing multiple functions in only specific
metrics.  If you want to do that much, it's cleaner to create
a function and call it, anyway.  If you just want to add diagnostics
quickly, you can say "Foo=(function() x() y() z() end)()".  (I might
revisit this later.)
2005-02-17 06:13:23 +00:00
Chris Danford 2b974e654d play OffCommand for underlays 2005-02-15 07:58:06 +00:00
Glenn Maynard a6ccaff834 Add a separate underlay layer. This should be used for adding actors
instead of modifying background, since changing the background per-
screen breaks the "persist background" logic in ScreenManager.
2005-02-12 20:31:15 +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 5d6eb1d236 put ActorUtil functions in a namespace 2005-01-17 05:42:52 +00:00
Glenn Maynard 3740f6d7b8 run OffCommand for overlay 2005-01-08 00:06:51 +00:00
Chris Danford 1a5d766b01 add overlay 2005-01-05 04:32:12 +00:00
Glenn Maynard 2f8deb615f fix ScreenCaution not continuing when menu timer is disabled 2004-12-21 01:29:41 +00:00
Chris Danford b6d711b3c1 Remove backgrounds on screens. Have one shared background that persists across screens. 2004-12-09 08:16:18 +00:00
Chris Danford 6181e142dc add metric to put timer in stealth mode 2004-12-04 21:13:29 +00:00
Chris Danford 005a7f5efa convert more prefs to use Preference 2004-12-04 10:35:50 +00:00
Chris Danford 7f336c2ce6 self-registering screen classes 2004-11-26 17:28:47 +00:00
Chris Danford d7953ded5c fix "style icon shows P1 even if P2 is the only player" 2004-08-11 03:58:25 +00:00
Chris Danford 64628fac21 remove enum Game. Instead, pass around the GameDef pointer 2004-07-25 04:27:20 +00:00
Chris Danford 5544445ad0 name cleanup: StyleDef -> Style 2004-06-28 07:26:00 +00:00
Chris Danford 3809715db0 cleanup: Remove Style and use StyleDef everywhere. This gets rid of a lot of Style->StyleDef lookups and discourages code that's specific to a Style. All game logic should be data-driven. 2004-06-27 06:52:49 +00:00
Glenn Maynard e4d124dd91 license update 2004-06-08 05:22:33 +00:00
Chris Danford ba93ee8469 "for( int p=0; p<NUM_PLAYERS; p++ )" -> "FOREACH_PlayerNumber( p )" 2004-05-24 06:10:11 +00:00
Glenn Maynard 282e502e6d fix ScreenSelectCharacter timer 2004-05-08 06:42:23 +00:00
Chris Danford 58d63cb476 make draw order separate from Z value
add "PageType" graphic to ScreenEvaluation
2004-05-02 03:01:27 +00:00
Chris Danford df5cd5e813 move MenuElements into a base ScreenWithMenuElements so that metrics can be overridden using the Fallback mechanism 2004-05-01 23:19:33 +00:00