Commit Graph
100 Commits
Author SHA1 Message Date
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
Glenn Maynard 5de59d0c51 remove unused file/driver tracking 2005-06-27 05:22:09 +00:00
Glenn Maynard d8b00e5cc7 revert. #define NEED_CSTDLIB_WORKAROUND instead. 2005-06-26 03:51:22 +00:00
Glenn Maynard d58b3186f0 allow mounting RageFileDrivers directly 2005-06-25 22:34:54 +00:00
Glenn Maynard d309a6c215 fix warning 2005-06-25 22:11:56 +00:00
Glenn Maynard 1468abe655 cleanup 2005-06-25 09:13:05 +00:00
Glenn Maynard b5f82fe4ae remove nops, cleanup 2005-06-25 09:07:11 +00:00
Glenn Maynard 59a99ec624 remove nop 2005-06-25 09:03:29 +00:00
Glenn Maynard ae413ab5b6 cleanup: do this like Screen 2005-06-25 08:16:30 +00:00
Glenn Maynard 508913f730 fix SM_BackFromPlayerOptions. (hmm: should be generalized ...) 2005-06-25 08:15:28 +00:00
Glenn Maynard 6a0497f1a1 remove unused 2005-06-25 08:04:35 +00:00
Glenn Maynard 22b6ffbe5f simplify: just broadcast a message on reset 2005-06-25 08:03:08 +00:00
Glenn Maynard e123fc1a96 virtual 2005-06-25 05:06:38 +00:00
Glenn Maynard 96bf9026cc use ScreenPlayerOptionsNext 2005-06-25 05:05:48 +00:00
Glenn Maynard 3de4ce6f48 add ScreenPlayerOptionsNext 2005-06-25 05:05:02 +00:00
Glenn Maynard 70702f29de unused 2005-06-25 05:04:23 +00:00
Glenn Maynard 0eb33aa806 instead of a hard-coded special case, bind the screen to Lua and move the
special case there.  this reduces cross-dependencies between screens,
which should be kept to a minimum
2005-06-25 05:03:35 +00:00
Glenn Maynard a9a3d20f20 fix MinScoreToContinueCombo 2005-06-25 04:33:17 +00:00
Glenn Maynard 8dbff84a30 I thought we've been doing this for a long time ... 2005-06-25 04:31:28 +00:00
Glenn Maynard 039416c18f cleanup 2005-06-25 04:06:39 +00:00
Glenn Maynard 34eba2a358 cleanup 2005-06-25 03:49:25 +00:00
Glenn Maynard 388f5f905c remove ScreenLogo 2005-06-25 03:46:49 +00:00
Glenn Maynard f433d67981 remove 2005-06-25 03:44:37 +00:00
Glenn Maynard 4f393479bc remove ScreenLogo class; just use ScreenAttract 2005-06-25 03:42:31 +00:00
Glenn Maynard 1f15d3b0a0 do game graphic in xml 2005-06-25 03:37:17 +00:00
Glenn Maynard 458bce4f0a game graphic in xml 2005-06-25 03:36:01 +00:00
Glenn Maynard 2f3648d05c Game bindings 2005-06-25 03:30:20 +00:00
Glenn Maynard fe5d04f521 remove m_textSongs 2005-06-25 03:14:23 +00:00
Glenn Maynard 0d4dad639d lua bindings 2005-06-25 03:11:16 +00:00
Glenn Maynard 7359405188 remove m_textVersion 2005-06-25 02:59:10 +00:00
Glenn Maynard 824bf83244 lua ProductVersion 2005-06-25 02:55:58 +00:00
Glenn Maynard b4164e23e3 unused 2005-06-25 02:40:44 +00:00
Glenn Maynard 763a95b6f8 cleanup 2005-06-25 02:39:02 +00:00
Glenn Maynard 265ecccbca remove MaxStages and LifeDifficulty; allow doing them with lua instead 2005-06-25 02:37:18 +00:00
Glenn Maynard ae70c15818 remove title menu special case (just one of several) 2005-06-25 02:03:37 +00:00
Glenn Maynard f94ff70548 move title menu special case to a Lua branch 2005-06-25 02:01:22 +00:00
Glenn Maynard 91e88be084 cleanups 2005-06-24 02:19:04 +00:00
Glenn Maynard ad9d34b45c finish removing graph metrics 2005-06-24 01:25:00 +00:00
Glenn Maynard 80c21cef06 revert; fix this correctly--the last commit caused LightsManager to always
become enabled, turning on all lights-related overhead
2005-06-23 21:03:16 +00:00
Glenn Maynard fc948e9ce9 simplify 2005-06-23 09:04:06 +00:00
Glenn Maynard c8994b27f9 cleanup 2005-06-23 09:02:04 +00:00
Glenn Maynard a76c3fa158 cleanup; remove userdataType 2005-06-23 08:58:43 +00:00
Glenn Maynard ff9e753979 cleanup 2005-06-23 08:53:04 +00:00
Glenn Maynard ccb65cc3fe cleanup (move public/private stuff together; no code changes) 2005-06-23 08:50:58 +00:00
Glenn Maynard f3a20cf729 cleanup 2005-06-23 08:49:36 +00:00
Glenn Maynard 14fd08abc1 __type -> type 2005-06-23 08:47:34 +00:00
Glenn Maynard 36794f6d5f CheckType -> CheckLuaObjectType 2005-06-23 08:46:21 +00:00
Glenn Maynard be8c5d23b5 CreateGlobalTable -> CreateMethodsTable 2005-06-23 08:44:46 +00:00
Glenn Maynard 7e20ccc36c don't point the metatable at the methods table; comment 2005-06-23 08:42:48 +00:00
Glenn Maynard ba207c5140 remove GrooveGraph 2005-06-23 02:47:43 +00:00
Glenn Maynard d87583c76e remove m_GrooveGraph 2005-06-23 02:42:31 +00:00
Glenn Maynard ed58ed26eb fix memory leak on change/reload theme 2005-06-23 02:11:51 +00:00
Glenn Maynard 84c6ecff9e fix uninitialized (valgrind) 2005-06-23 01:49:47 +00:00
Glenn Maynard 4e017b752b fix using PLAYER_INVALID as an index when using SSMaster when no
players are joined
2005-06-23 01:21:13 +00:00
Glenn Maynard 2b62d093d5 these were unsigned; keep them that way 2005-06-23 01:05:45 +00:00
Glenn Maynard 8ccc9cb6df probably fix compile on systems where sizeof(int) < sizeof(void*) 2005-06-23 01:04:29 +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 d1b8dcc744 fix uninitialized variable: this is used by EndGame, which is called at the
start of Reset(), and was normally initialized later in Reset().  I havn't seen
any bugs as a result; this just showed up in valgrind.
2005-06-23 00:15:19 +00:00
Glenn Maynard a79f1381f3 fix casting problem? 2005-06-22 20:58:41 +00:00
Glenn Maynard 518da6b626 fix Model 2005-06-21 07:49:25 +00:00
Glenn Maynard ff888eaf9e cleanup 2005-06-21 05:23:25 +00:00
Glenn Maynard fee9e51b2c revert. Unregister() is "atomic" (useful to call without locking around it). 2005-06-21 02:41:35 +00:00
Glenn Maynard acbe82d877 pass L to Reset 2005-06-21 02:29:21 +00:00
Glenn Maynard 0baadb8641 don't adjust MonthOfYear, so it lines up with MonthToString 2005-06-20 22:26:42 +00:00
Glenn Maynard 74828836cb cosmetic 2005-06-20 09:53:02 +00:00
Glenn Maynard 6ac3eff751 missed commit 2005-06-20 09:49:07 +00:00
Glenn Maynard 3c04a63c12 simplify 2005-06-20 09:42:24 +00:00
Glenn Maynard 9276c4f395 simplify 2005-06-20 09:35:06 +00:00
Glenn Maynard bde35cb47f simplify: don't template RegType separately 2005-06-20 09:28:45 +00:00
Glenn Maynard fae7e5b265 oops, wrong guy 2005-06-20 05:08:51 +00:00
Glenn Maynard 0b3c14888f cleanup, fix name 2005-06-20 05:05:55 +00:00
Glenn Maynard 9d7f835609 no need to template Luna specializations 2005-06-20 05:02:03 +00:00
Glenn Maynard d6bb1cdfe0 fix warning 2005-06-20 04:55:24 +00:00
Glenn Maynard 4dd73b2c81 fix comment (no new T is created) 2005-06-20 04:42:11 +00:00
Glenn Maynard 4d5643c27f remove include 2005-06-20 04:32:56 +00:00
Glenn Maynard 72e7a4b1e4 cleanup 2005-06-20 04:32:24 +00:00
Glenn Maynard 77ee110e65 include cleanup 2005-06-20 04:28:16 +00:00
Glenn Maynard e2cfba413a update registration for various types 2005-06-20 04:23:36 +00:00
Glenn Maynard c998564adf update registration for various types 2005-06-20 04:17:02 +00:00
Glenn Maynard 9f51cfbf5a add LuaBinding 2005-06-20 04:13:04 +00:00
Glenn Maynard 71bbb178a9 LuaBinding.cpp 2005-06-20 04:12:35 +00:00
Glenn Maynard 0b80f541ac update registration for BitmapText types 2005-06-20 04:06:26 +00:00
Glenn Maynard aff28653da Rearrange Lua types. Instead of each class registering all of the functions
of its base classes, set __index in the methods table to point to the base class's
methods table.  This has a few important advantages.  First and most importantly,
types don't need access to the Luna type of their base to derive from it, so these
definitions don't have to be in the headers, and probably don't need to be
templated.  Second, you can say:

