Commit Graph
100 Commits
Author SHA1 Message Date
Glenn Maynard 6203bc50f8 remove unused 2005-07-06 21:26:14 +00:00
Glenn Maynard 9ac9138929 unneeded 2005-07-06 08:31:08 +00:00
Glenn Maynard b2b69e797d cleanup 2005-07-06 07:34:57 +00:00
Glenn Maynard 9cb562bdfa merge dupe 2005-07-06 06:41:57 +00:00
Glenn Maynard 488c6e952e remove ScreenBranch 2005-07-06 06:04:38 +00:00
Glenn Maynard 0703b84953 sprite -> autoactor 2005-07-06 05:09:52 +00:00
Glenn Maynard 90b78e6cbf fix loading XML files as hold note parts; must still be a Sprite 2005-07-06 04:20:27 +00:00
Glenn Maynard 18615b2a17 AutoActor 2005-07-06 04:03:55 +00:00
Glenn Maynard c0f9b46d75 fall back to ScreenWithMenuElements::MemoryCardIcons 2005-07-06 02:01:06 +00:00
Glenn Maynard 2874f5641a fix booleans 2005-07-06 01:55:22 +00:00
Glenn Maynard b90e28f084 bind 2005-07-06 01:42:01 +00:00
Glenn Maynard 3a304e251c optimized ReplaceText: one copy at most; text with no replacements reduces to one search 2005-07-06 00:51:26 +00:00
Glenn Maynard 0137a20389 cleanup 2005-07-05 23:55:42 +00:00
Glenn Maynard 73da8c0445 remove .model 2005-07-05 23:48:31 +00:00
Glenn Maynard 25823c979b remove the .model format; it's obsoleted by .xml Type="Model" 2005-07-05 23:46:08 +00:00
Glenn Maynard c69c3af4b9 Due to the last change, we don't have fallback clashes anymore (fallback no
longer has both "fallback tap note" and "fallback tap note 4th", etc.), so
we don't need to do this.  Remove it; it's extremely slow.
2005-07-05 21:56:51 +00:00
Glenn Maynard 858c7e3ce3 fix assert 2005-07-05 21:43:17 +00:00
Glenn Maynard b96a004921 We've been trying to more or less keep note skin compatibility, but the
format has gone somewhat out of hand, so let's give up a bit on that for
the good of mankind ...

All note elements that are allowed to be note colored *always* have a note
type in the filename; if XIsNoteColor is off, "4th" is used.  This way, we
don't have different sets of filename rules, fixing clashes between skins
and the fallback, and a number of things become simpler (many of which
I'm still discovering, so I won't try to enumerate them here just now).

