Chris Danford
b7b582e935
allow .actors as BGAs
2005-03-20 07:09:22 +00:00
Glenn Maynard
cc34c9bd6b
add ThemeManager::ClearThemePathCache
2005-03-20 05:39:32 +00:00
Glenn Maynard
df896d168a
tolerate Register being called before THEME is initialized (like we do
...
with other singletons)
2005-03-18 22:44:47 +00:00
Glenn Maynard
a6c498610b
Load Serialize.lua first, before calling ResetState.
2005-03-18 22:09:10 +00:00
Chris Danford
75c2199395
GetMetricsThatBeginWith: fix iterating past the end of the set
2005-03-14 00:38:51 +00:00
Chris Danford
ade579667b
load all commands from metrics when the On command is played. This fixes skips when playing the Off command.
2005-03-13 20:44:26 +00:00
Glenn Maynard
7c63770ec1
allow any file type in Other
2005-03-13 08:40:11 +00:00
Chris Danford
ac5777b19b
Allow BGAnimations to match .xml files.
...
Don't special-case BGAnimations to look for only exact matches.
2005-03-12 21:21:36 +00:00
Chris Danford
b60d135493
don't allow StringToX for *_INVALID values
2005-03-05 21:50:33 +00:00
Chris Danford
9c3f461361
cleanup
...
add Lua method
2005-02-28 04:10:01 +00:00
Chris Danford
ca1f7e5893
hush
2005-02-23 22:11:33 +00:00
Chris Danford
42c5e2b3f9
allow specifying a Lua function for a command with "%funciton(self) self:blah end"
2005-02-23 19:15:24 +00:00
Glenn Maynard
2270e62eb4
fix expressions (mysterious forces contrived to make this appear to work)
2005-02-17 08:41:13 +00:00
Chris Danford
8da09ebd6e
let each file register its own constants with Lua
2005-02-17 07:32:21 +00:00
Glenn Maynard
01ae30ddd9
Add ThemeManager::GetMetric(LuaExpression)
2005-02-17 06:09:08 +00:00
Chris Danford
21e59e065e
peek at the error message in the debugger
2005-02-16 23:00:09 +00:00
Chris Danford
4d31f3b4c1
evaluate TargetNumber as a Lua expression
2005-02-16 00:16:14 +00:00
Glenn Maynard
22eee805b9
show the resulting invalid color value when a color metric using a Lua
...
function returns garbage, not the text of the lua call
2005-02-15 01:53:30 +00:00
Chris Danford
3d72b8cc37
expose ThemeManager in Lua
...
add PLAYER_* constants to Lua
Change GetMetric* to allow AtExpressions
2005-02-12 22:52:24 +00:00
Chris Danford
dedab65789
allow Lua expressions in command metrics
2005-02-09 09:44:16 +00:00
Glenn Maynard
965d5e663d
incomplete g++ 3.4 compile fix
2005-02-05 21:40:36 +00:00
Chris Danford
9d760bbdea
move common subscription code into templated class
2005-02-05 11:21:13 +00:00
Chris Danford
8555a6da45
use Lua to execute commands
...
(needs cleanup)
2005-01-26 11:21:43 +00:00
Chris Danford
ed6aa8b02e
The Lua state needs to be reset on a theme change to reload scripts
2005-01-24 03:05:37 +00:00
Chris Danford
cd9c48d645
LuaHelpers -> LuaManager
2005-01-24 02:26:55 +00:00
Chris Danford
f4de06361d
not necessary to reInit Lua on a theme change
2005-01-24 02:14:58 +00:00
Glenn Maynard
2b73f63ea8
RetryCancel -> AbortRetry
...
remove Dialog::cancel
2005-01-20 19:40:24 +00:00
Glenn Maynard
38c6dcbb0b
ugly hack to fix crash on "retry"
2005-01-20 19:16:47 +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
d18a8342fc
s/Lua/Scripts/ (we don't call the "Graphics" directory "Png/" ...)
2005-01-19 23:46:09 +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
0f4aec8584
change Lua to a singleton object
...
hide Lua state
2005-01-19 23:01:53 +00:00
Glenn Maynard
75973e6fa4
remove trace
2005-01-16 20:54:37 +00:00
Glenn Maynard
39384227c4
allow Lua expressions in text metrics by prepending @
2005-01-16 20:36:27 +00:00
Chris Danford
725f515adc
cleanup
2005-01-13 09:53:36 +00:00
Glenn Maynard
3c8e26369b
Lua should not depend on ThemeManager
2005-01-09 01:31:06 +00:00
Chris Danford
ea43f8ee1b
support loading BGAs from XML
2005-01-07 22:01:57 +00:00
Chris Danford
981e52ec58
merge IniFile and XmlFile
2005-01-07 14:28:00 +00:00
Chris Danford
de22848a45
remove IniFilePreserveOrder
2005-01-07 02:24:16 +00:00
Chris Danford
12a4fa55ac
update metrics when the subscribe if a theme is already loaded
2005-01-05 04:31:36 +00:00
Glenn Maynard
394982b461
fix "0 // foo" -> true
2004-12-06 06:41:31 +00:00
Chris Danford
ed19821e09
rename: ActorCommand -> Command
...
Make Command smaller and more generic.
Parse arguments on use, not in Command::Load.
2004-12-03 05:19:46 +00:00
Chris Danford
e1da21f61c
Let ActorCommand do the parsing for ModeChoice
2004-12-02 05:56:38 +00:00
Glenn Maynard
e0ef0da9e9
fix song backgrounds, probably other things
2004-11-11 22:31:55 +00:00
Glenn Maynard
6146f9913a
fix positioning
2004-11-10 22:07:22 +00:00
Chris Danford
d08e8b9d96
metrics cleanup
2004-11-07 10:38:20 +00:00
Chris Danford
df87e9794b
fix metric.ini.new writer
2004-11-07 07:14:30 +00:00
Chris Danford
bcbe615c0d
Pass ActorCommand structures to Actor instead of unparsed command strings.
...
This way, we can potentially do the parsing early and not parse inside of Actor as the command is executing.
2004-11-06 23:13:47 +00:00
Chris Danford
5127ceef4d
remove CachedThemeMetrics in favor of ThemeMetric<T>
...
fix "CachedThemeMetrics don't read HTML colors and don't evaluate Lua expressions"
2004-11-06 20:36:04 +00:00
Chris Danford
3594cc345e
write "metrics.ini.new" that automatically converts absolute screen positions to use the SCREEN_* constants
2004-11-06 19:47:23 +00:00