Commit Graph
190 Commits
Author SHA1 Message Date
Glenn Maynard 434e603026 MenuButton -> GameButton 2007-01-13 03:44:16 +00:00
Glenn Maynard 077f7a7f35 move MenuButton alias into GameButton.h 2007-01-13 03:34:32 +00:00
John Bauer aedcc9f208 Factor out a call to GameState::ResetOptions. Also, move the state that
keeps track of whether NoteSkin was changed or not into GameState.
2006-11-30 19:29:15 +00:00
John Bauer be09ae8e81 Make it so that the default NoteSkin when playing in EditMode is "note",
not "default".  Earlier it was set so that it would be that way if the user
didn't pick any options, but after the user changed options, ScreenEdit
would use the "default" NoteSkin.  This involved adding a bit of static
state to ScreenEdit so that between calls to GAMESTATE::Reset,
new incarnations of ScreenEdits would keep the user's settings.
2006-11-28 18:55:20 +00:00
Glenn Maynard a5f5fa0b78 HandleMessage( Message ) 2006-11-13 23:11:25 +00:00
John Bauer 4b21ed256c Alternate fix for some of the bugs that exist when choose a different
stepchart in edit mode.
2006-11-12 06:30:14 +00:00
Glenn Maynard c6e62ae92d revert. Need a better approach. 2006-11-12 03:26:25 +00:00
John Bauer c3e39e12a3 Fix several annoying edit mode bugs, mostly by fixing the Song copy
operator and the various uses of it.

- revert file from disk: keeps old BPM.  The BPMS on disk are added to
  the existing BPM information!
- edit mode turns X stepcharts into 2X when reverting
- sometimes edit mode loses an entire stepchart: open a stepchart,
  change to a new stepchart, exit without going back, original chart gone
- edit a chart, make a change in a different chart, exit from the first chart:
  change made in different chart doesn't revert
- normally, when you create a stepchart and don't save it after editting it,
  it is deleted.  however, if you create a stepchart, don't save it, and exit
  edit mode while looking at a different chart, the chart isn't deleted.

Some existing bugs are not fixed, though:
- delete the last stepchart for a step type.  CTD.
- Edit one of the fake doubles stepcharts for a song that doesn't have
  real doubles stepcharts.  Exit without doing anything.  CTD.  This is
  probably the same problem as the previous bug.
- delete a song or a steps that happens to be part of a trail.  Trail is now
  broken.  Some other edits should affect a trail as well, but don't.
2006-11-10 07:02:27 +00:00
John Bauer 592c27996d Originally, the AdjustSync class always saved to disk, even in edit mode.
In edit mode, though, AdjustSync should only save to memory, giving the
user a chance to save later.  This change adds a SongChanged message
to the MessageManager.  Making the ScreenEdit class listen to this
message allows the AdjustSync class to mark a song as dirty rather than
saving it to disk when in edit mode.

R=steve chekoway
2006-11-02 05:30:02 +00:00
John Bauer db38f88c39 In ScreenEdit, figure out whether a song is dirty or not by keeping track
of a m_bDirty bit, not by reusing the m_bHasUndo bit.  This fixes two bugs:
1) Save & revert wouldn't clear the dirty bit before
2) Some operations such as tempo and stop changes wouldn't make
the song dirty

