Commit Graph

71 Commits

Author SHA1 Message Date
Glenn Maynard 9bc27fb390 Messages and commands are nearly identical: they both have a name,
they can both have parameters stashed in a table, and they both play
stuff out of the actor command list.  Merge them; now the only
difference between playing and broadcasting a command is that playing
plays recursively on a tree and broadcasting sends to all subscribers.

The distinction between "messages" and "commands" is cosmetic now;
everything is a message.  The only thing special about commands intended
to be received as a broadcast is the "Message" suffix, which subscribes it.
2007-02-03 06:17:02 +00:00
Chris Danford 7b7817f613 remove unused AssistTickChanged message 2007-01-25 11:05:12 +00:00
Glenn Maynard 17ad7bb1bf getters 2007-01-15 04:17:15 +00:00
Glenn Maynard c3cf5ef59e remove ProcessMessages 2006-12-20 01:11:49 +00:00
Chris Danford b21ceca756 add guitar scoring 2006-11-15 23:34:48 +00:00
Glenn Maynard c86c218522 MessageToString -> MessageIDToString 2006-11-14 04:26:38 +00:00
Glenn Maynard 174f0c16fa update bindings 2006-11-14 04:22:27 +00:00
Glenn Maynard 11e8d4b4c4 unused 2006-11-13 23:55:27 +00:00
Glenn Maynard 7e9ec10f3a work on allowing parameters to messages: pass a Message
struct, not just a string
2006-11-13 23:51:24 +00:00
Glenn Maynard c219f56a3b work on allowing parameters to messages: pass a Message
struct, not just a string
2006-11-13 23:07:02 +00:00
Glenn Maynard ec061bebc3 Message -> MessageID 2006-11-13 22:36:39 +00:00
Glenn Maynard 28724eb156 SongChanged -> SongModified (confusing with CurrentSongChanged) 2006-11-09 04:32:23 +00:00
Glenn Maynard a1ead63fb1 fix message name 2006-11-09 04:25:58 +00:00
Steve Checkoway 360f1e66d5 Simplify. 2006-11-03 04:49:29 +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
Steve Checkoway e87789da7c Rename XToString2 to XToString. 2006-10-15 00:09:18 +00:00
Steve Checkoway 04bff6bc1d Use XToString2. 2006-10-15 00:00:22 +00:00
Glenn Maynard cd905f9372 simplify 2006-10-01 07:34:55 +00:00
Glenn Maynard df8630b91b remove unused fDelayRemaining. If we want to delay a broadcast,
delay the actual broadcast and handle the timer in MessageManager,
not process the broadcast in every individual listener.
2006-10-01 07:32:53 +00:00
Glenn Maynard c690fdcfe4 unify registration 2006-09-29 00:01:32 +00:00
Glenn Maynard f4975f1f54 simpler Lua boilerplate 2006-09-27 20:30:29 +00:00
Glenn Maynard 2b7e2849fd simplify singleton registration 2006-09-21 04:27:45 +00:00
Glenn Maynard 3a0ce66220 fix MessageSubscriber copying 2006-08-16 22:32:36 +00:00
Glenn Maynard f537670058 --Fixing log-- 2006-05-31 05:28:15 +00:00
Chris Danford f40015aad9 move MadeChoice to a command played on the screen. Broadcasting it doesn't work if there are prepared screens. 2006-05-26 09:59:56 +00:00
Chris Danford 1189805ada 32 player messages 2006-04-21 00:34:36 +00:00
Chris Danford 16ecd09b9b 400ms between NotesWillCross messages 2006-04-04 21:45:10 +00:00
Chris Danford fc3312f9be broadcast on screen changed 2006-03-26 08:10:53 +00:00
Chris Danford e052ff7829 add FadingBanner to ScreenUnlockBrowse 2006-03-23 00:16:18 +00:00
Steve Checkoway bd9fe065c9 Fix spelling. 2006-02-21 11:24:53 +00:00
Steve Checkoway 1946083107 Don't change player one's course difficulty preferenes. Play a sound when the difficulty changes. 2006-02-20 04:25:53 +00:00
Chris Danford a05d1e8265 move message helper stuff out of Actor into a new base class so that it can be used w/o deriving from Actor 2006-02-06 01:26:52 +00:00
Chris Danford 6a1ef9d858 refresh mapping screen text when automapping is applied because of a joystick plug/unplug 2006-01-26 04:51:07 +00:00
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +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 cd9cf4c1e2 move some service menu actions from GameCommand into ScreenServiceAction 2005-11-29 23:15:11 +00:00
Chris Danford 6e5b3a5ed8 fix PrefsManager::m_sCurrentGame not current, so GamePrefs from Static.ini weren't being used 2005-10-28 01:44:19 +00:00
Glenn Maynard 1168414cf0 m_bPastHereWeGo -> !m_bGameplayLeadIn, default false. This is more natural;
!m_bPastHereWeGo was the usual case.
2005-10-10 04:36:04 +00:00
Chris Danford e628959ac0 move screen-specific BGAs into overlay and broadcast change messages instead
add lesson fail/pass logic
2005-09-12 06:21:30 +00:00
Chris Danford 65d71a4f23 expermienting with DEFINE_METHOD macro for Lua methods 2005-09-10 02:47:04 +00:00
Chris Danford 9580a5f8a4 add "success/try again" looping logic to lesson mode 2005-09-09 21:49:29 +00:00
Glenn Maynard 8ebdf38c71 Message_SortOrderChanged
no deque
2005-08-24 20:46:39 +00:00
Chris Danford 7191258c0a clean up enum Message names so that they match the corresponding strings 2005-08-14 07:29:48 +00:00
Chris Danford 68f8e632f0 Add new ScreenOptionsManageProfiles 2005-08-04 21:13:29 +00:00
Chris Danford 881001b6c6 broadcast on PlayMode changed 2005-07-25 03:59:24 +00:00
Glenn Maynard 751f678a8a Instead of handling broadcasted messages immediately, queue them and
do them later in the update.  This allows threadsafety (sending messages from
other threadS), and will eventually be merged with ScreenMessages.  This
doesn't mean that all messages have to be delayed; we can send messages
to an actor directly, like SendMessageToTopScreen.  This only affects broadcasted
messages, which act like PostMessageToTopScreen(x, 0).
2005-07-12 03:07:54 +00:00
Chris Danford 6ab20c5ad9 more work on a new course editor 2005-06-28 08:11:30 +00:00
Chris Danford 7a1d736694 working on new course editor 2005-06-26 21:31:07 +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
Glenn Maynard 9d7f835609 no need to template Luna specializations 2005-06-20 05:02:03 +00:00