Commit Graph

258 Commits

Author SHA1 Message Date
Glenn Maynard a858910ad1 cleanup 2005-07-03 04:54:37 +00:00
Glenn Maynard 1ae5083fba remove ScreenManager::MiniMenu 2005-07-03 04:52:15 +00:00
Glenn Maynard e7ef5539d0 remove 2005-07-03 04:46:39 +00:00
Glenn Maynard 0e09a3fb3d ScreenPrompt::Prompt, cleaning up ScreenManager 2005-07-03 04:33:22 +00:00
Glenn Maynard b0a079c777 "Send this before making the new screen, since it might set things that will be
re-set in the new screen's ctor."  Don't do that--don't assume that the old
LoseFocus will be called before the ctor or Init.  If you're doing something that
interacts with state changed by focus, do it in the first update, when you're
guaranteed to have focus.  Make no guarantees about who has focus when
a new screen is constructed; only that LoseFocus will be sent before GainFocus,
and GainFocus before the first update.
2005-07-03 04:24:57 +00:00
Glenn Maynard a49aecd774 pull ScreenPrompt init into a separate function, so it's slightly less of a special
case; maybe this class's instances can be made reusable ...
2005-07-03 03:49:19 +00:00
Glenn Maynard abac95a1b7 store the path in the actor's name, so we can treat backgrounds like loaded
screens
2005-07-02 22:44:56 +00:00
Glenn Maynard c587f12d65 Don't construct overlay screens in ScreenManager ctor. We havn't reset
GAMESTATE by then, so much of it is uninitialized, and we should not load
screens until that's done.  (fixes valgrind warning due to IsEventMode()
being called from SSystemLayer)
2005-06-23 00:30:02 +00:00
Glenn Maynard 6ac3eff751 missed commit 2005-06-20 09:49:07 +00:00
Glenn Maynard 28fc7bcdad fix "save prefs when exiting system menu"; when DelayedScreenLoad,
bWasOnSystemMenu was always false, because the screen was already
deleted
2005-06-19 09:40:16 +00:00
Glenn Maynard 8b8c4ceb45 simplify further 2005-06-19 09:20:30 +00:00
Glenn Maynard a9f0a2158a DeleteCachedTextures is already called at the end of EmptyDeleteQueue 2005-06-19 09:15:54 +00:00
Glenn Maynard bfc49737fe cleanup 2005-06-19 08:56:45 +00:00
Glenn Maynard a0dcb3dc81 simplify 2005-06-19 08:51:09 +00:00
Glenn Maynard f11a2ce17e fix "called SetNewScreen again" case; simplify (only one path now) 2005-06-19 08:48:42 +00:00
Glenn Maynard 63cc873fc9 Simplify delayed/undelayed screen load path. Previously, the "delayed"
path would return immediately in SetNewScreen, loading in the next update,
and the "undelayed" path would load under SetNewScreen.  Instead, always
load on the next update, and just change the behavior (with "delayed" deleting
the old screen first).  These two code paths are both criticial, and they were
too different, leading to inconsistent behavior; this way is simpler.
2005-06-19 08:35:12 +00:00
Chris Danford c2a8150f16 add HideSystemMessage 2005-06-15 10:01:08 +00:00
Glenn Maynard d1241420d6 clean up singleton registration: if you were given an L, use it 2005-06-15 02:21:24 +00:00
Glenn Maynard e374f7722f fix wrong credits messages showing 2005-05-21 07:15:41 +00:00
Chris Danford d67d60e178 sync controls cleanup:
move sync display/saving out of complicated ScreenGameplay
  show sync UI in editor playback as well as gameplay
  revert sync from in-memory backup, not from disk
  move more functions into debug overlay
2005-05-19 23:29:39 +00:00
Chris Danford 198dbbd6c9 add Lua method 2005-05-18 04:44:15 +00:00
Glenn Maynard 38bbd07fe0 add GetTopScreen 2005-04-15 07:00:21 +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 6adaa3f1a2 Add cancel transition for STextEntry
Validate new edit name is unique
2005-03-23 05:12:31 +00:00
Chris Danford ee4be22260 add input length cap
fix bogus s_bCancelled flag
2005-03-23 04:08:27 +00:00
Glenn Maynard e45b39db16 fix ScreenAttract being sent inputs after it calls SetNewScreen, which should never happen 2005-03-21 04:26:08 +00:00
Chris Danford 9cfa779956 remove code to play cancel sound and put the cancel sound in the transition 2005-03-20 08:23:08 +00:00
Chris Danford bbadc010f4 Implement ScreenMiniMenu with ScreenOptions 2005-03-20 06:41:56 +00:00
Chris Danford 48e6cb1a69 rename back -> cancel because "back" conflicts with "background" 2005-03-20 06:14:41 +00:00
Glenn Maynard c50adee05a fix crash when sending screen messages when there is no top screen 2005-03-10 21:18:04 +00:00
Glenn Maynard d7911ccff9 simpler approach to letting overlay screens grab input 2005-03-09 02:45:33 +00:00
Glenn Maynard c829318686 remove GrabInputFocus and ReleaseInputFocus 2005-03-09 01:35:31 +00:00
Chris Danford 2d93802641 add Yes/No/Cancel prompt for exiting ScreenEdit 2005-03-08 04:02:25 +00:00
Glenn Maynard 2404ff1641 generic screen popping: pop if pushed, instead of NEXT_SCREEN 2005-03-08 03:52:18 +00:00
Chris Danford 54567e81e1 fix pointer not removed after deleting 2005-03-02 11:09:05 +00:00
Chris Danford 499407d47c don't delete all prepared screens - just stale versions of ones that are already prepared 2005-03-02 10:58:23 +00:00
Glenn Maynard 8f229918ee lua 2005-02-28 07:06:29 +00:00
Glenn Maynard 38b5955b52 allow overlay layers to grab focus 2005-02-28 05:33:24 +00:00
Glenn Maynard 1d854909c6 generalize overlay screens; ScreenSystemLayer is no longer a special
case
2005-02-28 05:22:53 +00:00
Glenn Maynard 89e1da3fcb Init already calls ReloadCreditsText 2005-02-28 05:11:34 +00:00
Glenn Maynard f9f5e0671c actor messages for system messages 2005-02-28 05:10:08 +00:00
Glenn Maynard 7aef68aa7b use a message to communicate credits line changes 2005-02-28 05:01:50 +00:00
Glenn Maynard 9d7a5017b1 simplify 2005-02-26 07:56:04 +00:00
Glenn Maynard c436021a16 generalize m_bIsOnSystemMenu 2005-02-26 07:01:20 +00:00
Glenn Maynard fd6a03977d allow default.xml for backgrounds 2005-02-22 22:13:24 +00:00
Chris Danford 02a7b4fef1 fix crash if PrepareScreen called twice 2005-02-17 07:09:55 +00:00
Glenn Maynard ad59a32a69 flush sound after first update 2005-02-07 07:41:31 +00:00
Chris Danford 8dfdb3f9d2 background shouldn't be optional 2005-02-05 23:09:26 +00:00
Chris Danford 33661c13d6 zero the next update after creating or deleting a screen so we don't skip 2005-02-05 22:11:15 +00:00
Chris Danford 12a5a25648 simplify
don't reload shared BGA on metrics/texture reload
2005-02-05 07:35:02 +00:00