R=Steve Chekoway
2006-11-02 04:57:17 +00:00
Glenn Maynard 617e8b5335 FOREACH_ENUM2 -> FOREACH_ENUM 2006-10-07 08:56:58 +00:00
Glenn Maynard 2ce839e4eb Invalid 2006-10-07 04:25:28 +00:00
Glenn Maynard 2eca7b670c use FOREACH_ENUM2 2006-09-27 05:18:47 +00:00
Glenn Maynard 6b03924681 NUM_EditButton, EditButton_Invalid 2006-09-27 04:37:01 +00:00
Glenn Maynard b9a189711e cleanups 2006-09-26 20:41:53 +00:00
Glenn Maynard 2fbe882366 ThemeMetric<EditMode> 2006-09-26 03:19:37 +00:00
Steve Checkoway a4aa69b148 Remove ThemeMetricEnum. Since all metrics are evaluated as lua, use lua integer constants. 2006-09-23 07:21:26 +00:00
Glenn Maynard ab45febba3 simplify 2006-09-14 21:02:14 +00:00
Glenn Maynard 13fb874cc6 MenuInputToEditButton -> MenuButtonToEditButton 2006-09-14 20:58:05 +00:00
Glenn Maynard c7dfb9f2ec MenuInput -> MenuButton 2006-09-14 20:52:34 +00:00
Steve Checkoway 5af590ccba Allow setting the last beat hint in the editor. 2006-09-02 23:27:46 +00:00
Steve Checkoway 1095b06e57 Key bindings. 2006-08-19 21:17:58 +00:00
Steve Checkoway b18a740914 Header cleanup. 2006-08-17 18:27:00 +00:00
Steve Checkoway fe4db99560 Remove NoteSkin hack. 2006-08-07 01:18:10 +00:00
Steve Checkoway 0c0e843f3d / to switch players. 2006-08-01 08:28:19 +00:00
Steve Checkoway 302c0b5445 Preference for the used note skin. Also set the note skin in GAMESTATE's player options for use with combined NoteData. 2006-07-31 01:01:32 +00:00
Steve Checkoway e36fb16502 Use a PlayerNumber when inserting taps. 2006-07-30 23:45:55 +00:00
Steve Checkoway 8502fc3083 Use PlayerPlus (a Player plus a NoteData, this gives the old behavior of Player, i.e. calling Load( nd )). 2006-07-17 00:56:23 +00:00
Chris Danford 5e60bab5ce populate editor help based on mappings 2006-03-16 20:59:15 +00:00
Glenn Maynard 3d4f335330 unused 2006-03-16 09:07:08 +00:00
Glenn Maynard e0c8a8ebc7 fix HandleSongTimer not reset 2006-03-16 07:35:47 +00:00
Chris Danford 34b9aa17e9 use the same Play key mappings for all EditModes
If selection start is set, have "play" start at the selection, not at the current beat
2006-03-14 22:07:56 +00:00
Steve Checkoway 811c4d8b09 Work on course editor.
1. Press v to place an attack at the current location or to modify an existing attack.
2. With a selection, press m to place an attack for the duration of the selection or to modify an existing attack's duration.
3. With only the start of a selection, press m to place an attack extending to the end of the song or to ... (you get the idea).
4. With no selection, press m to set modifies for the course entry. This could go away if we stop having modifiers and just attacks that encompass the entire song (in which case it would act the same but add an attack rather than modifiers).
5. Is anyone still reading this?
2006-03-14 08:41:16 +00:00
Steve Checkoway d0b0ab2543 Cleanup. 2006-03-11 21:32:29 +00:00
Chris Danford ff6f781cb5 themable edit help text
map MENU_BUTTON_BACK
Add selction setting in menu for joystick users
2006-03-07 20:43:40 +00:00
Chris Danford 611489b1bb map MenuInput to EditButton for joysticks in the editor/practice 2006-03-07 02:43:09 +00:00
Chris Danford 8c7baa0ec8 add sound feedback to bpm, stop, offset 2006-02-04 18:35:29 +00:00
Chris Danford 18cd1a345d switch -> switch steps 2006-02-03 19:24:39 +00:00
Glenn Maynard 7df95cd0d4 ScreenType is being overloaded in incompatible ways:
- the editor sets "system_menu" to trick StepMania.cpp into not
   allowing the operator menu button, to prevent losing data;
 - the editor also sets "gameplay" in "playback" mode to influence
   ScreenSyncOverlay and ScreenDebugOverlay; this breaks the above,
   allowing scroll lock in play mode.

A similar problem happens when we push screens: scroll lock works
in the MiniMenus in the editor.

It's semantically unintuitive to call the editor a "system_menu", anyway.

Split out AllowOperatorMenuButton, and use it directly.  Check all
screens, and don't allow it if any screen on the stack disallows it.
2006-02-01 06:54:15 +00:00
Glenn Maynard f7bd5862ac remove unused 2006-01-30 07:10:10 +00:00
Glenn Maynard 57947b2252 Use ScreenManager's preload logic, instead of manually loading
a bunch of screens.
2006-01-30 07:09:25 +00:00
Glenn Maynard 3229a7fbf4 Use ScreenManager's preload logic, instead of manually loading
a bunch of screens.
2006-01-30 06:59:15 +00:00
Glenn Maynard badc6a06b3 cleanup 2006-01-30 02:53:18 +00:00
Glenn Maynard 470c909ec6 Transition away from Screen(sName). 2006-01-15 18:54:03 +00:00
Glenn Maynard 06e8da57f8 convert_beat_to_pause -> convert_to_pause (operates on the selection,
not a beat)
2005-12-18 23:56:14 +00:00
Chris Danford 24e113d102 don't prompt to save on exit if there's no undo info 2005-12-06 12:41:06 +00:00
Chris Danford bb10c7c21f pass around InputEventPlus in Screen::Input instead of multiple input structures 2005-09-05 02:26:50 +00:00
Chris Danford 3e99a3853d add inserting/removing course mods 2005-08-30 18:09:00 +00:00
Chris Danford e3167a82d8 working on new course edit screens 2005-07-30 19:34:23 +00:00
Glenn Maynard 4fe46bd2a4 EDIT_BUTTON_REMOVE_NOTE 2005-07-30 07:07:11 +00:00