Commit Graph

154 Commits

Author SHA1 Message Date
Chris Danford 848d6c89e2 OptionRow: member name cleanup, add focus commands 2005-07-06 06:11:56 +00:00
Glenn Maynard ae413ab5b6 cleanup: do this like Screen 2005-06-25 08:16:30 +00:00
Chris Danford 2a6dcba6e8 cleanup:
"GroupName" -> "SongGroup" to make room for CourseGroup
replace checks for "cvs" with a call to StripCvs()
m_Rows -> m_pRows
broadcast on preferred group changes
2005-06-23 08:05:09 +00:00
Chris Danford 47681f4684 DebugMenu: ReloadScreen load the current screen, not the initial screen 2005-05-24 23:32:39 +00:00
Chris Danford e389ba6191 convert the rest to use Preference 2005-05-16 09:36:32 +00:00
Chris Danford b54e78c433 don't call HasScreen for a NEXT_ROW item 2005-04-27 05:57:58 +00:00
Chris Danford aed3b049ae fix off by 1 when calling HasScreen 2005-04-27 05:40:24 +00:00
Chris Danford 0ea93e427b easier debugging 2005-04-21 19:53:37 +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 659def4479 fix Pop message doesn't get sent if more than 1 prompt screen on the stack 2005-03-23 06:46:24 +00:00
Chris Danford e76b50d499 don't calculate NextScreen until options have been exported 2005-03-17 17:54:46 +00:00
Chris Danford e992442fe0 have ScreenWithMenuElements play and stop music (instead of ScreenOptions and ScreenSelect)
Add StopMusicOnBack metric
2005-03-13 04:25:43 +00:00
Chris Danford fbaaf61313 refresh icons per-row, per-player 2005-03-13 02:25:33 +00:00
Chris Danford 4b824bbe47 export and import separately for each player 2005-03-13 00:59:03 +00:00
Chris Danford 1483e577d1 add PlayMusic metrics instead of using optional GetPath 2005-03-02 07:42:37 +00:00
Chris Danford 3c049c100d fix next screen logic 2005-02-26 23:50:24 +00:00
Chris Danford 3dac12a433 fix EditMenu next screen logic 2005-02-26 22:19:29 +00:00
Chris Danford b48a19dd2f fix SeparateExitRow
add ShowExitRow
Allow ScreenOptions to override BeginFadingOut in case they don't want to set a new screen
2005-02-26 21:35:27 +00:00
Chris Danford 0bcaeb0c43 cleanup
row reload fixes
2005-02-26 11:19:19 +00:00
Chris Danford 2f7e332d6b remove unused bShowUnderlines 2005-02-25 19:36:58 +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 ca3684b232 cleanup, fix offset vbSelected values when using NextRow choice at the front 2005-02-24 06:10:11 +00:00
Chris Danford fbf7bc4f26 split OptionRowHandler out of ScreenOptionsMaster 2005-02-24 04:56:36 +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
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
Chris Danford 21f6266517 cleanup 2005-02-23 05:51:10 +00:00
Chris Danford cdfb4cff1e add "exportonchange" flag
add support for RefreshRowNames in ROW_LUA
2005-02-22 23:48:17 +00:00
Chris Danford 7d9757621c force same choice for both players when selecting style 2005-02-22 03:13:38 +00:00
Chris Danford b688bff51d add pushing to vectors with any type 2005-02-21 06:51:10 +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
Glenn Maynard bb1e676460 fix options menu playing music too early 2005-02-20 00:22:37 +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
Glenn Maynard ac1d2de3ea bring back self parameters 2005-02-16 05:26:11 +00:00
Glenn Maynard 073e891589 SetSelections -> SaveSelections, GetSelections -> LoadSelections to avoid
confusion with OptionRow
2005-02-16 04:45:47 +00:00
Glenn Maynard e67d2eee02 zero selections 2005-02-16 04:12:07 +00:00
Glenn Maynard d470fe11fe fix assertion failure: SetSelections and GetSelections (currently) take no
"self" parameter--you can store the table index in an upvalue if you need
it.  (I havn't worked with this enough, yet, to tell which method is better ...)
2005-02-16 03:45:28 +00:00
Glenn Maynard 51d23bb03c fix comments 2005-02-16 03:40:44 +00:00
Chris Danford 98cee78b78 assert on invalid enum strings early 2005-02-14 17:51:57 +00:00
Glenn Maynard 3c65876ed3 Lua interface to creating options menu rows. The code's a little ugly;
cleanups and samples coming in a bit.
2005-02-14 01:42:21 +00:00
Glenn Maynard 33b74d0fc3 simplify 2005-02-14 01:38:57 +00:00
Chris Danford 202170ab53 add "ShowOneInRow" 2005-02-13 18:14:11 +00:00
Glenn Maynard 859ca34079 fix options menu loading every other menu 2005-02-12 09:07:59 +00:00
Glenn Maynard ccc31cad7f SelectTypeToString, StringToSelectType, LayoutTypeToString, StringToLayoutType 2005-02-12 05:08:43 +00:00
Chris Danford 93b8ba48b6 Move OptionRow to a separate file
Don't init all BitmapText objects for long rows.  Calculate the row width, then init the text.
2005-02-11 07:50:26 +00:00
Chris Danford 4223e09cc8 GetPathTo -> GetPath 2005-02-06 03:32:53 +00:00