Commit Graph
100 Commits
Author SHA1 Message Date
Glenn Maynard 9525bc094d prefer to init cached metrics from Init, not ctor 2005-10-07 03:28:47 +00:00
Glenn Maynard fee7293c08 allow initting these with Load 2005-10-07 03:28:16 +00:00
Glenn Maynard 8fb283a59c move assert to Read() 2005-10-07 03:24:22 +00:00
Glenn Maynard 0ca0b6a43f add GetName, GetGroup 2005-10-07 03:20:40 +00:00
Glenn Maynard 952270b060 use Init
cleanup
2005-10-07 03:07:17 +00:00
Glenn Maynard 1b319be859 done automatically 2005-10-07 03:00:01 +00:00
Glenn Maynard abc2595e45 simplify 2005-10-07 02:57:54 +00:00
Glenn Maynard a411c9d1f4 comment 2005-10-07 02:56:23 +00:00
Glenn Maynard 91815ef03e Simplify: Move LoadChildrenFromNode into ActorFrame::LoadFromNode.
This also makes loading consistent between ActorFrame, ActorScroller and DActorScroller.
Previously, we ran ActorFrame::LoadFromNode before adding children, which caused InitCommand
to be run before adding children.
2005-10-07 02:55:47 +00:00
Glenn Maynard f875098dac typo 2005-10-07 02:44:42 +00:00
Glenn Maynard de8b1db0f3 typo 2005-10-07 02:00:42 +00:00
Glenn Maynard 7a8cf0bb38 cleanup: move code out of header, remove RageUtil.h from Actor.h 2005-10-07 01:59:20 +00:00
Glenn Maynard 630ea78f63 missing header 2005-10-07 01:58:41 +00:00
Glenn Maynard 775273cef4 fix warning 2005-10-07 01:45:48 +00:00
Glenn Maynard c904417448 missing header 2005-10-07 01:45:20 +00:00
Glenn Maynard 0c0c5d9557 update 2005-10-07 01:39:34 +00:00
Glenn Maynard 4aa3330211 Nothing ever overrides BeginDraw or EndDraw--any time where we might, we just
do the stuff in DrawPrimitives.  Remove unneeded virtual calls from the Actor
draw path.

Fix comments.
2005-10-07 01:31:27 +00:00
Glenn Maynard 1472cd1618 old comment 2005-10-06 04:39:30 +00:00
Glenn Maynard f0fd4d8acc these mappings aren't really important here; these are just generic difficulty levels 2005-10-06 01:55:25 +00:00
Glenn Maynard 9217d8b333 update 2005-10-06 01:29:02 +00:00
Glenn Maynard 3e964691e5 remove GhostArrow 2005-10-06 01:28:22 +00:00
Glenn Maynard c3129a682e Remove GhostArrow, and do them with XML. This is simpler and reduces bloat
in note skins.
 - skins with only one ghost flash can simply override "Common Tap Explosion Bright"
   and "Dim"
 - don't need to have tons of files to redirect each type of ghost flash
 - still supports overriding ghost commands in NoteSkin metrics.ini
 - fixes obscure bug: the first bright ghost flash wouldn't hide the last dim ghost flash
