Glenn Maynard
607cf44b31
old comment
2006-09-22 07:18:37 +00:00
Glenn Maynard
305d9a86f5
remove hack; no longer necessary
2006-09-22 07:18:20 +00:00
Glenn Maynard
5bab52b368
use GetMetricR
2006-09-22 04:34:47 +00:00
Glenn Maynard
494053c420
set the expression directly
2006-09-22 03:32:18 +00:00
Steve Checkoway
d7e64dc979
Simplify. PushStack was only calling Push and possibly generating a function for each enumerated type which in the end only called Push. Rename PopStack -> Pop to be symmetric with Push.
2006-09-21 07:06:18 +00:00
Glenn Maynard
70ed0d319e
Clear()
2006-09-20 23:04:20 +00:00
Steve Checkoway
ff18ad538a
const ref.
2006-08-01 08:29:20 +00:00
Chris Danford
5ae5fdaefc
easier troubleshooting
2006-04-05 02:29:57 +00:00
Chris Danford
dbbca80b8d
add comment to VC6 hack
2006-03-14 19:19:26 +00:00
Chris Danford
30e9778826
fix VC6 compile: even templated functions can't differ by only return value. Move return value to a reference parameter
2006-03-14 18:56:17 +00:00
Steve Checkoway
d4f3329c5a
Modify the StringToX macro to emit a template specialization of the (new) T StringTo<T>(const RString& s) function. Doing this allows a general ThemeMetricEnum class which instead of reading an int will now read a string and then call the appropriate StringToX function via the StringTo<X> function.
...
Currently the only thing which uses ThemeMetricEnum is the EditMode enums. As a result, this breaks the EditMode=n (for n in 0..2) metrics (which I just broke with the previous commit anyway). That commit coming shortly.
2006-03-14 03:47:43 +00:00
Glenn Maynard
fb98337d27
g++ 4.0 says: error: there are no arguments to ‘ssprintf’ that depend on a template parameter, so a declaration of ‘ssprintf’ must be available
2006-01-17 20:25:24 +00:00
Chris Danford
57810ff757
CString -> RString
2006-01-08 05:30:59 +00:00
Glenn Maynard
0ca0b6a43f
add GetName, GetGroup
2005-10-07 03:20:40 +00:00
Glenn Maynard
c5a1b97da8
rewrite DynamicThemeMetric. Only eval the expression every time if a
...
metric contains a function. This makes DynamicThemeMetric an eventual
candidate to replace ThemeMetric.
2005-07-14 06:59:57 +00:00
Glenn Maynard
ae5f3eeaf9
move ThemeMetricEnum into ThemeMetric.h, add default constructor
2005-07-14 01:47:47 +00:00
Glenn Maynard
ed440fa648
lua locking fix
2005-06-16 22:05:25 +00:00
Glenn Maynard
11c368bf2a
use Lua locking
2005-06-16 06:55:34 +00:00
Glenn Maynard
ec705ac73f
minor hack to fix INITIAL_SCREEN
2005-06-16 01:30:54 +00:00
Glenn Maynard
4696541f44
fix Lua stack leak
2005-05-07 19:46:41 +00:00
Chris Danford
8521718f3f
compile error
2005-04-26 19:00:23 +00:00
Glenn Maynard
60755230c0
add DynamicThemeMetric. This might be a possible replacement for
...
ThemeMetric, but it's not quite as fast: code that assumes that dereferencing
a ThemeMetric is trivially cheap (eg. in inner loops) would break.
2005-04-26 06:32:08 +00:00
Chris Danford
a449ea59f1
either provide all params or none to constructor
2005-04-23 04:08:44 +00:00
Chris Danford
734f4ba4f1
fix derived ThemeMetric types aren't Read on construction (broke ScreenRanking)
2005-03-27 00:32:25 +00:00
Chris Danford
50d73b4855
detect use of uninitialized metrics
2005-03-20 22:29:42 +00:00
Ben Anderson
2774b74348
Fix compilation on GCC. I don't know why this works, it just does. (I tested it.
2005-03-18 00:55:21 +00:00
Chris Danford
5f68c5977a
add ThemeMetricMap - a ThemeMetric collection that maps from a CString to ThemeMetric
2005-03-17 09:29:46 +00:00
Charles Lohr
b36f6a6f04
VC6 cleanup. Remove .GetValue() "fixes" by overloading binary operators.
2005-03-14 20:26:50 +00:00
Chris Danford
7d3f3a1bef
allow delayed load of 1D and 2D metrics
2005-02-25 16:48:05 +00:00
Chris Danford
fdad5746e7
change ThemeMetric static-sized arrays to dynamically sized
2005-02-13 06:44:50 +00:00
Chris Danford
ce82f9c5c6
don't read the metric before ThemeManager is loaded
2005-02-06 19:42:46 +00:00
Chris Danford
e4117354ae
add static-sized array versions of ThemeMetric
2005-02-06 04:57:57 +00:00
Glenn Maynard
153f542193
fix gcc warnings
2005-02-05 19:17:11 +00:00
Glenn Maynard
39385af480
fix assertion failures when copying things containing ThemeMetrics
2005-02-02 22:04:58 +00:00
Glenn Maynard
6ce6500611
allow initializing ThemeMetric outside the ctor
2005-02-02 04:48:25 +00:00
Glenn Maynard
1945f6e9af
initialize m_currentValue, so we get deterministically wrong behavior if
...
Read() is never called (instead of leaving m_currentValue uninitialized)
2005-01-05 02:40:46 +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
Steve Checkoway
b7521bfd91
Cleanup header.
2004-10-05 10:32:35 +00:00
Chris Danford
807d892f4f
allow theme to specify logical screen dimensions
2004-09-21 06:07:12 +00:00