Commit Graph

403 Commits

Author SHA1 Message Date
Chris Danford 3610303408 ignore empty directories so we don't have to let CVS prune before we can test changes that delete a dir 2005-10-15 00:35:54 +00:00
Glenn Maynard 247b9c3fb5 prevent falling back further than the base theme, even if it's renamed 2005-10-14 04:51:16 +00:00
Glenn Maynard 64d9c29568 Simplify: store attributes in a simple map<CString,CString>, not in an object.
Makes attributes lighter.
2005-10-11 10:24:07 +00:00
Glenn Maynard 797653e5a4 better encapsulation 2005-10-09 01:36:04 +00:00
Glenn Maynard 4e312a4ffd cleanup 2005-10-05 06:13:57 +00:00
Chris Danford 65d71a4f23 expermienting with DEFINE_METHOD macro for Lua methods 2005-09-10 02:47:04 +00:00
Glenn Maynard 438b712da2 Previously, theme paths searched fallback classes before themes: each class
fallback was checked with the main theme, then each class fallback was checked
with the base theme, and so on.

Reverse this: check the class name with each theme, then check the class
fallback with each theme, and so on.

This is faster, since we only look up each class Fallback at most once, not
once per fallback theme, and groups together theme lookups (which may allow
further optimizations).  More importantly, this matches the metric lookup
scheme.

This also makes more sense--if "ScreenWithMenuElements header" is overridden by
"ScreenMenu header" in the base theme, overriding "ScreenWithMenuElements header"
in a derived theme should change the same in the base theme (changing the
default) but not change the specialized "ScreenMenu header".
2005-09-07 01:42:47 +00:00
Glenn Maynard a0a61d4519 implement without (deep) recursion 2005-09-07 00:52:31 +00:00
Glenn Maynard f60693ffa1 no fallback for no class 2005-09-07 00:35:16 +00:00
Glenn Maynard 80e5cd8dbe cleanup 2005-09-07 00:34:02 +00:00
Glenn Maynard c872cea5ab cleanup 2005-09-07 00:08:39 +00:00
Glenn Maynard a03eba0767 cleanup 2005-09-07 00:07:53 +00:00
Glenn Maynard 59f9941445 Previously, theme metric lookups follows Fallback at every place; for
example, if a base theme had:

[Derived]
Fallback=Base1

[Base1]
A=1

and a derived theme had:

[Derived]
Fallback=Base2

[Base2]

then the lookup "Derived", "A" would find 1.  This is confusing and inconsistent:
it means that the value of Derived::Fallback has two values, both Base1 and Base2,
and Base1 is only accessible by the internal metric lookup.  Every metric should
have only one value; "Fallback=Base1" should be completely overridden here.

(This also reduces the difference between theme lookups and path lookups; path
lookups did not have this anomaly, as they did not have access to the extra Fallback
value.)
2005-09-06 22:57:37 +00:00
Glenn Maynard 05a2409659 move function 2005-09-06 22:14:06 +00:00
Glenn Maynard dc4c4a254d remove 2005-09-06 20:58:50 +00:00
Glenn Maynard e362389b0f prefer std::string calls over CStdString compat calls 2005-09-06 20:33:55 +00:00
Glenn Maynard f5f2f4a885 ThemeManager::EvaluateString was called here for three things:
- RunAtExpressionS.  Using @ to generate command lists is no longer allowed; it's
   too expensive and clumsy, and is no longer needed.
 - "::" for newlines.  This isn't needed, since the string is a Lua expression;
   use "\n".
 - FontCharAliases::ReplaceMarkers.  This only makes sense for settext calls.