2005-10-06 01:22:18 +00:00
Glenn Maynard 1ab2e6022e fixup 2005-10-06 01:16:42 +00:00
Glenn Maynard 3c212785c0 remove unused Unload 2005-10-06 01:16:05 +00:00
Glenn Maynard 757b5c0acb prefer AutoActor over Sprite 2005-10-05 22:36:49 +00:00
Glenn Maynard a3c0817d81 prefer AutoActor over Sprite 2005-10-05 22:30:54 +00:00
Glenn Maynard c411e8a4ac fix name conflict between HoldJudgment::Reset and Actor::Reset
prefer AutoActor over Sprite
2005-10-05 22:26:02 +00:00
Glenn Maynard 363f995814 Fix HoldJudgments not being shown. Actors can't be stored in STL containers
without implementing operator= and a copy ctor; the ActorFrame child list
won't be updated.  (This used to work because, with a fixed-length array,
this loading was done in the ctor, though it should have been done in Init.)  Also
fixes loads happening during Player::Load, which shouldn't happen.
2005-10-05 22:21:27 +00:00
Glenn Maynard 291696fc1f fix backwards 2005-10-05 22:14:48 +00:00
Glenn Maynard 56720f74b8 fix HOLD_JUDGMENTS_UNDER_FIELD 2005-10-05 22:05:47 +00:00
Glenn Maynard 9f8e27442c fix name conflict between HoldJudgment::Reset and Actor::Reset 2005-10-05 22:03:47 +00:00
Glenn Maynard d78b194f09 add GetAnimationLengthSeconds 2005-10-05 08:31:46 +00:00
Glenn Maynard 4cbf9be85a Add AddCommand and THEME:GetMetricA.
This won't work with theme reloading, but that hasn't worked in a long time anyway
(recreating the Lua environment while it's actually in use is hard).
2005-10-05 07:37:26 +00:00
Glenn Maynard 4e312a4ffd cleanup 2005-10-05 06:13:57 +00:00
Glenn Maynard f723499700 make this behave consistently with THEME:GetPath when given a blank
button name
2005-10-05 06:05:53 +00:00
Glenn Maynard 73fffe0bde unused 2005-10-05 05:56:17 +00:00
Glenn Maynard a5cf8c21b0 cleanup 2005-10-05 05:49:50 +00:00
Glenn Maynard d1c457601f cleanup 2005-10-05 05:25:20 +00:00
Glenn Maynard b76d363994 Remove ugly CopyTweening. This is too wildly incompatible with newer
XML features, where there's not necessarily any corrolation between elements
of different graphics.  This didn't work well, anyway: it'd apply the old tweening
queue to the new graphics, but they might have completely different animations.
This will cause transitions between NoteSkins to be more abrupt, but we don't
use that feature anyway.
2005-10-05 04:49:09 +00:00
Glenn Maynard 829b581a9b fix "conversion from 'NoteType' to 'float', possible loss of data" 2005-10-04 20:32:11 +00:00
Glenn Maynard 57153b6c6c All of these should be played during silent attract (except for Invalid). Remove
volume setting (that was the same as m_bIsCriticalSound).
2005-10-04 07:47:15 +00:00
Glenn Maynard 9b41085586 fix IsTimeToPlayAttractSounds 2005-10-04 07:44:38 +00:00
Glenn Maynard bc85c365ee cleanup 2005-10-04 07:44:06 +00:00
Glenn Maynard 1cdfffd6a7 Let's be explicit: Demonstration should act like an attract screen. (This usually
happens to work without this, because the previous attract screen will set it,
and won't unset it since that's done in input.)
2005-10-04 07:43:42 +00:00
Glenn Maynard 510f214792 unmute first, so Cancel gets to play sounds 2005-10-04 07:40:00 +00:00
Glenn Maynard c9a12177d8 fix backwards 2005-10-04 07:39:03 +00:00
Glenn Maynard 643da8e2ce Apply m_bIsCriticalSound permanently on play, so we don't start playing previously
muted sounds when GetPlayOnlyCriticalSounds changes.  Fixes background music
playing for a split second in some sound drivers when start is pressed during attract.
2005-10-04 07:35:35 +00:00
Glenn Maynard f88e38a788 "warning C4018: '>=' : signed/unsigned mismatch" 2005-10-04 07:21:49 +00:00
Glenn Maynard b5b224ee38 fix "warning C4213: nonstandard extension used : cast on l-value" 2005-10-04 07:20:52 +00:00
Glenn Maynard f0998a1dc5 store /sys/block name in Linux 2005-10-03 07:17:09 +00:00
Glenn Maynard e844ff7c32 By default, don't use item numbers. On scrollers with lots of items, especially
with Subdivisions > 1, m_exprTransformFunction uses too much memory, and
very few scrollers use this.  Usually, per-item effects can be done better by
using DynamicActorScroller and doing the effects on item load (but this can
do some things that can't).
2005-10-03 00:02:41 +00:00
Glenn Maynard eccfe81012 fix current StepsType ignored 2005-10-01 01:03:08 +00:00
Glenn Maynard 08bbfd215d work around VC brain damage 2005-09-29 06:35:30 +00:00
Glenn Maynard 9a86f82a15 partial compile fix 2005-09-29 06:23:39 +00:00
Glenn Maynard b8accdb7ec compile fix 2005-09-29 06:19:45 +00:00
Glenn Maynard d05224c544 increase timeout 2005-09-29 02:36:10 +00:00
Glenn Maynard 87ddfb4c41 Up until now, we've been backing up profile data by copying it to the
backup directory immediately after a successful load.  This ensures that
the data we're copying is valid, so after a successful copy, the backup
is valid, too.  This has a couple problems:

 - Copying takes a while.  It's much faster to move data.
 - Data shouldn't be written during a profile read.  Players should be able
   to assume that it's safe to remove the memory card at any time except
   when the game is explicitly saving.
 - Copying good data from one place to another is just as prone to error as
   initially writing it.  It's at least as easy for the backup copy to fail
   and result in a bad backup as it is for a save to fail in the first place.

Instead, when we successfully load profile data (and not from a backup),
set a flag.  Later, when we save over that data, we'll clear the flag and
move the data we're about to overwrite to the backup.
2005-09-29 00:33:22 +00:00
Glenn Maynard 14ab43b2aa RageFileManager::MoveFile 2005-09-28 23:00:34 +00:00
Glenn Maynard 04ec4e66f4 add optional RageFileDriver::MoveFile override; implement for RageFileDriverDirect and RageFileDriverTimeout 2005-09-28 22:59:12 +00:00
Glenn Maynard ca1309c49d basealpha 2005-09-28 03:50:00 +00:00
Glenn Maynard c4150955bd split ScreenRanking specializations into ScreenRankingScroller (for
PAGE_TYPE_ALL_STEPS, PAGE_TYPE_*_COURSES) and ScreenRankingLines
(PAGE_TYPE_CATEGORY, PAGE_TYPE_TRAIL).

Use DynamicActorScroller for ScreenRankingScroller; reduces overhead
significantly.
2005-09-27 19:10:09 +00:00
Glenn Maynard b5006f6e09 cleanup weird includes 2005-09-27 19:01:53 +00:00
Glenn Maynard aab04cc13f update 2005-09-27 18:14:17 +00:00
Glenn Maynard 34116d9f36 DynamicActorScroller 2005-09-27 18:13:00 +00:00
Glenn Maynard ab8ed823b6 add experimental DynamicActorScroller. This allows creating lists like
ScreenCredits and ScreenRanking without constructing dozens or hundreds
of actors, which saves a lot of memory and is easier to manipulate.  This could
also be used to support CourseContentsLists for long courses cheaply, etc.
2005-09-27 07:55:14 +00:00
Glenn Maynard 18f40a2b8f Separate "number of Actors" from "number of items": allow having more items than
actors.  Derived classes do this by overriding ShiftSubActors and setting m_iNumItems
to something other than m_SubActors.size().
2005-09-27 07:49:12 +00:00
Glenn Maynard 384e26cbec ActorScroller doesn't SetDestinationItem anymore, but we still want this here and not in ActorScroller. 2005-09-27 07:40:34 +00:00
Glenn Maynard 4ae883a5c6 cleanup 2005-09-27 07:34:45 +00:00
Glenn Maynard 75484e193f cleanup: add children before calling Load 2005-09-27 05:40:09 +00:00
Glenn Maynard 71931135a3 implement BitmapText::operator= 2005-09-27 05:38:14 +00:00
Glenn Maynard cc737b0835 fix message 2005-09-27 03:32:14 +00:00
Glenn Maynard 71ad5179b4 Don't scroll by default; do it in OnCommand. 2005-09-27 03:20:07 +00:00
Glenn Maynard e1cf2c5484 add lua bindings 2005-09-27 03:18:57 +00:00
Glenn Maynard 2436ef26db simplify 2005-09-26 23:01:24 +00:00
Glenn Maynard e3d5437031 fix up names 2005-09-26 21:04:02 +00:00
Glenn Maynard 5ca840d259 simplify algebraically; nudge both cases to look the same 2005-09-26 21:03:09 +00:00
Glenn Maynard 9110303bff equivalent and easier to understand: fCurrentItem is simply centered 2005-09-26 20:43:45 +00:00
Glenn Maynard e24e9d8c99 cleanup 2005-09-26 19:53:11 +00:00
Glenn Maynard 1178d1df75 cleanup 2005-09-26 19:52:04 +00:00
Glenn Maynard a1d9d49d6c simplify: an ActorScroller is always an ActorScroller 2005-09-26 19:35:15 +00:00
Glenn Maynard 45c50c854d BGAnimation is no longer used for scrollers; use XML. 2005-09-26 19:34:07 +00:00
Glenn Maynard d3ecba30a0 cleanup test 2005-09-26 19:08:45 +00:00
Glenn Maynard 163aa1366a cleanup 2005-09-26 19:08:15 +00:00
Glenn Maynard d504a9f798 update 2005-09-25 02:30:29 +00:00
Glenn Maynard b6c84d5abb do credits screen in XML (can almost remove this; just the announcer ...) 2005-09-25 01:45:37 +00:00
Glenn Maynard a0da988918 GetRandomSongBackground 2005-09-25 01:41:26 +00:00
Glenn Maynard 3aa06cdf34 simplify 2005-09-24 23:54:24 +00:00
Glenn Maynard 3a185cc977 yuck. ActorScroller doesn't need UseScroller, but BGAnimation does. Move
the hack into BGAnimation, which is on its way out anyway.
2005-09-24 23:43:06 +00:00
Glenn Maynard b389ded342 Remove UseScroller; it's a holdover from when ActorScroller was part of
ActorFrame.  Now, if the class is ActorScroller, we always want a scroller.
2005-09-24 23:25:25 +00:00
Glenn Maynard a3bdc2e5ff move SetSize to Actor 2005-09-24 06:57:03 +00:00
Glenn Maynard 718cf1787a simplify 2005-09-24 04:04:01 +00:00
Glenn Maynard dbbe3c8af1 Fix mask. Traditionally, quads have been a little unusual: they have a size
of 1x1, and are sized by zooming.  That's unintuitive, commonly causes
problems when used in conjunction with other stretch effects, and all we have
to do is SetHeight/SetWidth to set the actual size, which will make it behave
exactly like any other sprite.  This one didn't work because m_exprTransformFunction
overrides the zoom, usually resetting it to 1x1.
2005-09-24 04:02:27 +00:00
Glenn Maynard 4722e1ca2e fix comment 2005-09-24 03:48:30 +00:00
Glenn Maynard f9258c60b9 fix div/0 in LuaExpressionTransform::PositionItem 2005-09-24 03:29:02 +00:00
Glenn Maynard 40251903ec legacy: bPosition is always true 2005-09-24 02:35:53 +00:00
Glenn Maynard 05514ab59e unused 2005-09-24 02:34:34 +00:00
Glenn Maynard c27ba8ca2f Don't SetZ masks; it breaks things in 3d. It's up to the renderer to activate
z-bias in BLEND_NO_EFFECT.
2005-09-24 02:31:55 +00:00
Glenn Maynard 7dce50ffbc simplify, don't store extra state 2005-09-24 02:18:09 +00:00
Glenn Maynard 615c470354 cleanup 2005-09-24 00:54:31 +00:00
Glenn Maynard 0581e0b3d0 const fix
hide implementation
2005-09-24 00:51:35 +00:00