Commit Graph
55 Commits
Author SHA1 Message Date
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 c885d87f4a Use a lua transform function to position SOptions rows instead of having a Y metric for each row 2005-08-15 07:51:16 +00:00
Glenn Maynard 2f8f782c47 use Copy() 2005-07-18 23:01: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 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 e8656a2420 hide 2005-07-15 23:31:58 +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 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 94c495fa79 working on new course editor 2005-06-24 05:39:50 +00:00
Glenn Maynard f0b50dd5b9 Put everything in OptionRow inside a frame, and use the frame to tween
Y, to fix smooth scrolling.
2005-04-16 23:19:06 +00:00
Chris Danford 134cdb4451 fix skip when changing value in row:
broadcast the row export only once - not for each player
disable export/import on reload - nothing uses it yet
2005-04-03 06:21:02 +00:00
Chris Danford 61a5f51344 fix new Screens get created 3x after the last GameCommand change
remove complicated GetAndEraseScreen logic and export SELECT_NONE rows if they have focus, otherwise don't export them (fixes InsertCoin row)
2005-03-30 03:29:35 +00:00
Chris Danford 30ec0cdb7d remove ShowUnderlines. Use SELECT_NONE to not show underlines 2005-03-30 02:37:19 +00:00
Chris Danford c2a776661d add OnCommand for Items and Icons 2005-03-25 04:14:49 +00:00
Chris Danford 6df73d3839 fix possible crash on row with no choices
rename highlight -> cursor to avoid confusion with line highlight graphic
2005-03-21 05:17:46 +00:00
Chris Danford e49c74a2c8 Always theme the NEXT_ROW item 2005-03-21 00:19:34 +00:00
Chris Danford 2f4d814a64 allow dynamically generated rows to override theming
remove unused EditAction row type
2005-03-20 23:40:26 +00:00
Chris Danford 724ccf0179 move theming of title text from ScreenOptions to OptionRow 2005-03-20 22:17:57 +00:00
Chris Danford b73448d410 move item theming from ScreenOptionsMaster to OptionRow so MiniMenu and other options screens can be themed 2005-03-20 20:16:32 +00:00
Chris Danford bbadc010f4 Implement ScreenMiniMenu with ScreenOptions 2005-03-20 06:41:56 +00:00
Chris Danford 0ab7c031bc position underlines per-player 2005-03-13 02:15:38 +00:00
Chris Danford 4b824bbe47 export and import separately for each player 2005-03-13 00:59:03 +00:00
Chris Danford 3c049c100d fix next screen logic 2005-02-26 23:50:24 +00:00
Chris Danford 85d8808080 fix popping animation when scrolling options 2005-02-26 20:59:56 +00:00
Chris Danford 0bcaeb0c43 cleanup
row reload fixes
2005-02-26 11:19:19 +00:00
Chris Danford 32fc206f48 have OptionRow save focus state for easier reloading 2005-02-26 09:42:36 +00:00
Chris Danford a288ff8b6e changed passed in values to be metrics
fix problems setting vbSelected on Reload
2005-02-25 19:26:05 +00:00
Chris Danford 03e3ba7609 move Font load for item length testing inside of OptionsRow 2005-02-25 16:52:33 +00:00
Chris Danford d004d5cbfa move many metrics into OptionRow for easier reloading 2005-02-25 16:48:54 +00:00
Chris Danford b923311e00 fix OptionRow doesn't unsubscribe to Messages 2005-02-25 06:04:31 +00:00
Chris Danford 6249b18702 move bFirstRowGoesDown logic into OptionRow
fix deleted OptionRowHanlder used in in ~OptionRow
move options importing/exporting into OptionRow so that OptionRow can refresh itself in response to a Message
2005-02-25 05:45:16 +00:00
Chris Danford 182db1222f Have OptionRows subscribe to a Message in order to refresh 2005-02-24 15:40:05 +00:00
Chris Danford fb4ab8886c save the Handler in OptionRow so a row can refresh itself without needing the Screen to Import/Export 2005-02-24 13:48:14 +00:00
Chris Danford 2dfb9f148e move bExportOnChange into OptionRowDef from OptionRowHandler 2005-02-24 11:35:31 +00:00
Chris Danford 7c237be91f export specific rows, not all rows at once, to make it easier to reload certain rows 2005-02-24 01:17:39 +00:00
Chris Danford 5c7b8314f4 allow hiding of option rows based on the value of other rows 2005-02-20 10:12:50 +00:00
Chris Danford 36b325a295 cleanup: move code from ScreenOptions into OptionRow 2005-02-19 19:17:28 +00:00
Chris Danford 518638028d cleanup 2005-02-19 01:27:51 +00:00