Note skin updates coming ...
2005-07-05 21:29:30 +00:00
Glenn Maynard b459dc048c fold duplicate code 2005-07-05 08:45:51 +00:00
Glenn Maynard 1e192fadc4 handle @expressions in model.xml 2005-07-05 06:59:29 +00:00
Glenn Maynard 8cc8c66890 baserotation 2005-07-05 06:38:34 +00:00
Glenn Maynard df841ec994 LuaXType 2005-07-05 06:31:45 +00:00
Glenn Maynard 12b5a43ca4 don't warn about SetState(0) (spams when we havn't loaded, or when using
Quad)
2005-07-05 05:30:00 +00:00
Glenn Maynard 95bc380261 fix assert 2005-07-05 05:24:30 +00:00
Glenn Maynard 1f0ce78d5a unused 2005-07-05 03:45:02 +00:00
Glenn Maynard e8f9f382db check() does not currently support negative offsets; it'll give a confusing
error message
2005-07-05 03:16:10 +00:00
Glenn Maynard 1607e6320a cleanup 2005-07-05 02:53:41 +00:00
Glenn Maynard b3c66d530f remove ScreenBranch 2005-07-05 00:12:26 +00:00
Glenn Maynard 02201f38fe unused 2005-07-05 00:06:34 +00:00
Glenn Maynard c420ef665b eliminating ScreenBranch (untested) 2005-07-05 00:01:13 +00:00
Glenn Maynard a3cd21e698 cleanup 2005-07-04 23:43:19 +00:00
Glenn Maynard 6c6402b2ee unneeded 2005-07-04 23:42:17 +00:00
Glenn Maynard 50e5ca7030 matching SM_GainFocus and SM_LoseFocus 2005-07-04 23:41:33 +00:00
Glenn Maynard 1bb4522e54 ScreenPreInitCommand 2005-07-04 23:40:31 +00:00
Glenn Maynard 6cca66a1ab allow running a command before initting gameplay 2005-07-04 23:38:07 +00:00
Glenn Maynard 744329f9e9 fix assert when no songs 2005-07-04 22:31:18 +00:00
Glenn Maynard 7ecccfeac0 unused 2005-07-04 22:16:42 +00:00
Glenn Maynard 1e8268e625 static 2005-07-04 21:48:01 +00:00
Glenn Maynard 2d27081573 do this with lua 2005-07-04 21:47:16 +00:00
Glenn Maynard 9a6fa1bae8 actor instance tables 2005-07-04 21:45:16 +00:00
Glenn Maynard ea6d806dad Allow associating a table with Lua-bound objects, for storing state in Lua.
Design goals are: minimal overhead (one table); minimal extra code to use
it (two lines in the header, to have a space to store a reference to the
table), same API for classes with and without a table; allow switching to
a table-bound class without derived classes having to know about it; keep
zero per-object overhead for classes that don't need it.
2005-07-04 21:43:27 +00:00
Glenn Maynard 1e05d86b7d missing includes 2005-07-04 20:52:21 +00:00
Glenn Maynard 6c4276648a cleanup 2005-07-04 20:44:07 +00:00
Glenn Maynard a55bbfc255 song.h 2005-07-03 07:50:59 +00:00
Glenn Maynard 11a28632bc fix assert 2005-07-03 06:55:31 +00:00
Glenn Maynard d6c14eac6f If a screen is already prepared, don't reload it in PrepareScreen.
Prepare backgrounds, too.
Disallow calling SetNewScreen from a screen ctor/Init; it complicates things.
When loading a new screen (through LoadDelayedScreen), load the
screen with PrepareScreen, to reduce code paths.
2005-07-03 06:13:30 +00:00
Glenn Maynard 61e795c7ed cleanup 2005-07-03 06:09:03 +00:00
Glenn Maynard adf4aa2645 SetNewScreen on first update, instead of in the ctor, so we don't have to
handle "set a new screen while we're still loading the old one".  (Note that
this isn't preferred, anyway; it's much better to decide in advance which
screen you want via Lua.  ScreenBranch is deprecated.)
2005-07-03 06:07:46 +00:00
Glenn Maynard 5c9f7f571f use default 2005-07-03 06:06:00 +00:00
Glenn Maynard 39570d6fd7 metrics 2005-07-03 05:35:01 +00:00
Glenn Maynard ea258068a9 ... and ScreenSongOptions::GoToNextScreen 2005-07-03 05:15:49 +00:00
Glenn Maynard 1141c3ca7f sync with ScreenOptionsMaster::GoToPrevScreen 2005-07-03 05:15:30 +00:00
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 0259484d16 ScreenMiniMenu::MiniMenu 2005-07-03 04:50:21 +00:00
Glenn Maynard e7ef5539d0 remove 2005-07-03 04:46:39 +00:00
Glenn Maynard 9b08148f60 ScreenTextEntry::TextEntry/ScreenTextEntry::Password 2005-07-03 04:45:34 +00:00
Glenn Maynard ea97ec6095 ScreenTextEntry::TextEntry 2005-07-03 04:42:47 +00:00
Glenn Maynard 1e894d05bb done in SM_GainFocus 2005-07-03 04:36:58 +00:00
Glenn Maynard c21c5e3000 cleanup 2005-07-03 04:36:01 +00:00
Glenn Maynard 2cb0658151 ScreenPrompt::Prompt update 2005-07-03 04:34:53 +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 14a3b69f84 style updates 2005-07-03 04:03:46 +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 5bdae4fa35 cleanup 2005-07-03 03:44:05 +00:00
Glenn Maynard f2a418d79d implement HiddenPtr smart pointer type; use it for Steps. This avoids having
to write a whole copy constructor for a class just to hide a couple types from
the header.
2005-07-03 03:05:54 +00:00
Glenn Maynard b0935c1111 deps 2005-07-03 02:51:29 +00:00
Glenn Maynard 2b365a1ea9 missing include 2005-07-03 02:49:42 +00:00
Glenn Maynard ac15f8064b missing includes 2005-07-03 02:48:38 +00:00
Glenn Maynard 11138513be implement copy ctor. fixes assertion failure after gameplay, due to
a RageTexturePreloader being inside an Actor which is copied
2005-07-03 02:37:49 +00:00
Glenn Maynard 7c7ad81638 RageTextureManager::CopyTexture 2005-07-03 02:30:45 +00:00
Glenn Maynard 78eba6aef0 move to the right place 2005-07-02 23:38:36 +00:00
Glenn Maynard 73655e87d9 can't #ifdef a typedef; check for vc6 instead
move to the right place
2005-07-02 23:37:55 +00:00
Glenn Maynard 8c542f8f27 cleanup 2005-07-02 23:06:41 +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 e3999565d8 missing include 2005-07-02 22:38:55 +00:00
Glenn Maynard 0d6c835e58 dep cleanup 2005-07-02 22:38:02 +00:00
Glenn Maynard 0a3d0759b6 sync before umount; cleanup 2005-07-02 05:37:33 +00:00
Glenn Maynard 82e0d89f65 quiet 2005-07-02 04:17:27 +00:00
Glenn Maynard 7b03083616 cleanup 2005-07-01 05:11:39 +00:00
Glenn Maynard bb8af41cb1 missing headers 2005-07-01 05:07:22 +00:00
Glenn Maynard 3450307b01 reduce dependencies 2005-07-01 05:06:00 +00:00
Glenn Maynard 04546763e0 reducing ProfileManager.h dependency on Profile.h (many users only use
PManager to see if a profile is loaded, etc, not to access the actual profiles)
2005-07-01 04:46:32 +00:00
Glenn Maynard 96278f2eca cleanup 2005-07-01 04:42:30 +00:00
Glenn Maynard 6718633d12 steps.h doesn't need to depend on notedata.h (#2) 2005-07-01 04:39:59 +00:00
Glenn Maynard 7bdee9a6d3 steps.h doesn't need to depend on notedata.h 2005-07-01 04:38:41 +00:00
Glenn Maynard a65596e402 cleanup 2005-07-01 04:28:29 +00:00
Glenn Maynard 13eddba584 while I'm here ... 2005-07-01 04:21:49 +00:00
Glenn Maynard 02f45c266a missing header 2005-07-01 04:19:32 +00:00
Glenn Maynard ef736dcb4f a comment stating that a policy named "default" is the default is not very
enlightening
2005-06-30 23:20:05 +00:00
Glenn Maynard c27ca00976 simplify 2005-06-30 22:55:28 +00:00
Glenn Maynard 6bbffb3e9a remove TEX_CACHED 2005-06-30 22:49:35 +00:00
Glenn Maynard 0289b1a91e use RageTexturePreloader 2005-06-30 22:41:22 +00:00
Glenn Maynard 653cd8013a remove TEX_PERMANENT 2005-06-30 22:08:29 +00:00
Glenn Maynard 7a4b97d61a RageTexturePreloader 2005-06-30 22:06:34 +00:00
Glenn Maynard f90e4cdf42 add RageTexturePreloader.
This obsoletes Cached and Permanent textures, implementing them more
simply: if you want to keep the texture loaded, just load it and keep the texture
around as long as you want it.  The old "texture policy" scheme of "keep the
texture around for the duration of the screen" was ambiguous--we can have any
number of screens loaded.
2005-06-30 22:04:10 +00:00
Glenn Maynard c856d1c68a sort in SWME, so screens that don't add any screen elements don't have to 2005-06-29 05:06:50 +00:00
Glenn Maynard 6d9b726210 fix compile (leaving warnings alone for now) 2005-06-27 05:41:43 +00:00
Glenn Maynard ebe60c9eb7 simplify 2005-06-27 05:24:24 +00:00