Commit Graph

495 Commits

Author SHA1 Message Date
Chris Danford 00c9ffcd67 OptionIcon -> ModIcon to reduce confusion between OptionRow, OptionIconRow 2008-04-27 21:31:56 +00:00
Chris Danford c8d8b8925d Have OptionRow load from its own metrics group rather than from ScreeOptions. The purpose of some elements isn't clear from the element name when everything loads from one group. 2008-04-27 19:47:50 +00:00
Chris Danford 46257583b6 bullet -> RowFrame, separate normal row and exit row graphics, break cursor and underline into per-player graphics (don't hard-code players numbers) 2008-04-27 04:36:59 +00:00
Chris Danford f04098518b add TransformItemDirect for places (StreamDisplay) that don't want to cache the transforms and also want to do non-TweenState things to an item (GetWidth,SetState) 2008-03-22 02:53:35 +00:00
Chris Danford 8ea8dc83d5 allow 3 key navigation of workout Screens, ScreenMiniMenu 2007-10-27 22:00:20 +00:00
Chris Danford 09e3f1872e GetNextScreen -> GetNextScreenName (makes return type more clear in Lua) 2007-08-25 03:13:16 +00:00
Glenn Maynard 80470b92f9 some MENU -> GAME 2007-05-10 18:43:44 +00:00
Glenn Maynard 6337f2aa17 use generic RepeatRate, RepeatDelay 2007-03-16 06:04:38 +00:00
Glenn Maynard b86f021da8 split apart SetRepeatRate, SetRepeatDelay 2007-03-16 05:47:29 +00:00
Glenn Maynard 92cc42823d fix commands 2007-02-21 11:16:13 +00:00
Chris Danford 599db61b62 Always call LoadAllCommands explicitly.
The hack to LoadAllCommands when playing a command was leading to weird interactions: If a theme element contained an OnCommand, it would cause the rest of the commands defined in metrics to not be loaded.
2007-02-19 09:30:07 +00:00
Chris Danford f7fc9ceaa5 remove Set/GetHidden, leave *Visible
remove hidden from ActorCommands eventually
2007-02-13 06:32:26 +00:00
Glenn Maynard ec030b56ba parent 2006-10-14 04:55:36 +00:00
Glenn Maynard c690fdcfe4 unify registration 2006-09-29 00:01:32 +00:00
Glenn Maynard 4002071bea simpler Lua boilerplate 2006-09-27 19:47:52 +00:00
Glenn Maynard 2d1a2e6a07 use bindings 2006-09-27 06:21:34 +00:00
Glenn Maynard f567a0fd28 cleanup arg order 2006-09-26 08:54:54 +00:00
Glenn Maynard ce3ebd0293 use GetMetricR 2006-09-22 03:38:47 +00:00
Steve Checkoway 944a913790 PlayerNumber -> IEP. 2006-09-15 01:47:24 +00:00
Glenn Maynard c7dfb9f2ec MenuInput -> MenuButton 2006-09-14 20:52:34 +00:00
Glenn Maynard 516c759d12 simplify 2006-09-14 04:07:52 +00:00
Glenn Maynard b531c954d1 pass pn (duplicate will go away later) 2006-09-14 03:43:34 +00:00
Glenn Maynard cbfebb16bb use input.pn 2006-09-13 10:11:36 +00:00
Glenn Maynard 80a8a67631 remove fFastDelay 2006-09-13 03:01:51 +00:00
Glenn Maynard c71d8f7425 IET_SLOW_REPEAT -> IET_REPEAT 2006-09-13 02:59:05 +00:00
Glenn Maynard d03db0c4f9 remove IET_FAST_REPEAT 2006-09-13 02:55:19 +00:00
Glenn Maynard ec3b9382d2 InputMapper::IsButtonDown -> IsBeingPressed, to match InputFilter::IsBeingPressed 2006-09-08 02:12:30 +00:00
Steve Checkoway ee1d3212af Revert. Screens should not maintain state across BeginScreen(). 2006-09-01 08:32:28 +00:00
Steve Checkoway cc7e78d058 Only restart the options the first time BeginScreen is called. If you want the options restarted, call it explicitly. This combined with grouping of options screens allows for a much more intuitive options interface. Hunting for the one option you need is already hard enough, being forced to keep scrolling down every time you back out of one of the option screens is beyond annoying. 2006-09-01 08:19:44 +00:00
Steve Checkoway 37dc530c0a Don't rebuild the vector of human players for each row. 2006-09-01 07:46:37 +00:00
Glenn Maynard 7b995b8487 remove unused 2006-08-20 20:01:53 +00:00
Chris Danford 2ed665604f play gainfocus/losefocus on m_sprMore 2006-07-02 05:57:22 +00:00
Glenn Maynard d49c0ca0b7 unneeded 2006-06-27 23:17:36 +00:00
Glenn Maynard 5795d2b5f6 merge m_fLockInputSecs's 2006-06-27 22:51:43 +00:00
Glenn Maynard 800ec64460 remove old 2006-03-28 10:19:47 +00:00
Glenn Maynard 3e20c357ad fix wrong options positions when memory cards inserted 2006-03-28 10:18:45 +00:00
Glenn Maynard d58f58bd88 Fix ScreenOptions::RestartOptions doesn't call AfterChangeRow.
(AfterChangeRow calls AfterChangeValueOrRow.)
2006-03-28 09:56:31 +00:00
Chris Danford 51735a33a9 remove unused #defines 2006-03-09 09:44:39 +00:00
Chris Danford 58a6402201 play cancel sound when using CancelTransitionsOut, not start sound 2006-03-08 23:58:37 +00:00
Chris Danford e02690299a add Explanation OffCommand 2006-03-08 18:08:04 +00:00
Chris Danford e13bd85d5b don't assert if no rows enabled (editor help screen) 2006-03-01 22:06:31 +00:00
Glenn Maynard c2243b0b0e ScreenOptions fading is a headache. We move rows up and down, and
fade them in and out at the same time; we do this by tweening the whole
row up and down, and fading each part of the row.  This is a big pain,
because we're also tweening each part for other reasons, and these
tweens tend to collide.  The whole thing is brittle and complicated,
and it's making fixing other problems a pain.

Try it a little differently: to fade the whole row, tween the alpha
along with the position of the whole row.  Then, manually propagate
the changing alpha value to each part, using BaseAlpha, so it doesn't
affect other tweens.

This also helps segregate the fading: with the exception of the actual
propagation, OptionRow doesn't have to know anything about it.  Before,
it had to constantly be careful that any tweening operations didn't
collide with the alpha tweening; often, one or the other would be cancelled,
resulting in either the change not happening at all, or snapping instead
of fading.

(This is still a hack, but it's more manageable; it puts control of high-level
tweening entirely in SOptionsMenu's control, instead of half in OptionRow.)
2006-02-27 03:04:56 +00:00
Glenn Maynard 1262243670 simplify 2006-02-27 01:37:43 +00:00
Glenn Maynard 973438f79b merge loop, comment 2006-02-27 00:52:09 +00:00
Glenn Maynard 25c9e31218 underlines and icons are unrelated; reorder 2006-02-27 00:51:11 +00:00
Steve Checkoway dd46ba19b5 Cleanup. 2006-02-19 01:01:11 +00:00
Steve Checkoway 1090af5ac0 Simplify. 2006-02-19 00:07:03 +00:00
Glenn Maynard 7ed5caf16b fix hiding m_sprLineHighlight (for real) 2006-02-18 02:51:58 +00:00
Glenn Maynard bc94e6e8a8 fix hiding m_sprLineHighlight 2006-02-18 02:51:22 +00:00
Chris Danford 95c88765a0 fix options rows tween from top of screen instead of initially being in the row's position 2006-02-10 04:33:54 +00:00