(The latter two will still be supported by settext directly.)
2005-09-06 04:34:44 +00:00
Glenn Maynard fa2fa3d526 rename GetMetricRaw overload to GetMetricRawRecursive for clarity 2005-09-04 05:26:44 +00:00
Glenn Maynard a2740445ef fix message 2005-09-03 08:40:21 +00:00
Glenn Maynard 5e99ccfb22 remove unused 2005-09-03 02:11:05 +00:00
Glenn Maynard babaa7761e Font paths must be prefix-unique, like other assets. Remove hack. 2005-09-03 00:14:06 +00:00
Glenn Maynard 6ce7d5d8c8 cleanup 2005-09-02 22:37:19 +00:00
Glenn Maynard 4757ba604f remove hack 2005-09-02 22:28:22 +00:00
Glenn Maynard 3fae1b67cb remove Numbers 2005-09-02 22:16:39 +00:00
Glenn Maynard 99c6309d48 remove hack 2005-09-02 22:11:13 +00:00
Chris Danford 7c4f2595ab Remove support for .actor. Use .xml instead. 2005-09-02 00:09:21 +00:00
Chris Danford 907f7d3dcc remove ugly LuaElementCategory, add bindings for GetPath overloads 2005-07-30 21:12:54 +00:00
Chris Danford 7cfcce6e7d remove .sprite file support. Use .xml instead 2005-07-26 20:00:19 +00:00
Chris Danford d1ff152ee2 add Lua bindings for GetPath* so that it's not necessary to use the ugly ElementCategory constants 2005-07-26 19:39:58 +00:00
Chris Danford fd8e1e61a7 cleanup 2005-07-25 07:39:29 +00:00
Glenn Maynard d05e819187 Don't search for redirs separately; doubling the number of GetDirListing
calls is expensive.
2005-07-07 01:21:45 +00:00
Glenn Maynard 8dbff84a30 I thought we've been doing this for a long time ... 2005-06-25 04:31:28 +00:00
Chris Danford 2a6dcba6e8 cleanup:
"GroupName" -> "SongGroup" to make room for CourseGroup
replace checks for "cvs" with a call to StripCvs()
m_Rows -> m_pRows
broadcast on preferred group changes
2005-06-23 08:05:09 +00:00
Glenn Maynard ed58ed26eb fix memory leak on change/reload theme 2005-06-23 02:11:51 +00:00
Glenn Maynard 9d7f835609 no need to template Luna specializations 2005-06-20 05:02:03 +00:00
Glenn Maynard b974b1bdd4 LuaHelpers::PrepareExpression 2005-06-16 22:22:37 +00:00
Glenn Maynard 9a50b17b9d LuaHelpers::RunAtExpressionS
LuaManager::ResetState, LuaHelpers::RunScriptFile locking
2005-06-16 22:17:45 +00:00
Glenn Maynard cb3f10aabb LuaHelpers::RunExpressionF 2005-06-16 06:30:33 +00:00
Glenn Maynard 6a8940d5a4 LuaHelpers::RunExpressionB 2005-06-16 06:23:59 +00:00
Glenn Maynard b93399da8c LuaHelpers::RunScriptFile 2005-06-16 06:10:50 +00:00
Glenn Maynard d1241420d6 clean up singleton registration: if you were given an L, use it 2005-06-15 02:21:24 +00:00
Chris Danford 98784d3fb5 Split Update into Update and UpdateInternal so that every class doesn't need to early abort in Update when hibernating 2005-06-11 10:32:58 +00:00
Chris Danford dac72665e3 move background file enumerating into BackgroundUtil.*
fix editor background change functionality
2005-05-31 01:17:37 +00:00
Chris Danford 13b9973197 ELEMENT_CATEGORY_ -> EC_ 2005-05-27 09:22:57 +00:00
Glenn Maynard ee88435ffa fix warning 2005-05-23 22:32:06 +00:00
Chris Danford 41becb56a4 GetFullDisplayTitle -> GetDisplayFullTitle 2005-05-23 00:38:09 +00:00
Chris Danford cac3d56730 GetModifierNames: use vector not set for easier interaction with Lua 2005-05-22 15:03:03 +00:00
Glenn Maynard f37a3810d6 allow reading whole files with GetFileContents 2005-05-20 00:12:43 +00:00
Glenn Maynard 140ec4fdca allow setting preferences from theme metrics. static.ini is deprecated. 2005-05-19 05:19:23 +00:00
Glenn Maynard 4e6d716027 GetRedirContents -> GetFileContents 2005-05-17 02:20:43 +00:00