Commit Graph
17315 Commits
Author SHA1 Message Date
Glenn Maynard 15d1ee7580 minor cleanup 2005-09-09 04:03:29 +00:00
Glenn Maynard 4ad07532be private 2005-09-09 04:02:05 +00:00
Glenn Maynard 60aa06f88b optimize load of same object 2005-09-09 03:55:42 +00:00
Glenn Maynard 41b08697ca simplify/optimize 2005-09-09 03:47:33 +00:00
Glenn Maynard b73d4e1a46 implement copy ctors 2005-09-09 03:23:10 +00:00
Glenn Maynard a36d189be5 implement copy ctor 2005-09-09 02:44:26 +00:00
Glenn Maynard 0506fee3a7 optimization: avoid GetTrail when meter specified 2005-09-09 02:22:18 +00:00
Renaud Lepage 522c37014d Mods. File add, project types... Miscellany. 2005-09-08 23:54:46 +00:00
Chris Danford 788f6e8126 working on lesson mode 2005-09-08 22:47:16 +00:00
Glenn Maynard 5c7f1346e6 do this stuff with XML 2005-09-08 22:34:18 +00:00
Glenn Maynard 3fdd7ea0b2 fix stage 2005-09-08 20:41:43 +00:00
Glenn Maynard 61726858bb one stage graphic 2005-09-08 20:33:28 +00:00
Glenn Maynard 0dcd4fa7eb remove stage frame, not used in any maintained themes; do this in underlay 2005-09-08 20:31:35 +00:00
Glenn Maynard a02626a90f implement IsStagePossible 2005-09-08 19:59:07 +00:00
Glenn Maynard e04ab5e482 add SetWithoutBroadcast 2005-09-08 19:58:00 +00:00
Glenn Maynard 424205f5a3 fix crash in linux 2005-09-08 07:04:39 +00:00
Glenn Maynard 0cdc96abd6 bind GetCurrentStage and IsStagePossible 2005-09-08 06:08:08 +00:00
Glenn Maynard 3f379b80f0 bind Stage 2005-09-08 06:07:38 +00:00
Glenn Maynard 36f30957a6 simplify 2005-09-08 05:52:37 +00:00
Glenn Maynard 213d3e1b67 unneeded 2005-09-08 05:42:31 +00:00
Glenn Maynard ed1ff5c63c fix up screen command loading 2005-09-08 03:38:08 +00:00
Glenn Maynard 1c0ed2e85c cleanup 2005-09-08 02:49:44 +00:00
Glenn Maynard 661c160ee0 whitespace cleanups only 2005-09-08 02:44:50 +00:00
Glenn Maynard 781017c4c0 ChooseRandomMofifiers -> ChooseRandomModifiers 2005-09-08 01:06:01 +00:00
Glenn Maynard fa1966f972 avoid reallocating the buffer in case we're being called repeatedly on
a fixed-size buffer
2005-09-07 23:33:38 +00:00
Chris Danford cc76a438f2 turn MenuTimer off on ScreenGameplay 2005-09-07 23:23:05 +00:00
Glenn Maynard 93af28bdf1 remove old (don't care anymore ...) 2005-09-07 23:16:15 +00:00
Chris Danford f25852aa90 don't construct MenuTimer and MemoryCardStatusIcon if they're not used
cache TIMER_SECONDS
2005-09-07 22:25:10 +00:00
Chris Danford ae8f754b1f add Lua method bindings 2005-09-07 22:05:41 +00:00
Glenn Maynard 253669547f simplify 2005-09-07 20:47:33 +00:00
Glenn Maynard 8b9bf0d31a load all commands for screens 2005-09-07 20:44:43 +00:00
Glenn Maynard 02d10ae927 add LoadAllCommandsFromName 2005-09-07 20:41:50 +00:00
Glenn Maynard 0e775dd94a fix dimension specs that aren't at the end of the filename 2005-09-07 09:24:48 +00:00
Glenn Maynard 3db3ff7e51 cleanup 2005-09-07 09:20:00 +00:00
Glenn Maynard 16b1fafa83 fix command 2005-09-07 05:31:35 +00:00
Glenn Maynard 4b3af3058b Only spend time uniquifying results if more than one driver returned results. If we do, only operate on the new data. 2005-09-07 03:24:18 +00:00
Glenn Maynard a80ecb0431 Don't resolve filenames in GetDirListing(); if "foo/bar/*" is passed,
and "Foo/Bar/baz" exists, allow the case passed to be returned (foo/bar/baz).
ResolvePath is fairly expensive, and should only be used by file drivers
that actually need it.
2005-09-07 02:47:55 +00:00
Glenn Maynard 35dfba854e g++ fix 2005-09-07 02:05:19 +00:00
Glenn Maynard 2905beb755 parse fix 2005-09-07 02:03:08 +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 0691258deb fix toasty 2005-09-06 23:46:58 +00:00
Glenn Maynard f30533431d parse fix 2005-09-06 23:39:45 +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