function Actor:queue_rotate()
   self:linear(0.5)
   self:rotationz( 180 )
end

OnCommand=x,100;queue_rotate

This partially worked previously, but wasn't inherited; a function defined for
Actor wouldn't work for BitmapText.

(changes that use this in a few minutes)
2005-06-20 03:54:51 +00:00
Glenn Maynard 8c121d4598 s_className -> m_sClassName 2005-06-20 00:33:07 +00:00
Glenn Maynard 990bd24675 remove unused 2005-06-19 22:57:35 +00:00
Glenn Maynard 5da5388b99 cleanups 2005-06-19 22:54:06 +00:00
Glenn Maynard ec135b3ecf remove duplicate code 2005-06-19 22:52:08 +00:00
Glenn Maynard 25531ef460 m_Overlay -> m_sprOverlay, to be consistent with SWME
remove character stuff that can be done with the overlay
2005-06-19 22:48:58 +00:00
Glenn Maynard f98f8794ce remove unused 2005-06-19 22:42:06 +00:00
Glenn Maynard 92f49b2f89 add character bindings to remove special cases in ScreenStage 2005-06-19 22:41:12 +00:00
Glenn Maynard 4a10567362 remove texts. If you want to do this, do it in the overlay or underlay layers.
Text=@GAMESTATE:GetCurrentSong():GetDisplayFullTitle()
2005-06-19 22:29:25 +00:00
Glenn Maynard d9ed603f18 implement coin settling 2005-06-19 21:58:11 +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 8364c20850 cleanup, make m_pSharedBGA private 2005-06-19 09:27:18 +00:00