Commit Graph

103 Commits

Author SHA1 Message Date
Glenn Maynard 2d00aaf5d5 update comment 2006-01-14 08:55:27 +00:00
Glenn Maynard d5a47f9af1 unneeded special case 2006-01-14 07:56:04 +00:00
Glenn Maynard 8374d2193b unneeded special case (m_OptionIcons[p] == NULL case below handles this too) 2006-01-14 07:53:39 +00:00
Glenn Maynard fecda0367f cleanup 2006-01-13 23:21:18 +00:00
Chris Danford fc18dbd342 make more strings localizable 2006-01-08 18:40:20 +00:00
Glenn Maynard b734b602d2 force TypeName arrays for XToString to be an array of const char*, not CString 2006-01-04 22:30:51 +00:00
Chris Danford 2d8b30e049 polish 2005-12-06 12:41:33 +00:00
Chris Danford 1c0dc2aad8 LABEL_ -> TITLE_ 2005-12-06 04:21:00 +00:00
Chris Danford 11e5aeb8b9 use | marker for "don't theme this choice" 2005-12-01 19:27:33 +00:00
Chris Danford 8cb7360ab6 bAllowThemeTitles -> bAllowThemeTitle 2005-11-30 22:37:51 +00:00
Chris Danford 42f056dfdb remove THEME_ITEMS and THEME_TITLES. Always theme unless the OptionRowData has been marked !allowTheme 2005-11-30 04:32:33 +00:00
Chris Danford 8b8fa8aad3 move CommonMetrics into a namespace so that it's clear where they're coming from when used. 2005-10-27 05:16:19 +00:00
Chris Danford 24440aa3bf move Trasform caching out of ActorScroller and into LuaExpressionTransform so that ScreenOptions can use it too.
add RowOn/OffCommand to ScreenOptions
2005-09-03 17:37:42 +00:00
Chris Danford dd28d5e354 add BulletOnCommand 2005-08-30 07:58:53 +00:00
Chris Danford 3066001014 Put ThisGameCommand in the global space, not in GameState's environment
Use a lua transform function to position SOptions rows instead of having a Y metric for each row
2005-08-15 07:49:06 +00:00
Chris Danford 1fffd48c57 SetEffectNone -> StopEffect 2005-07-24 03:11:03 +00:00
Glenn Maynard e85313f96a hide/show player-specific elements 2005-07-22 20:24:38 +00:00
Glenn Maynard 26b5ac01d3 We don't know which players are joined until BeginScreen, so always load
assets for both players (fixes preload asserts).  This isn't an important
optimization point: it's not acceptable for a screen to be so much slower in
2-player than 1-player that this type of optimization would matter.  Also, always
loading both players will help reduce the chance of code that's too slow in
2-player not being noticed due to only being tested in 1-player.
2005-07-22 06:30:19 +00:00
Glenn Maynard 2f8f782c47 use Copy() 2005-07-18 23:01:06 +00:00
Glenn Maynard ab07232a8b undo unintentional behavior change; comment it for next time 2005-07-18 22:58:06 +00:00
Glenn Maynard 5bf4e9323f don't set up actors that we're not using; we create lots of OptionRows 2005-07-18 21:25:07 +00:00
Glenn Maynard cece1f837c don't set up actors that we're not using; we create lots of OptionRows 2005-07-18 21:03:43 +00:00
Glenn Maynard 18910dd754 cleanup 2005-07-16 10:17:10 +00:00
Glenn Maynard 0fcda13da1 temp fix for double-free 2005-07-16 10:16:23 +00:00
Chris Danford 146c505c5a change sprBullet to an AutoActor 2005-07-16 07:01:48 +00:00
Glenn Maynard d8bf6df4aa move metrics into OptionRowType, too 2005-07-16 03:23:53 +00:00
Glenn Maynard b925b2d7ca instead of loading actors inside OptionRow, load a single copy of each
one we need, and then make copies as needed.  This avoids lots of
extra loading (which can be slow, even with refcounted data; lots of path
lookups, etc).  (Trying to get this to the point where we can construct new
OptionRows for a menu without making a whole new menu.)  This approach
means we don't lose the potential to have different sTypes of OptionRow
in a single menu.  (The annoying bit is that any actor we copy has to handle
copying, which is tricky for ActorFrame and doesn't work yet for AutoActor.
Working on it ...)
2005-07-16 02:51:17 +00:00
Glenn Maynard a75ef49210 preparatory (s/m_sType/sType/, no other changes) 2005-07-16 02:44:48 +00:00
Glenn Maynard 19d43d20d1 init m_vbSelected, like LoadNormal 2005-07-16 01:26:56 +00:00
Glenn Maynard 42e531768c make LoadExit a bit less of a special case 2005-07-16 01:23:36 +00:00
Glenn Maynard e3d19324db explicitly hide underline if ROW_EXIT 2005-07-16 01:21:42 +00:00
Glenn Maynard 7b0bf75ebb explicitly hide title and bullets if ROW_EXIT 2005-07-16 01:20:05 +00:00
Glenn Maynard 3a0d10dff7 cleanup 2005-07-15 21:49:12 +00:00
Glenn Maynard ca6d18745f cleanup
InitText in OptionRow::Reload instead of UpdateText
2005-07-15 21:48:06 +00:00
Glenn Maynard d0c2daeadb fix crash when no choices due to m_iChoiceInRowWithFocus not being
set to -1 yet
2005-07-15 07:19:36 +00:00
Glenn Maynard 618f71f3d4 separate initializing text and setting m_iChoiceInRowWithFocus 2005-07-15 06:54:10 +00:00
Glenn Maynard ff5f5f4035 separate frame for deleted objects 2005-07-15 06:34:06 +00:00
Glenn Maynard 3bdcdc8943 use m_textItemParent 2005-07-15 06:28:13 +00:00
Glenn Maynard d9068e601d LoadOptionIcon -> SetOptionIcon 2005-07-15 05:43:10 +00:00
Glenn Maynard 5c441a5fdf We load lots of the same thing in OptionRows. Instead of loading each one
individually, just load one and copy it for the rest; this avoids doing
the whole "search, read redir, find refcounted" code path for every
option.  Don't load data from OptionRow::AfterImportOptions.
2005-07-15 05:34:54 +00:00
Chris Danford 8998dfc589 add SetOneSharedSelectionIfPresent 2005-07-13 19:09:13 +00:00
Chris Danford 848d6c89e2 OptionRow: member name cleanup, add focus commands 2005-07-06 06:11:56 +00:00
Chris Danford 16fc6e6723 add ScreenOptionsProfiles (to soon replace ScreenProfileOptions) 2005-07-05 11:30:30 +00:00
Chris Danford 6ab20c5ad9 more work on a new course editor 2005-06-28 08:11:30 +00:00
Chris Danford 5b19933b3f working on new course editor 2005-06-26 23:31:36 +00:00
Chris Danford 7a1d736694 working on new course editor 2005-06-26 21:31:07 +00:00
Chris Danford 94c495fa79 working on new course editor 2005-06-24 05:39:50 +00:00
Glenn Maynard cee617b119 assert 2005-05-08 07:38:36 +00:00
Chris Danford 3db3500226 remove size on statc CString arrays so that XToString can catch size differences 2005-05-05 19:55:04 +00:00
Chris Danford 1f76af4df2 tracking down assert on SPlayerOptions 2005-04-25 07:02:33 +00:00