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
Chris Danford
0f7a5c873d
absolute coordinate check: constants with no offset are ok
2004-11-06 06:54:04 +00:00
Chris Danford
b50eb9399d
add debug-only checks for absolute position metrics and command params
2004-11-06 06:46:43 +00:00
Chris Danford
8df7954d2d
const fixes
2004-11-06 06:34:21 +00:00
Chris Danford
7e17fd9615
strip invalid characters when evaluating Actor command parameters
2004-11-06 06:00:58 +00:00
Glenn Maynard
f22ec944d4
hack to fix metrics that start with +
2004-09-28 10:03:49 +00:00
Chris Danford
81b7695c7e
whoops. Move the Lua comment hack to the right place.
2004-09-24 04:55:28 +00:00
Chris Danford
21871f7c3d
Parse F theme metrics as Lua expressions. I'll regroup LuaHelpers as a singleton subsystem soon.
2004-09-22 04:55:31 +00:00
Chris Danford
03fbb915f3
remove VC6 scoping hacks
2004-09-21 07:53:39 +00:00
Chris Danford
807d892f4f
allow theme to specify logical screen dimensions
2004-09-21 06:07:12 +00:00
Glenn Maynard
3fdb5a7b9c
fix comment
2004-09-16 22:53:40 +00:00
Glenn Maynard
338ab88e4f
fix ScreenManager stuff not being reloaded on theme change and F2
2004-09-16 22:45:55 +00:00
Glenn Maynard
1b82495f93
s/ReloadCommonSounds/ThemeChanged/
2004-09-16 22:05:24 +00:00
Glenn Maynard
1c45f2471f
unneeded include
2004-09-06 01:00:30 +00:00
Glenn Maynard
536da0dcf7
cleanup
2004-08-24 22:29:47 +00:00
Hugo Hromic M
792af31c7a
fix not loading correctly the Common Sounds in ScreenManager. now loads and reloads fine
2004-08-21 17:20:30 +00:00
Glenn Maynard
ce95644213
fix ThemeManager::GetModifierNames crash
...
allow skipping "default" fallback
2004-08-13 02:13:39 +00:00
Glenn Maynard
aad73b53e9
(float) atof() -> strtof(), which computes in float instead of computing in
...
double and casting to float, which is silly
2004-08-10 20:57:59 +00:00
Chris Danford
bdb15e07a7
allow a Theme to specify a parent
2004-08-10 04:33:36 +00:00
Chris Danford
ff4c12b727
rename GameDef -> Game
2004-07-25 17:07:32 +00:00
Glenn Maynard
1efc1f732c
eliminate GetPathToN/GetPathN
2004-07-24 23:26:34 +00:00
Chris Danford
23cedc1b83
fix fallback metrics logic
2004-07-23 04:33:05 +00:00
Chris Danford
7a3e031c63
remove ThemeManager::ReloadMetricsIfNecessary
2004-07-23 04:26:22 +00:00
Glenn Maynard
9429978fc9
fix crash in themes without [OptionNames]
...
use preincrement for iterators, not postincrement
2004-07-22 19:29:44 +00:00
Glenn Maynard
de02b9c978
don't waste time reading the default theme metrics twice
2004-07-21 23:42:52 +00:00
Chris Danford
9199410e82
stats.xml:
...
theme more elements
show HighScore details
clean up some tables
2004-07-19 08:05:14 +00:00
Glenn Maynard
211f9b852a
use Dialog
2004-06-10 22:47:51 +00:00
Glenn Maynard
733127d8ed
license update
2004-06-08 01:24:17 +00:00