Glenn Maynard
4f4654529f
add ScreenMetric, ScreenString
2006-01-14 05:57:14 +00:00
Glenn Maynard
fac7b375c2
Add ExitItem and ExitTitle exit rows. This implements "exit" with
...
regular rows. This allows us to move away from the tweaky, special
exit row.
2006-01-14 05:49:05 +00:00
Glenn Maynard
3a63f5b7ef
as well as during load, set LoadingScreen during BeginScreen.
...
Scripts can already use GetTopScreen to get this. However, that function
also returns data that may not be what's wanted. For example, commands
can be run on screens that aren't on top (eg. via broadcasts). So, using
GetTopScreen as a fallback for LoadingScreen may cause latent bugs;
screens should behave properly even when they're not on top, even if
they're using queued broadcasts to kick off animations, etc.
2006-01-14 05:32:54 +00:00
Glenn Maynard
6344476389
add ActorUtil::ActorParam helper
2006-01-14 05:27:29 +00:00
Glenn Maynard
776ff285cf
allow empty translatable strings
2006-01-14 04:31:56 +00:00
Glenn Maynard
7c25138029
typo
2006-01-14 04:21:54 +00:00
Glenn Maynard
9ca7586632
add SetPreferenceToDefault
2006-01-14 04:10:01 +00:00
Glenn Maynard
d4d16623cf
cleanup
2006-01-14 04:02:13 +00:00
Glenn Maynard
cdf951e589
Instead of loading Defaults.ini underneith Preferences.ini, change the
...
actual IPreference defaults according to Defaults.ini. This way, we can
access default values immediately, without having to load and parse a
file. Since this simply changes the value in the preference, this doesn't
use any more memory.
2006-01-14 03:56:59 +00:00
Glenn Maynard
115e901d82
ReadFrom and WriteTo are never overloaded; they're implemented
...
via ToString and FromString. Remove virtual for clarity.
2006-01-14 03:33:48 +00:00
Glenn Maynard
92c93e2fdf
HelpDisplay:settips no longer takes "::" as newline. Use "\n".
2006-01-14 03:12:45 +00:00
Glenn Maynard
f0dc808168
Remove LoadHelpText overload. Call settips() yourself via message
...
commands instead.
2006-01-14 02:35:08 +00:00
Glenn Maynard
e05770c65b
fix "join"
2006-01-14 02:25:46 +00:00
Glenn Maynard
973fabdac6
smpackage fix
2006-01-14 00:56:24 +00:00
Glenn Maynard
1d488f223d
typo
2006-01-14 00:40:55 +00:00
Glenn Maynard
fecda0367f
cleanup
2006-01-13 23:21:18 +00:00
Glenn Maynard
97bd1669d4
Don't need to special case RowType_Exit here; the bullet is hidden,
...
and this will be a no-op.
2006-01-13 23:17:15 +00:00
Glenn Maynard
d276d5d001
cleanup
2006-01-13 22:40:28 +00:00
Glenn Maynard
9c867fdd70
We have two "gamestate Lua environments": mapEnv and m_Environment. The
...
former is a map<CString,CString>; the latter is a Lua table. The former
is reset on gamestate reset, the latter is not.
Merge the map into the table, and eliminate it. We only need one, and
it makes sense for a Lua environment to be a Lua table.
Do reset the table on Reset. Otherwise, there's little point; if you want
to store data inside Lua, you don't need GameState to help.
2006-01-13 21:49:35 +00:00
Glenn Maynard
4b072e00a3
update
...
make ScreenMapControllers fit
2006-01-13 08:04:37 +00:00
Glenn Maynard
51a2d29493
unuseds
2006-01-13 06:50:16 +00:00
Glenn Maynard
623a604b71
unused
2006-01-13 06:48:06 +00:00
Glenn Maynard
c0de3d0397
remove unused stuff
2006-01-13 06:35:46 +00:00
Glenn Maynard
d876fa5ecb
fix in gcc
2006-01-13 06:34:12 +00:00
Glenn Maynard
e3b8969de3
direct
2006-01-13 05:58:46 +00:00
Glenn Maynard
b599c37134
simplify
2006-01-13 05:57:18 +00:00
Glenn Maynard
68b9637eb9
quick compile fix (coming back to this ...)
2006-01-13 05:55:45 +00:00
Glenn Maynard
e0c8035435
PlayerState::LaunchAttack, RemoveActiveAttacks, missed commit
2006-01-13 05:51:37 +00:00
Glenn Maynard
09c419f482
PlayerState::LaunchAttack, RemoveActiveAttacks
2006-01-13 05:49:27 +00:00
Glenn Maynard
f61f021f1f
PlayerState::LaunchAttack
2006-01-13 05:47:44 +00:00
Glenn Maynard
949eafd8b8
missed commit
2006-01-13 05:47:11 +00:00
Glenn Maynard
8e0b4e9fed
simplify
2006-01-13 05:28:49 +00:00
Glenn Maynard
c84fa02dd2
bypass GameState and launch the attack directly to the state, for
...
more obviously consistent behavior
2006-01-13 05:22:02 +00:00
Glenn Maynard
56d209b24f
cleanup, style
2006-01-13 05:16:04 +00:00
Glenn Maynard
75120c7a12
migrate some stuff to PlayerState
2006-01-13 05:14:42 +00:00
Glenn Maynard
e927fa4022
move stuff out of header
2006-01-13 05:02:44 +00:00
Glenn Maynard
269c6f0ec7
Make a simple interface class for localizers. Move the theme-based
...
localizer into ThemeManager. Use simple MI to hook ThemeMetric::Read
to continue to automatically update when needed.
2006-01-13 00:40:12 +00:00
Glenn Maynard
c827c9ec1e
unused
2006-01-13 00:36:37 +00:00
Glenn Maynard
873851eef2
fix g_ThreadSlotsLock initialization order problem
2006-01-13 00:33:33 +00:00
Glenn Maynard
cc56b86291
simplify
2006-01-13 00:29:04 +00:00
Glenn Maynard
745f0e41c5
LocalizedString's "name" parameter is the default English string
2006-01-13 00:28:48 +00:00
Glenn Maynard
01fd36ab15
cleanup
2006-01-12 21:44:10 +00:00
Glenn Maynard
e8d67d9191
Remove "note skin for beat range", "beat range revision" stuff.
...
We still load all note skins for a course in advance, and note skins
are still sent through the weird "attack queue" stuff.
2006-01-12 21:39:00 +00:00
Glenn Maynard
714478dcfe
fix backing out of course mode trashes song sync data (from GameState::CancelStage)
2006-01-12 20:32:48 +00:00
Glenn Maynard
82d6c69642
better
2006-01-12 20:06:13 +00:00
Glenn Maynard
48ae41f508
unused
2006-01-12 20:05:56 +00:00
Glenn Maynard
bb88810b27
illegal conversion; more than one user-defined conversion has been implicitly
...
applied
2006-01-12 20:04:41 +00:00
Glenn Maynard
2af53bb703
fix "illegal conversion; more than one user-defined conversion has been implicitly applied"
2006-01-12 19:40:41 +00:00
Glenn Maynard
9fc5844357
hack in SGameplay to allow simplifications elsewhere
...
only cache the current note skin
2006-01-12 19:24:13 +00:00
Glenn Maynard
c682db354e
Removing dynamic note skin change support during courses
...
and battle.
- It's very rarely used.
- It requires authoring new note skins just to use it, which is too
time-consuming for the value of the feature.
- Colorblind players may pick a note skin that they can read. The option
to do this should always be available, and not overridden by courses,
or they're not going to be able to read it.
- The code is extremely complicated and ugly, and breaks very often.
Spring cleaning in January ...
2006-01-12 19:22:08 +00:00
Glenn Maynard
b52fe82827
names for stuff that's tricky for Keymaps.ini (a little nicer than using a more obscure separator). Not sure if there's any point to having full names for other keys ("at", "semicolon").
2006-01-12 18:42:39 +00:00
Glenn Maynard
a462b2a640
fix screens not being unloaded correctly when not DelayedScreenLoad
2006-01-11 00:59:38 +00:00
Glenn Maynard
e16a396868
split out GrabPreparedActors
2006-01-11 00:54:45 +00:00
Glenn Maynard
a9020229ee
fix screen preloading when DelayedScreenLoad
2006-01-10 00:15:53 +00:00
Glenn Maynard
9eb3430ebd
reset idle timers in BeginScreen
2006-01-10 00:14:35 +00:00
Glenn Maynard
8d6a2c54dd
fix loading JOY_BUTTON mappings from disk
2006-01-07 06:28:56 +00:00
Glenn Maynard
16b998705f
That won't work. Preferences register themselves on creation, so
...
PrefsMan can iterate over them (to load and save), so preferences
must be created on startup, not first use.
2006-01-04 23:04:07 +00:00
Glenn Maynard
b734b602d2
force TypeName arrays for XToString to be an array of const char*, not CString
2006-01-04 22:30:51 +00:00
Glenn Maynard
8ed46bd67f
update
2006-01-04 22:27:18 +00:00
Glenn Maynard
abdb2b160d
fix broken autoconf test
2006-01-04 18:59:45 +00:00
Glenn Maynard
b2cec2d787
build fix
2006-01-04 18:09:39 +00:00
Glenn Maynard
4b92224743
lame fix for Linux build for now
2006-01-04 18:03:42 +00:00
Glenn Maynard
6a5b7540cc
this should not be static
2006-01-04 18:02:25 +00:00
Glenn Maynard
b5414c435c
fix linux build
2006-01-04 18:01:34 +00:00
Glenn Maynard
e24076f744
build fix
2006-01-04 17:51:43 +00:00
Glenn Maynard
37af3d7b37
build fix
2006-01-04 17:46:29 +00:00
Glenn Maynard
c0e6e08918
fix warnings
2006-01-04 05:17:36 +00:00
Glenn Maynard
831c4860f5
revert this for now. We do FAIL_M(s()), where s() returns a CString; doing this
...
causes the return value to go out of scope, and the char* to be invalid.
2006-01-01 05:48:06 +00:00
Glenn Maynard
f10898b806
Oops. We started setting the theme's expected coordinate space
...
in Screen, by calling SetFOV to make ActorFrame do LoadMenuPerspective.
That broke screen backgrounds, which are rendered outside of any
screen, so they always used 640x480 (the default).
2006-01-01 03:47:02 +00:00
Glenn Maynard
0c841acbd3
remove VC7 library
2006-01-01 02:53:14 +00:00
Glenn Maynard
b774714e7f
Remove debugging DLLs. I can't think of why they'd be needed. We
...
compile all libraries as "Release Multithreaded" (no CRT debug
libraries), even in debug builds, to avoid the linking mess it causes.
2006-01-01 02:35:16 +00:00
Glenn Maynard
8174e0b629
merge RageUtilLua
2005-12-31 06:52:04 +00:00
Glenn Maynard
47978e8275
merge
2005-12-31 06:46:31 +00:00
Glenn Maynard
8689b087f8
Static globals are still globals, and the global qualifier seems more useful than a static one. (don't want to start with the multiple-qualifiers business, eg 'sg_'; that gets ugly fast, and doesn't really help anything)
2005-12-31 06:19:54 +00:00
Glenn Maynard
a692d9f58d
cleanup
2005-12-31 06:16:22 +00:00
Glenn Maynard
8652d9e3b9
LastSeenMemory -> StepMania
2005-12-31 05:07:05 +00:00
Glenn Maynard
d8eac51039
move IgnoredMessageWindows to Dialog, rename to IgnoredDialogs
2005-12-31 05:03:26 +00:00
Glenn Maynard
f435983996
IPreference stores preferences, but knows nothing about loading or
...
saving them; that's up to PrefsManager.
Treat IPreference as a simple data holder, with simple facilities for
looking them up by name, converting to/from strings, and storing to/from
an XNode, but with no application-specific code to save to disk. This
can be used alone as a way for code to configure things internally, even
for uses that have no notion of storing user preferences (eg. unit tests),
and other programs can use it to store preferences in entirely different
ways (SMPackage could use it to store to the registry). PrefsManager is
layered on top, to implement StepMania's particular use of Preference
(saving and loading INIs), but isn't needed for Preference to be useful.
This also makes Preference only use XNode, not the more specialized IniFile.
(One piece is missing: several low-level places, eg. Dialog, want to set
a preference and write it to disk immediately. The only way to do that
is to have access to PREFSMAN. FIXME.)
2005-12-31 04:59:56 +00:00
Glenn Maynard
7c2220b403
CrashHandler::ForceCrash
2005-12-31 04:42:24 +00:00
Glenn Maynard
515134e584
unused
2005-12-31 04:19:53 +00:00
Glenn Maynard
c9ec1d251f
cleanup
2005-12-31 04:11:10 +00:00
Glenn Maynard
2120a39d2a
Fix dependency: Crash.cpp should not depend on GraphicsWindow.
2005-12-31 04:09:56 +00:00
Glenn Maynard
0e599ca582
make debug_crash private
2005-12-31 04:02:51 +00:00
Glenn Maynard
4d97933c43
move into namespace
2005-12-31 04:00:41 +00:00
Glenn Maynard
644801396c
move globals into namespace
2005-12-31 03:56:25 +00:00
Glenn Maynard
a4716e3ecf
cleanups
2005-12-31 03:32:14 +00:00
Glenn Maynard
502bd70521
static
2005-12-31 03:29:11 +00:00
Glenn Maynard
d454d09298
This code isn't worth it. It's only used for one driver. It's
...
mostly useful for pointing casual users to drivers, but any URLs
we give them will just go out of date, and 404s don't help people.
It's also too heavyweight to be done in ArchHooks; aim to not use
anything in it that we don't want to always include.
(I'm sort of undecided about this. This definitely needs to be out
of HOOKS; it could be moved to GraphicsWindow. It's potentially
useful, in theory, but it'd be a major hassle to maintain and always
be incomplete. Since it's only used for one ancient card and has
never been used for anything else, I'm just removing it for now.)
2005-12-31 03:26:18 +00:00
Glenn Maynard
6f7a4418d7
cleanup
2005-12-31 03:05:15 +00:00
Glenn Maynard
418bce60a8
SoundDrivers into RageSoundManager
2005-12-31 02:35:49 +00:00
Glenn Maynard
037b3c8ac0
doesn't exist
2005-12-31 02:20:33 +00:00
Glenn Maynard
757fdf0795
move InputDrivers into RageInput
2005-12-31 02:20:03 +00:00
Glenn Maynard
45d3c944af
move movie driver pref into arch.cpp
2005-12-31 02:13:39 +00:00
Glenn Maynard
0066776403
move lights driver pref into LightsMan
2005-12-31 02:06:57 +00:00
Glenn Maynard
e2bd376410
remove PrefsManager::GetPreferenceByName
2005-12-31 02:00:37 +00:00
Glenn Maynard
2255a72086
use IPreference::GetPreferenceByName
2005-12-31 01:59:52 +00:00
Glenn Maynard
f4570700fa
build fix
2005-12-31 01:40:24 +00:00
Glenn Maynard
d7daf00e8a
fix -r argument
2005-12-31 01:36:29 +00:00
Glenn Maynard
2f03572ef8
cleanup
2005-12-31 01:29:59 +00:00
Glenn Maynard
76e55c2f14
PrefsMan and Preference depend on each other. PrefsMan is big, and
...
depends on some higher level code. Make Preference stand-alone, so
code that only has its own preferences can be used without PrefsMan.
2005-12-31 01:26:29 +00:00