Commit Graph
13090 Commits
Author SHA1 Message Date
Glenn Maynard b8532a2880 update 2005-01-20 01:46:13 +00:00
Glenn Maynard ce043592f3 Remove Xbox stuff from LoadingWindow_SDL; I don't think that build uses SDL anymore. Note that this type of platform-specific stuff doesn't belong in generic drivers like this ... 2005-01-20 01:44:46 +00:00
Glenn Maynard 1a1ab12c1f cleanup 2005-01-20 01:42:06 +00:00
Glenn Maynard 9fc3addf45 cleanup 2005-01-20 01:42:05 +00:00
Glenn Maynard 9ebd1d19dd more renames 2005-01-20 01:35:49 +00:00
Glenn Maynard 4a442d1699 more renames 2005-01-20 01:30:56 +00:00
Glenn Maynard 24250824de At the cost of losing change history, I'm renaming a couple "SDL" filenames
that no longer have any connection to SDL; the names are just too confusing.
2005-01-20 01:26:15 +00:00
Glenn Maynard 21316d7904 use GetArg, so parameters are evaluated correctly 2005-01-20 01:09:34 +00:00
Glenn Maynard e3ce7e8e73 fix script loading
move @expression evaluation into LuaManager (LuaManager::RunAtExpression)
evaluate string command parameters
2005-01-20 01:08:26 +00:00
Glenn Maynard ae1329802b SelectEvaluationScreen() 2005-01-20 00:38:25 +00:00
Glenn Maynard 6493010e49 Use a Lua script to select the evaluation screen, instead of a ScreenBranch.
This approach has several advantages.  It's more flexible; full conditionals
can be used.  It mixes with things like the "bGoingToPlayTheSameMusic"
logic in ScreenAttract much better; it gets the real real next screen, not
the branch.  It also mixes with screen preloading, such as used by ScreenStage.

