Commit Graph
137 Commits
Author SHA1 Message Date
Glenn Maynard 2eca7b670c use FOREACH_ENUM2 2006-09-27 05:18:47 +00:00
Glenn Maynard 4ae6eb6070 unused functions 2006-09-22 20:53:36 +00:00
Glenn Maynard 56c12a5bb3 unneeded header 2006-09-22 20:07:35 +00:00
Glenn Maynard f8b3a17c6f split out ThemeManager::PushMetric 2006-09-22 19:05:56 +00:00
Glenn Maynard 59ad3f8222 ThemeManager::GetClassFallback 2006-09-22 06:41:27 +00:00
Glenn Maynard 4a9b1736f5 flip GetMetric(ref) and GetMetricR(), so there's an interface exposed that doens't
copy the reference.  Copying refs isn't expensive, but it does lock Lua.
2006-09-22 04:46:47 +00:00
Glenn Maynard 6b89313b09 cleanup 2006-09-22 04:38:42 +00:00
Glenn Maynard 1b8b029eef re-add "get metric as Lua expression" 2006-09-22 03:31:38 +00:00
Glenn Maynard bba1890f00 GetMetricRaw private 2006-09-21 03:39:11 +00:00
Glenn Maynard 8526204155 remove unused overload 2006-09-21 03:33:35 +00:00
Glenn Maynard b30aaa63a7 ActorCommands.h -> Actor.h (for the type) or ActorUtil.h
(for ParseActorCommands)
2006-09-21 02:38:01 +00:00
Glenn Maynard d04a5920fa LuaExpression -> LuaReference 2006-09-21 02:09:44 +00:00
Glenn Maynard 41028ca167 NextTheme -> GetNextTheme 2006-09-20 23:10:15 +00:00
Glenn Maynard abacb7ef9d ThemeManager::ClearSubscribers 2006-09-20 23:05:52 +00:00
Glenn Maynard 7f1fb08890 const references not useful (and slower) for scalars and (refcounted) strings,
and would just be a point of failure
2006-08-20 19:50:59 +00:00
Glenn Maynard 336bfe38c7 unused 2006-08-20 19:49:53 +00:00
Chris Danford aa88059c80 fix mis-named: GetOptionNames -> GetModifierNames 2006-06-24 05:16:38 +00:00
Chris Danford 26ce4fa74d split strings and metrics 2006-06-24 05:13:54 +00:00
Chris Danford 67ea381b99 fix compile 2006-06-14 07:46:31 +00:00
Chris Danford daf48e67bc move installer strings to an unselectable theme for easier exporting via tools.exe 2006-06-14 07:42:40 +00:00
Chris Danford e4717d1f79 reload all ThemeMetrics when aspect ratio changes so that metrics using SCREEN_* are reevaluated 2006-03-12 20:05:27 +00:00
Glenn Maynard dc15096294 language filtering for XML-referenced files 2006-03-02 04:59:37 +00:00
Chris Danford 1cf12f1c49 set pseudolocalize at the same time as switching themes. Fixes LocalizedStrings not reloaded after changing pseudolocalize 2006-01-08 05:32:05 +00:00
Chris Danford d55ae24611 add PseudoLocalize
phase out SubscriptionManager for SubscriptionHandler to fix ThemeManager assert
2006-01-06 20:18:15 +00:00
Chris Danford c7d769829a add ThemeManager to smtools 2005-12-29 05:52:50 +00:00
Chris Danford 62799c2999 CString -> RString 2005-12-27 17:45:07 +00:00
Chris Danford 7a76b58bd3 style cleanup 2005-12-25 19:27:31 +00:00
Chris Danford 7f985da9ee add separate method for string lookup 2005-12-25 19:01:13 +00:00
Chris Danford 37f82b43f7 remove CStringArray #define 2005-12-09 21:36:22 +00:00
Chris Danford 81037f05cd move Preferences from ThemeManager to completely in PrefsManager
Also, allow Defaults.ini and Static.ini to have sections
2005-11-09 10:55:30 +00:00
Glenn Maynard 51e06fdc2b pass the language to LoadThemeRecursive and rename to LoadThemeMetrics 2005-11-01 18:04:59 +00:00
Glenn Maynard 2d907c34e4 use HOOKS->GetPreferredLanguage to set the default language 2005-10-28 17:25:22 +00:00
Glenn Maynard 797653e5a4 better encapsulation 2005-10-09 01:36: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 fa2fa3d526 rename GetMetricRaw overload to GetMetricRawRecursive for clarity 2005-09-04 05:26:44 +00:00
Glenn Maynard 5e99ccfb22 remove unused 2005-09-03 02:11:05 +00:00
Glenn Maynard 3fae1b67cb remove Numbers 2005-09-02 22:16:39 +00:00
Chris Danford 13b9973197 ELEMENT_CATEGORY_ -> EC_ 2005-05-27 09:22:57 +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 140ec4fdca allow setting preferences from theme metrics. static.ini is deprecated. 2005-05-19 05:19:23 +00:00
Glenn Maynard cc34c9bd6b add ThemeManager::ClearThemePathCache 2005-03-20 05:39:32 +00:00
Glenn Maynard a6c498610b Load Serialize.lua first, before calling ResetState. 2005-03-18 22:09:10 +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
Chris Danford 9c3f461361 cleanup
add Lua method
2005-02-28 04:10:01 +00:00
Glenn Maynard 01ae30ddd9 Add ThemeManager::GetMetric(LuaExpression) 2005-02-17 06:09:08 +00:00
Glenn Maynard 1b069fb432 const; fix "warning: `class ThemeManager' has virtual functions but non-virtual destructor" 2005-02-13 02:47:53 +00:00
Glenn Maynard 64a8ee3303 shorten 2005-02-13 02:45:47 +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 ce82f9c5c6 don't read the metric before ThemeManager is loaded 2005-02-06 19:42:46 +00:00