Commit Graph
117 Commits
Author SHA1 Message Date
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
Chris Danford 8555a6da45 use Lua to execute commands
(needs cleanup)
2005-01-26 11:21:43 +00:00
Glenn Maynard 39384227c4 allow Lua expressions in text metrics by prepending @ 2005-01-16 20:36:27 +00:00
Glenn Maynard 3c8e26369b Lua should not depend on ThemeManager 2005-01-09 01:31:06 +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
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 8df7954d2d const fixes 2004-11-06 06:34:21 +00:00
Chris Danford 807d892f4f allow theme to specify logical screen dimensions 2004-09-21 06:07:12 +00:00
Chris Danford bdb15e07a7 allow a Theme to specify a parent 2004-08-10 04:33:36 +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
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 733127d8ed license update 2004-06-08 01:24:17 +00:00
Glenn Maynard d66673fa6f infinite recursion checking 2004-03-20 10:24:42 +00:00
Chris Danford 6ba5335400 search for fallback in the current theme before searching in the base theme 2004-03-20 03:02:12 +00:00
Glenn Maynard f6cf1f0b2e fix ThemeManager::HasMetric ignoring Fallback 2004-02-15 01:32:12 +00:00
Glenn Maynard ebd948988d rename new GetPathTo -> GetPath to avoid overload problems 2004-02-14 01:16:04 +00:00
Chris Danford 79b9d60d9b add resursive theme element searching 2004-02-03 04:41:43 +00:00