Commit Graph
26417 Commits
Author SHA1 Message Date
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
Steve Checkoway 7489745d1d Let <Link ... /> figure out what the appropriate text should be. It can be overridden by using <Link ...>...</Link>. 2007-08-12 14:34:28 +00:00
Steve Checkoway 6d28943e5d Add example of using ... and a table. 2007-08-12 14:09:22 +00:00
Steve Checkoway add9849290 Add tables to return and argument list, fix multiple argument parsing 2007-08-12 14:08:48 +00:00
Vecais Dumais Laacis f341130012 moving XInitDevices to ArchHooks so devices are initialized before usb manager initializes 2007-08-12 08:14:39 +00:00
Steve Checkoway 5d166e83ec Lists cannot be in paragraphs so disable that for now. Fake it for that list. 2007-08-12 06:51:15 +00:00
Steve Checkoway 05e8e124ac Add Descriptions to ActorSound, RageSound, HorizAlign, and VertAlign to give examples of using Description. 2007-08-12 06:09:06 +00:00
Steve Checkoway 76bf64d47a More HTML elements, use Description. Fix XXX: /Lua/Classes/sm:Class[@name=$type] does not work. It was just missing the namespace on Lua and Classes. 2007-08-12 06:08:15 +00:00
Steve Checkoway 25775c4ac0 Allow more HTML elements, add a Description element to both Class and Enum. 2007-08-12 06:06:47 +00:00
Steve Checkoway 9a405636c4 It is a float, not a string. 2007-08-12 04:53:11 +00:00
Steve Checkoway cac996607f Document ActorSound, Game, and RageSound. 2007-08-12 04:50:56 +00:00
Steve Checkoway 41988c9b61 Document BitmapText's bindings. 2007-08-12 04:17:30 +00:00
Steve Checkoway 486d9497ca Color bool. 2007-08-12 04:17:03 +00:00
Steve Checkoway 7654b0e02d Add Caution text. 2007-08-12 03:52:07 +00:00
Steve Checkoway c9f2b2b418 Allow localization. 2007-08-12 03:51:54 +00:00