(I don't know if grouping functions that are used like branches makes sense;
I'm not sure how Lua will be used in general, so this stuff might get reorganized
later.)
2005-01-20 00:37:33 +00:00
Glenn Maynard d18a8342fc s/Lua/Scripts/ (we don't call the "Graphics" directory "Png/" ...) 2005-01-19 23:46:09 +00:00
Glenn Maynard 714bf62d5d add "Trace" (in here and not RageLog because I'm not yet quite ready
to make everything in Rage depend on Lua ...)
2005-01-19 23:43:28 +00:00
Glenn Maynard 5ef0d4159d Load global Lua scripts.
This is appropriate for global scripts which are loaded only once, and
used multiple times: the scripts can safely affect global state (eg. override
functions), and stay in memory.  There's no way to unload them short
of resetting the Lua state.  It's not appropriate for one-shot scripts, such
as those that might be associated with BGAnimations.  (needs more work)
2005-01-19 23:36:15 +00:00
Glenn Maynard dd3aa1c12e I'd hoped to not need explicit initialization of Lua, but it's more
trouble than it's worth.

Add LuaManager::RunScriptFile, LuaManager::RunScript, LuaManager::Init.
2005-01-19 23:33:19 +00:00
Glenn Maynard 0f4aec8584 change Lua to a singleton object
hide Lua state
2005-01-19 23:01:53 +00:00
Glenn Maynard 91a6486f9e start changing Lua to a singleton object 2005-01-19 22:27:24 +00:00
Glenn Maynard 048ff316e7 comment 2005-01-19 21:45:09 +00:00
Glenn Maynard e9789a861d Once a screen is queued to load, discard further inputs 2005-01-19 21:44:03 +00:00
Glenn Maynard d8b7d68842 Make lua a global library. I'm not sure this is best (PrefsManager needs it), but it's nice to simply be able to define Lua functions anywhere ... (fixes build of some tests) 2005-01-19 18:23:19 +00:00
Glenn Maynard 41622d238c Use sysfs to probe memory cards. This has several advantages:
all of the information we need is in one place, with proper links so we
 don't have to do weird hacks to connect data together

 we don't have to touch /proc/bus/usb/devices; doing so generates USB
 messages to all devices, which can cause problems

 works for all removable devices; usb-storage or ub should both work with
 no changes, as long as mountpoints exist in /etc/fstab

 doesn't need to fork lsusb

Old support is removed; unless serious, unfixable problems are found with
this method, the old code is too big and confusing to keep around.  This
code needs more testing.
2005-01-19 18:11:13 +00:00
Glenn Maynard b0df65805e Update iLastHeldRow even when out of range, to be sure it's clamped
properly.  Fixed hold counting glitches.
2005-01-18 08:20:14 +00:00
Glenn Maynard 9344535419 fix Command/ActorUtil::Command ambiguity 2005-01-17 22:45:00 +00:00
Glenn Maynard 288b5c903b cleanup 2005-01-17 22:42:57 +00:00
Glenn Maynard c456148b37 quiet aclocal 1.8 warnings 2005-01-17 17:51:18 +00:00
Chris Danford 5d6eb1d236 put ActorUtil functions in a namespace 2005-01-17 05:42:52 +00:00
Chris Danford cda4c3b04a make Actor LoadFromNode signatures consistent 2005-01-17 05:28:16 +00:00
Chris Danford adab436231 consolidate ScreenStage overlays 2005-01-17 04:32:12 +00:00
Chris Danford 90be873611 consolidate ScreenStage overlays 2005-01-17 04:10:50 +00:00
Chris Danford a5d40aad79 fix default.xml loading
add Condition check in LoadFromActorFile
2005-01-17 04:08:08 +00:00
Chris Danford f26a33713d add Lua functions 2005-01-17 04:05:40 +00:00
Chris Danford d1adfc6804 load default.xml instead of BGAnimation.ini if available 2005-01-17 01:32:45 +00:00
Chris Danford 8771872ac7 eliminate redundant INI read 2005-01-17 00:58:07 +00:00
Chris Danford 99afe19780 handle ActorScroller attributes in a more consistent way 2005-01-17 00:40:43 +00:00
Chris Danford 8a1fb93003 move attribute loading into the class that owns the attribute 2005-01-16 23:40:21 +00:00
Glenn Maynard 7b43001220 "aspect ratio" is ambiguous; s/m_fAspectRatio/m_fDisplayAspectRatio/ 2005-01-16 22:57:11 +00:00
Glenn Maynard 10b175566b preserve aspect ratio in screenshots even if resolution is 640x480 2005-01-16 22:14:39 +00:00
Glenn Maynard 3fe8ec27db don't convert the image if we have nothing else to do 2005-01-16 22:13:01 +00:00
Glenn Maynard bdc1b08695 pass DAR to the display; preserve aspect ratio in screenshots 2005-01-16 22:06:36 +00:00
Chris Danford f47c3bdc6c remove old file 2005-01-16 21:56:40 +00:00
Glenn Maynard 6ca113d42e cleanup 2005-01-16 21:10:15 +00:00
Chris Danford a25730d0a4 cleanup 2005-01-16 21:00:26 +00:00
Glenn Maynard 75973e6fa4 remove trace 2005-01-16 20:54:37 +00:00
Glenn Maynard b733db6152 remove SongCreditDisplay; use @GetSongCredits() instead 2005-01-16 20:53:29 +00:00
Glenn Maynard 478fa499c1 fix stuff sneaking into player's best that shouldn't 2005-01-16 20:51:11 +00:00
Glenn Maynard 37fe56a4f7 cosmetic 2005-01-16 20:37:08 +00:00
Glenn Maynard 39384227c4 allow Lua expressions in text metrics by prepending @ 2005-01-16 20:36:27 +00:00
Glenn Maynard 0849ef8a46 log dialogs 2005-01-16 20:32:53 +00:00
Glenn Maynard 9ff1834076 remove LoadFromActorFile overload that's only used in one place 2005-01-16 19:52:41 +00:00
Glenn Maynard 5057144536 remove old debug (note: FAIL_M(x) is better than ASSERT_M(0, x)) 2005-01-16 19:43:13 +00:00