Glenn Maynard
27f76b12ef
fold in UpdateCachedPointers
2007-08-15 23:35:48 +00:00
Glenn Maynard
02e4ba617f
not needed anymore
2007-08-15 21:02:50 +00:00
Glenn Maynard
9aead72d03
CourseID
2007-08-15 21:01:23 +00:00
Glenn Maynard
7729701678
use SongID
2007-08-15 20:56:44 +00:00
Glenn Maynard
3509dfee03
cleanup
2007-08-15 20:38:10 +00:00
Glenn Maynard
83d64246d9
If a course uses a song that is disabled, disable the course too.
2007-08-15 20:37:34 +00:00
Glenn Maynard
85732aa4c8
return a mask, like SongIsLocked
2007-08-15 20:31:47 +00:00
Glenn Maynard
6f68b3fbaa
save disabled songs
2007-08-15 20:27:11 +00:00
AJ Kelly
c3400fce68
small stylistic changes to NetSelectMusic (users BG)
2007-08-15 19:06:50 +00:00
Eric Gustafson
7e67668594
Add me. Here's hoping my text editor didn't do anything weird
2007-08-15 15:43:32 +00:00
Steve Checkoway
b9c6cd950c
Load the actors, untested but should fix the missing OnCommands for SNEval.
2007-08-15 06:51:56 +00:00
Steve Checkoway
a9f12e1788
Fix text showing only the first character.
2007-08-15 06:43:11 +00:00
Steve Checkoway
8d8e707347
This code is very strange, but all of the actors need to have their commands loaded since these were what were missing Off commands.
2007-08-15 06:20:23 +00:00
Steve Checkoway
e332565c9d
Better debugging messages so we can see which actor on which screen is missing the command.
2007-08-15 06:18:19 +00:00
Steve Checkoway
2f672bca45
Add a wrapper function to get the Top Screen's name. Useful for debugging when you don't want to pull in ScreenManager.h.
2007-08-15 06:17:41 +00:00
Steve Checkoway
d536ea6e35
NumRainbowColors=7
2007-08-15 03:00:59 +00:00
Steve Checkoway
18d77b9003
Let the theme decide how many colors for the rainbow.
2007-08-15 03:00:39 +00:00
Steve Checkoway
479a8753ed
Add files.
2007-08-14 09:29:09 +00:00
Steve Checkoway
37bdc7f002
Doesn't return anything.
2007-08-14 09:28:53 +00:00
Steve Checkoway
62b49f2d7f
Fix compile and link errors. The relevant parts of the standard have been cited for those following along at home.
...
typename must be used for dependent name resolution as described in 14.6 [temp.res].
An elaborated-type-specifier with the class-key present is required ("shall be used") in a friend declaration for a class. 11.4.2 [class.friend] and 7.1.5.3.1 [decl.type.elab].
However, an elaborated-type-specifier cannot be a typedef-name. 3.4.4.2 [basic.lookup.elab].
Lastly, the is no need for registration since "a definition for a static data member may be provided in a namespace scope enclosing the definition of the static member's class template." 14.5.1.3.1 [temp.static].
2007-08-14 09:17:56 +00:00
Glenn Maynard
3e3c1deea4
We have a lot of duplicate, redundant checks between UNLOCKMAN->SongIsLocked
...
and Song::GetDisplayed/Song::NormallyDisplayed, which leads to inconsistency.
Make UnlockManager::SongIsLocked() handle both. Returns a bitfield; most
cases only need to test true or false.
(Also adds m_bEnabled; not used yet.)
2007-08-13 21:20:51 +00:00
Glenn Maynard
4d3b3315b8
remove unused
2007-08-13 19:41:34 +00:00
Glenn Maynard
35bdbc619a
dehack old hack
2007-08-13 19:28:41 +00:00
Glenn Maynard
4f256b12b1
store as a reference
2007-08-13 19:24:54 +00:00
Glenn Maynard
9284021d2a
style
2007-08-13 19:21:21 +00:00
Glenn Maynard
6653a64354
style
2007-08-13 19:20:40 +00:00
Glenn Maynard
94781be4a5
disable old hack
2007-08-13 19:19:39 +00:00
Glenn Maynard
a1d33f8588
use Song::GetDisplayed
2007-08-13 19:18:55 +00:00
Glenn Maynard
8fb359e053
cleanup
2007-08-13 19:13:22 +00:00
Glenn Maynard
332ea68aef
simplify
2007-08-13 19:13:04 +00:00
Steve Checkoway
66c08321e0
Document some of the global singleton classes.
2007-08-13 09:14:05 +00:00
AJ Kelly
5a2badff0a
add IsEventMode, SecondsToMSSMsMs; format IsLong and IsMarathon descriptions
2007-08-13 07:19:59 +00:00
AJ Kelly
fdab7dba2e
add some of the DateTime functions
2007-08-13 06:36:25 +00:00
Steve Checkoway
cacbd442a0
Document a few more functions, testing out FunctionIdentifier.
2007-08-13 02:31:34 +00:00
Steve Checkoway
329817e88b
Use FunctionIdentifier for Link.
2007-08-13 02:25:47 +00:00
Steve Checkoway
fa17009297
Include functions in namespaces like lua.
2007-08-13 02:17:46 +00:00
Steve Checkoway
7bce84be06
Allow package names for function identifiers. E.g., "Foo.Bar".
2007-08-13 02:16:23 +00:00
Glenn Maynard
73cc4c0793
skip SONGMAN->GetSongFromDir if sDir2.empty()
2007-08-12 22:44:22 +00:00
Glenn Maynard
8022c3ba04
Course::pSong to SongID
2007-08-12 22:43:45 +00:00
AJ Kelly
b4e24a2039
add RageUtil_CachedObject
2007-08-12 22:28:34 +00:00
Glenn Maynard
3c20a64af8
CachedObjectPointer<Course>, CachedObjectPointer<Trail>
2007-08-12 22:26:42 +00:00
Glenn Maynard
bda199bd88
fix bAllowNull not honored if StepsType_Invalid/Difficulty_Invalid
2007-08-12 22:24:24 +00:00
Glenn Maynard
4a409d387a
style
2007-08-12 22:23:17 +00:00
Glenn Maynard
019ca31c0b
CachedObjectPointer<Song> for StepsID
2007-08-12 22:13:25 +00:00
Glenn Maynard
66b6b168bb
CachedObjectPointer<Song> for SongID
2007-08-12 22:03:59 +00:00
Glenn Maynard
17434831f9
add RageUtil_CachedObject
2007-08-12 22:01:51 +00:00
Glenn Maynard
40ad9a166c
A common problem we have is being able to manipulate major objects,
...
like songs and courses: it's difficult to guarantee that all references
to them are updated if they're deleted or reallocated, which is a brittleness
that leads to obscure bugs.
A general fix for this is to avoid storing pointers to objects, and
to use IDs instead; for example, SongID to reference a song (which
tags by directory). This leads to an efficiency problem: searching
a map<RString> is much more expensive. We need a robust way to
cache the results.
Implement CachedObject<T>, CachedObjectPointer<T>. This implements
caching pointers to objects, negative caching, clearing cache when objects
are deleted, and clearing negative cache when objects are created.
2007-08-12 21:59:10 +00:00
Glenn Maynard
2ca4a39a1e
style
2007-08-12 20:34:37 +00:00
Glenn Maynard
1b5c361da8
disable warning
2007-08-12 19:54:11 +00:00
Steve Checkoway
3eb131bc7f
Simplify Links to use the shorter form. Also more consistent this way.
2007-08-12 14:35:04 +00:00