Steve Checkoway
1cb3fdc3d9
Separate forced song and player mods.
2007-02-11 04:46:30 +00:00
Steve Checkoway
923aba9d40
Bind GetDefaultSongOptions.
2007-02-11 04:22:32 +00:00
Glenn Maynard
ee061be26a
I'm not sure why this ClearSubscribers was here; it's causing
...
metrics to not be loaded after a resolution change, because
the reload is optimized out by SwitchThemeAndLanguage.
(We may have loaded ThemeMetrics on demand in the
past.)
The reload needs to always happen, even though the theme
hasn't changed, since the theme load is affected by the
resolution; eg. upvalues in Lua scripts may have been
computed based on SCREEN_WIDTH.
2007-02-11 01:52:41 +00:00
Steve Checkoway
b88d415b52
Style.
2007-02-11 01:51:44 +00:00
Steve Checkoway
2d1cd1de50
When changing resolutions, SwitchThemeAndLanguage was being called after clearing all subscribes but STAL wasn't reloading them because nothing had changed. Reload them explicitly if the theme doesn't change.
...
I'm not sure what the rationale behind taking this code path for changing the resolution as it seems to have nothing to do with the theme.
2007-02-11 01:19:30 +00:00
Glenn Maynard
96caf97851
use FOREACH_Attr
2007-02-11 00:44:57 +00:00
Glenn Maynard
5772a41b92
use accessors
2007-02-11 00:38:27 +00:00
Glenn Maynard
b9e277d0e7
GetValue: return XNodeValue *
2007-02-11 00:33:53 +00:00
Glenn Maynard
5135b7b27c
use templated GetValue, not old RString GetValue()
2007-02-11 00:30:44 +00:00
Glenn Maynard
95fdd553de
remove Command="%function" syntax from XML. Use Lua directly.
2007-02-10 23:47:39 +00:00
Glenn Maynard
cb8e881099
on xml for backgroundEffects
2007-02-10 23:44:33 +00:00
Glenn Maynard
76c9f9bf8b
lua
2007-02-10 23:22:17 +00:00
Glenn Maynard
070779520f
use accessors
2007-02-10 22:17:43 +00:00
Glenn Maynard
fcf121feb0
add PlayCommandNoRecurse to fix PlayCommand hack
2007-02-10 05:42:25 +00:00
Glenn Maynard
5e549c0437
cleanup
2007-02-09 05:15:35 +00:00
Glenn Maynard
98f9d9edaf
simplify
...
set size
2007-02-09 05:13:49 +00:00
Glenn Maynard
101bf0a85f
simplify
2007-02-09 04:45:54 +00:00
Glenn Maynard
9d7893fc69
cleanup masking
2007-02-09 04:38:15 +00:00
Glenn Maynard
edeb62afed
simplify
2007-02-09 04:36:51 +00:00
Glenn Maynard
6cbc0577e9
simplify
2007-02-09 04:33:15 +00:00
Glenn Maynard
7c5dbab999
update mask handling
2007-02-09 04:29:54 +00:00
Glenn Maynard
f6fd57cc12
typo
2007-02-09 04:03:22 +00:00
Chris Danford
142157e147
StepsTypeToString should return "Foo_Bar", not "StepsType_Foo_Bar"
2007-02-09 03:24:11 +00:00
Chris Danford
35df8821ca
add Lua GetOneSteps
2007-02-09 03:23:24 +00:00
Steve Checkoway
b3d52febb4
PowerPC linux build.
2007-02-09 01:13:51 +00:00
Glenn Maynard
1bd5c423c0
fix crash, cleanup
2007-02-08 22:18:34 +00:00
Glenn Maynard
2116064921
fix m_size
2007-02-08 21:36:38 +00:00
Glenn Maynard
71b70c4cba
split GetSourceToImageCoordsRatio(), GetSourceWidth(), GetTextureWidth()
...
into more correct X, Y versions
2007-02-08 21:35:43 +00:00
Glenn Maynard
ff420be0eb
fix default game selection
2007-02-08 21:21:17 +00:00
Glenn Maynard
5437d929a8
redo sprite frame handling, with Lua in mind; allow defining arbitrary
...
rects
2007-02-08 20:38:16 +00:00
Glenn Maynard
3d3c2bad49
bind RunCommandsOnChildren
2007-02-08 20:34:45 +00:00
Glenn Maynard
31caea19cb
fix path
2007-02-07 09:38:52 +00:00
Glenn Maynard
2cebe3ef34
fix crash with empty models
2007-02-07 05:54:13 +00:00
Glenn Maynard
a76708dd9f
refactor NoteSkins
2007-02-06 08:03:34 +00:00
Glenn Maynard
d2f43893ce
fix roll autoplay
2007-02-06 03:45:57 +00:00
Glenn Maynard
c95f22f013
cleanup
2007-02-06 01:31:14 +00:00
Steve Checkoway
450ebed713
Remove timing code. There is likely more to optimize here. The current break down for time spent is, 51.9% in XmlFileUtil::SaveToFile (all of that in GetXMLInternal), 23.7% in RadarValues::CreateNode (with half of that in ssprintf alone!), 12.8% in XNode::Free and the rest is spread around pretty evenly. For reference, before these changes, it was taking about 3.5 seconds to write my catalog.xml and now it's taking under 1.5 (that's .8 seconds for writing and .5 for creating the XNodes for Songs, if anyone was wondering).
2007-02-04 13:36:16 +00:00
Steve Checkoway
424f04219b
Simplify. There is no need for a SAFE_DELETE since attribute and children data structures are clear()ed.
2007-02-04 13:23:24 +00:00
Steve Checkoway
eebc1e9f3c
Simplify.
2007-02-04 10:57:09 +00:00
Steve Checkoway
69b4f62a7a
No need for this to be split out.
2007-02-04 10:49:42 +00:00
Steve Checkoway
6d2fa387d8
Cut xml writing time down by a third for catalog.xml by not concatenating strings before calling Write.
2007-02-04 10:44:45 +00:00
Steve Checkoway
169d7c8b44
Greatly decrease time to write catalog.xml by pulling THEME->GetMetricB out of the inner loop and passing it along to RadarValues. (Also don't copy the vector of Song*.) The time to generate the XNode for Songs was cut down by a fifth (from 2.5 seconds to .5 seconds for me, fully optimized).
2007-02-04 09:35:02 +00:00
Steve Checkoway
e17ccc6bdb
Allow quitting before creating the main window.
2007-02-04 08:17:22 +00:00
Glenn Maynard
6fb3238f6e
split out ActorUtil::LoadXNodeFromStackShowErrors
2007-02-04 08:16:46 +00:00
Glenn Maynard
00395c366e
simplify; this isn't recursive anymore and this was inconsistent
2007-02-04 08:08:08 +00:00
Steve Checkoway
5e15696c59
Yes.
2007-02-04 08:07:26 +00:00
Glenn Maynard
f45875adc7
add helpers
2007-02-04 08:03:47 +00:00
Glenn Maynard
5dd54edec1
fix build
2007-02-04 04:33:12 +00:00
Glenn Maynard
5fcf40beda
compile fix
2007-02-04 04:24:01 +00:00
Glenn Maynard
2d5cbe6535
move MergeIniUnder to XmlFileUtil
2007-02-04 04:09:53 +00:00