Commit Graph
100 Commits
Author SHA1 Message Date
Steve Checkoway c6e054a78b Unused. 2007-04-29 23:18:42 +00:00
Steve Checkoway eb2761f521 This is in progress, apparently, but silence warnings for now. 2007-04-29 23:18:31 +00:00
Steve Checkoway 5a602a6fa2 Compute the file path cache one time. 2007-04-28 08:59:00 +00:00
Steve Checkoway 3945856c37 Move to GlobalSingletons. 2007-04-28 08:34:27 +00:00
Steve Checkoway e34b60b989 Add files. 2007-04-26 07:03:19 +00:00
Steve Checkoway 3ddb737cf2 Put SMData.smzip in Packages. Install SM as a directory into the bindir. I could not think of a better place. If you want to specify /usr/games, then build with --bindir=/usr/games, or if using the build.sh script, ./build.sh -- --bindir=/usr/games, see ./build.sh --help for details. 2007-04-24 09:27:07 +00:00
Steve Checkoway e161979b42 Add files and set stepmania and GtkModule.so to not be installed. We will do this manually from the top level Makefile. 2007-04-24 09:24:29 +00:00
Steve Checkoway 04d4f0447e Do not use datadir at Glenn's behest. Look for Packages as well as Songs so that this can be installed with the data in Packages. 2007-04-24 09:21:34 +00:00
Steve Checkoway 270f537b74 Fix build. 2007-04-24 08:56:05 +00:00
Steve Checkoway 777e89c0a7 Pointers to member functions requires &. 2007-04-24 08:39:08 +00:00
Steve Checkoway cb6b092431 Install the whole Data directory. 2007-04-24 00:38:16 +00:00
Steve Checkoway 25d66981ec Mount StepMania.app/Contents/Resources/SMData.smzip, if it exists. This makes SM installable as a single drag and drop application bundle. 2007-04-23 06:27:02 +00:00
Steve Checkoway 6d21c77474 make dist will now correctly make a source tarball which will also contain the SMData.smzip. 2007-04-23 06:25:08 +00:00
Steve Checkoway acb88e2f91 Look in the application directory and in DATADIR for SMData.smzip. This way the distributed binary can be run its directory or if compiled from source, the data may be installed and we will look there instead. For development, of course, SMData.smzip should not be installed as we should be using the files in Themes and so forth. One easy way to insure that is to set the prefix somewhere like /tmp when developing so that it will look for /tmp/share/stepmania\ cvs/SMData.smzip, which will not exist. 2007-04-23 06:23:27 +00:00
Steve Checkoway 3e53607dbd Use the new forms of AC_INIT and AM_INIT_AUTOMAKE. Do not bother defining the package and version variables, we do that ourself. Add the datadir to the CPPFLAGS. 2007-04-23 06:18:23 +00:00
Steve Checkoway 9f9b4403d9 Perl script to package up the default data into SMData.smzip. 2007-04-23 06:10:29 +00:00
Steve Checkoway 4c614ae701 The file drivers are one of the few things that can be accessed before LOG is set up, guard all accesses. 2007-04-23 05:52:51 +00:00
Steve Checkoway 9681c7fb3f Then stick it some place it only gets included for the Windows build. 2007-04-23 02:54:42 +00:00
Steve Checkoway 96ad156980 The last of the missing files. 2007-04-22 08:42:42 +00:00
Steve Checkoway aad8662bdb This is not unique to Linux. 2007-04-22 07:00:19 +00:00
Steve Checkoway 27049d68fd Remove unneeded include. 2007-04-22 06:30:12 +00:00
Steve Checkoway 507842fe52 Add/remove files. 2007-04-22 05:17:45 +00:00
Steve Checkoway 3d11ecd137 Style cleanup. 2007-04-22 00:14:36 +00:00
Steve Checkoway 9e186e22bc Load commands. 2007-04-22 00:06:50 +00:00
Steve Checkoway 5529b25ea9 static. 2007-04-22 00:02:32 +00:00
Steve Checkoway eb4246df82 Spacing cleanup and static. 2007-04-22 00:01:59 +00:00
Steve Checkoway f224db5ce6 Load the commands. Not tested. 2007-04-21 23:51:24 +00:00
Steve Checkoway 2d6c04e4f3 One ON_COMMAND is probably enough. 2007-04-21 23:51:08 +00:00
Steve Checkoway ad4cf84255 Maybe fix compile on windows. (Part III) 2007-04-21 23:20:36 +00:00
Steve Checkoway ebe44e87e3 Revert. 2007-04-21 23:16:04 +00:00
Steve Checkoway 3d9cfcd130 String, not boolean. 2007-04-21 23:15:18 +00:00
Steve Checkoway d152259801 Remove /. Also use a font that exists. 2007-04-21 22:27:17 +00:00
Steve Checkoway 7f7d798cc0 Simplify. 2007-04-21 22:08:15 +00:00
Steve Checkoway 15b259f4f5 Remove LoadInternal. 2007-04-21 22:01:31 +00:00
Steve Checkoway 734ad88eb0 Unneeded headers. 2007-04-21 21:58:27 +00:00
Steve Checkoway bfd7e70d2d Const. 2007-04-21 21:54:37 +00:00
Steve Checkoway 13ee0302db The code uses MaxSongs. I was not sure which to change. 2007-04-21 21:41:15 +00:00
Steve Checkoway 4270b68356 Maybe fix compile on windows. (Part II) 2007-04-21 21:20:39 +00:00
Steve Checkoway 5222d704f8 Maybe fix compile on windows. (How is it that it's 2007 and VC still doesn't support c99?) 2007-04-21 20:59:26 +00:00
Steve Checkoway e29505ba7a Fix warning. 2007-04-21 20:58:22 +00:00
Steve Checkoway 4295093cd9 Speed the music scroll up. 2007-04-21 20:41:57 +00:00
Steve Checkoway a805778002 Extra stage mods were swapped. 2007-04-21 20:29:21 +00:00
Steve Checkoway 1e99c68e8b Make the compiled bytecode more portable by requiring that the generic int sizes be 32 bits. In addition, swap 32 bit ints and 64 bit doubles as needed. 2007-04-21 20:08:12 +00:00
Steve Checkoway a87cc6a80a The language does not depend on librt. 2007-04-21 19:46:55 +00:00
Steve Checkoway 8bc650fbaf CollapsePath thinks that .. is a file name. Add a slash to convince it otherwise. 2007-04-20 08:02:53 +00:00
Steve Checkoway 5a7d251465 Add configure option to build lua and luac. Disable by default. 2007-04-20 05:52:33 +00:00
Steve Checkoway 2d2c294e11 Fix compile on Linux. 2007-04-20 05:50:11 +00:00
Steve Checkoway d712d086bb Remove references to a nonexistant readme. Real information should probably be maintained somewhere. 2007-04-20 04:07:00 +00:00
Steve Checkoway a5b5ebaa66 Comment. 2007-04-20 03:53:33 +00:00
Steve Checkoway 53e0736f1e These weren't added to both targets. 2007-04-19 10:45:23 +00:00
Steve Checkoway af5f399f33 Add files. 2007-04-19 10:28:28 +00:00
Steve Checkoway 92fff09378 Fix compile. Judging by the name of the function, it is possible this should be checking all memory cards, not just the ones for pn. I am not sure so this is only temporary until Glenn reappears. 2007-04-19 10:17:20 +00:00
Steve Checkoway 2468ded99d Use real 32 bit integers. 2007-04-19 10:06:53 +00:00
Steve Checkoway 78a233d669 Unused. There is a similarly named one that is used. 2007-04-19 10:05:42 +00:00
Steve Checkoway 2453b0fa80 String, not integer. 2007-04-19 10:05:10 +00:00
Steve Checkoway 1f71dc3241 Fix possible crash while crashing (yes, that's right). Fix format warning. 2007-04-17 08:12:53 +00:00
Steve Checkoway 6415e8651a Files should be relative to the enclosing group, not the project. 2007-04-17 08:05:46 +00:00
Steve Checkoway a09220ebae Remove files. 2007-04-10 16:24:27 +00:00
Steve Checkoway 31174bded7 Make the div hide, not the table. Add newlines. 2007-04-09 03:37:58 +00:00
Steve Checkoway ce90152ab6 Do not persist ScreenGameplaySyncMachine. Init() needs to be called every time. 2007-04-08 23:56:03 +00:00
Steve Checkoway fa949c78e4 Don't play ready/go/failed/toasty/next song twice. I believe that since GenericTweenOn() returns true, BeginScreen() will run On on the entire screen. 2007-04-08 23:19:49 +00:00
Steve Checkoway 9f458bd62b Only load the commands once. 2007-04-08 22:48:25 +00:00
Steve Checkoway 8e2e7aefb9 No cheating. 2007-04-08 22:40:30 +00:00
Steve Checkoway cba7fe4362 Partial revert since firefox cannot seem to handle xml -> xhtml but it can handle xml -> html. 2007-04-08 10:42:37 +00:00
Steve Checkoway a5e1825914 It seems all I needed to do was change onClick to onclick and it is xhtml 1.0 strict. 2007-04-08 10:16:44 +00:00
Steve Checkoway 6c8f1992ac Add mostly empty documentation file. It should contain enough information to figure out how to add documentation to other lua functions. 2007-04-08 10:08:31 +00:00
Steve Checkoway 626e4a94dc Read LuaDocumentation.xml and add the documentation to the output file. Also, output HTML 4.01 strict. I would like xhtml 1.0 at some point, but it does not really matter. 2007-04-08 10:06:46 +00:00
Steve Checkoway 8aa8d9c144 Modify xml schema to support function documentation. 2007-04-08 10:04:49 +00:00
Steve Checkoway ec2f600056 Expand the class when clicking on a link for it. 2007-04-08 01:03:13 +00:00
Steve Checkoway 7f61fdcbc3 Simplify. I had no idea I could use {@name}. 2007-04-08 00:57:00 +00:00
Steve Checkoway 7487b2c933 Fix getting base class. 2007-04-08 00:26:52 +00:00
Steve Checkoway 7e393eb1cc Font redir for Thanks for playing! 2007-04-07 22:35:19 +00:00
Steve Checkoway e2542ad5fa Add text using Lua rather than baked in. 2007-04-07 22:33:53 +00:00
Steve Checkoway deed022f01 Remove ScreenMusicScroll. 2007-04-07 13:09:29 +00:00
Steve Checkoway 11db60a74c Implement ScreenMusicScroll's functionality in the overlay. It is not quite the same, but it does more or less the same thing without using thousands of actors (one per loaded song!). 2007-04-07 13:07:35 +00:00
Steve Checkoway a99dda6d95 Make ScreenMusicScroll use ScreenCredits. 2007-04-07 13:05:23 +00:00
Steve Checkoway 9ca668e26b Remove outdated screen, do it in lua. 2007-04-07 13:03:56 +00:00
Steve Checkoway 579e7e45cb Make the announcement themeable. 2007-04-07 13:02:12 +00:00
Steve Checkoway 0e219a16aa Add GetSongColor binding. 2007-04-07 13:00:14 +00:00
Steve Checkoway d909e8c6a9 cleanup. 2007-04-07 12:48:07 +00:00
Steve Checkoway f7577ffa78 stretchto -> scale_or_crop_background. This is a cool looking background but the baked in text looks bad. Is there any chance we could get this widescreen or at least without the text? 2007-04-07 11:33:14 +00:00
Steve Checkoway 7c5d42fb59 xml -> lua. The credits are now very easy to modify, just add a time in the correct section. 2007-04-07 11:18:37 +00:00
Steve Checkoway 00d44c63bc GetRandomSong() was returning songs in the same order every time using the internal RNG. Use g_RandomNumberGenerator instead. 2007-04-07 10:04:08 +00:00
Steve Checkoway 9d75ef8bf2 While I'm at it, const. 2007-04-07 06:13:00 +00:00
Steve Checkoway 72ed44a52e Don't use istring, just use a comparison object that ignores case. 2007-04-07 06:04:40 +00:00
Steve Checkoway 1e58cd8530 Remove unused GetAllSongs(). 2007-04-07 05:36:55 +00:00
Steve Checkoway 0cb56b6ec2 GetAllSongs() -> GetSongs(). 2007-04-07 05:36:40 +00:00
Steve Checkoway a9187f5ce4 Store the group names in the map case insensitively. 2007-04-07 05:27:29 +00:00
Steve Checkoway ef22ba5d57 SONGMAN API change. 2007-04-07 05:11:47 +00:00
Steve Checkoway 54035d6334 API change. SONGMAN->GetSongs( groupName ) returns a const reference to the songs in the group. If you want a copy of the songs, just copy the return value:
vector<Song *> vSongs = SONGMAN->GetSongs( groupName );
If you don't want to change the songs, get a const reference instead to keep it from copying.
2007-04-07 05:10:29 +00:00
Steve Checkoway c29eed3108 Simplify. 2007-04-07 02:37:38 +00:00
Steve Checkoway de3f6e0618 Working at cleaning up the n different ways to get songs. 1 is probably sufficient. 2007-04-07 02:34:17 +00:00
Steve Checkoway 23131dfb6d Push back, rather than insert at end. 2007-04-07 02:33:13 +00:00
Steve Checkoway f52f0f4022 ModsCommand -> ScreenModsCommand. 2007-04-06 19:03:31 +00:00
Steve Checkoway 1ffcdab974 Apply speed up loading patch from https://sourceforge.net/tracker/?func=detail&atid=421366&aid=1691830&group_id=37892 2007-04-03 23:04:25 +00:00
Steve Checkoway 4f11ae0d98 Hack to make SetHorizAlign() and SetVertAlign() call the correct functions. Anything using the OptionIcon with TextHAlign and TextVAlign of anything other than 0 needs to be fixed as the alignment is now being properly handled. Values of 1 were being treated as align_right and align_bottom. 2007-04-03 07:10:56 +00:00
Steve Checkoway c330a32ce7 Make the horizontal and vertical alignment explicit. 2007-04-03 07:07:16 +00:00
Steve Checkoway a856377219 Change these to their floating point counterparts since BitmapText::SetHorizAlign(float) hides Actor::SetHorizAlign(HorizAlign). 2007-04-03 06:51:26 +00:00
Steve Checkoway e501603b52 Do the scaling/croping in Init, rather than each time through On. 2007-04-03 03:12:47 +00:00
Steve Checkoway 82c2f596fb Use scale_or_crop_background instead of zoom/stretch/scale. 2007-04-02 19:22:26 +00:00