Commit Graph

68 Commits

Author SHA1 Message Date
Kyzentun Keeslala 86470b7977 Reinstate RageFastSin because it's faster on Windows. 2016-02-07 21:04:10 -07:00
Kyzentun Keeslala acda44238d Replace RageFastSin and RageFastCos with standard library versions because the standard library is faster. Use fmod in spline evaluation. 2016-02-07 15:35:05 -07:00
Kyzentun Keeslala 189cf77cab Changed PlayCommandNoRecurse to check whether the command is nil before running it, so that a command metric set to a nil function isn't an error. Removed TextBannerHighScores::AfterSetCommand metric from _fallback because it pointed to a function that does not exist. 2015-10-22 12:24:04 -06:00
Kyzentun Keeslala f423af397a Removed superfluous assignments from Actor bounce/bob logic. 2015-06-03 17:15:26 -06:00
Kyzentun Keeslala f133272807 Removed pixel coordinate rounding from bounce and bob effects because it causes jumping when a slow move is combined with a slow bounce or bob. 2015-06-03 15:49:00 -06:00
Kyzentun 9b6ae296c7 Fixed automagic typing. Added debug overlay line for conversion. 2015-05-05 21:41:15 -06:00
Kyzentun 5eba25a495 Added hold at full to actor effect timing. Added the xml to lua converter. 2015-05-01 07:50:34 -06:00
Kyzentun 2656123464 RageTextureManager now keeps a map of textures by pointer for quicker lookup when deleting.
RageTextureManager now keeps a map of textures that need updating, which is none of them because I couldn't find a class that inherits from RageTexture that doesn't have an empty Update function.
ArrowEffects now requires setting the current PlayerOptions before calling any functions.  This might make moving to per-column mods easier, and reduces the direct usage of PlayerState.
Tipsy calculations for each column are done in ArrowEffects::Update instead of GetYPos and GetYOffset.
DrawHold changed to only call DrawHoldBody once.  DrawHoldBody now does the normal and glow passes together instead of needing to be called twice.
DrawHoldPart changed to take most of its args in a struct.
Giant copy paste mess that NoteField was using to draw timing segment text replaced with a couple functions and a macro.
Selection glow for notefield is only calculated if a section is selected.
Added RageVector3 functions to CubicSplineN for NoteDisplay to use.
Actor effect period is cached now.  Sprites and Models cache their animation length now.
ReceptorArrowRow no longer calls ArrowEffects::Update in gameplay.
2015-04-24 15:55:54 -06:00
Kyzentun 8b09da8e64 Various changes to speed up start up time:
Added delay_save_cache to SongCacheIndex so that it doesn't write the entire cache index file after every song is loaded when loading songs.
Added m_SongsByDir to SongManager so that GetSongFromDir doesn't have to walk the entire list of songs.
Minor changes to when LoadEnabledSongsFromPref occurs and how SanityCheckGroupDir works to speed up loading.
Song::ReloadFromSongDir removes cache file to force an actual reload from the song dir instead of reloading from the cache.  ReloadFromSongDir exposed to lua.
Reordered Actor::LoadFromNode to put Command first because that case is more common.
Course::GetTrailUnsorted reserves entries before starting to save time reallocating.
join in RageUtil calculates the final size of the concatenated strings reserves it to save time reallocating.
Added time log file to RageLog for profiling.
2015-03-30 17:45:52 -06:00
Kyzentun d617321766 Emit an error for negative tweening hurry factor. 2015-03-08 10:12:42 -06:00
Kyzentun b4ede3f977 Stupid LuaHelpes::Push doesn't have a size_t specialization. 2015-01-30 09:30:50 -07:00
Kyzentun 647b361284 Added wrapper states to actors. Wrapping an actor inside a frame when building a screen is now unnecessary. 2015-01-30 09:05:09 -07:00
Kyzentun 40b25e6220 Fixed conflicts to merge kickbox in. 2015-01-27 18:03:41 -07:00
Kyzentun aeaead95c9 Changed default ScreenSelecStyle to use functions for choice names and positions instead of metrics. _fallback SSS remains the same for compatibility. Fixed style stomping bug in SetCompatibleStylesForPlayers. 2015-01-20 18:40:59 -07:00
Kyzentun 65187a55c6 CubicSpline class created. Temp spline rendering stuff in AMV. 2014-12-27 21:41:55 -07:00
Kyzentun 64d384410c Created NoteColumnRenderer to handle column rendering. Added m_FakeParent to Actor to solve part of the problem. 2014-12-26 01:54:34 -07:00
Kyzentun 4f95bf08ad Function chaining for actors and singletons. 2014-12-01 22:31:30 -07:00
Kyzentun 50df61a0ca Fixed RollingNumbers to work with corner diffuse colors. Changed diffuse loops to use NUM_DIFFUSE_COLORS instead of 4. 2014-11-01 16:42:51 -06:00
Kyzentun a5289ddaca Fixed broken else-if chain in Actor::SetEffectClockString. Changed error to not crash Stepmania. 2014-10-29 17:43:37 -06:00
Kyzentun 5639a0d31f Lineage reporting for nil commands in RunCommands. Stricter type checking for FormatPercentScore in PercentageDisplay. 2014-10-28 20:32:38 -06:00
sigatrev d8b86fa3c5 make internal diffuse apply to bmt attributes
diffuse from BitmapText attributes were not receiving internal diffuse
from their parent ActorFrames. This change waits until after the draw
cycle to reset the internal diffuse and glow, so any color applications
separate from generic diffuse can use the internal diffuse when desired.
2014-08-16 16:38:26 -05:00
Kyzentun 63311ab62f Moved error reporting to ScreenSystemLayer error.lua. ScreenSystemLayer overlay/default.lua restored to previous. Error messages are now broadcast with the ScriptError message instead of SystemMessage. Added show/hide error messages toggle and clear error messages to debug menu. Nuked ScreenConsoleOverlay for being unfinished and duplicating ScreenSystemLayer. Changed Actor:tween and Tween::CreateFromStack to use ReportScriptError on invalid tween params. Changed some OptionRowList things to use ReportScriptError on invalid metrics. 2014-07-08 20:01:33 -06:00
Kyzentun 026f968fa4 Changed many uses of Dialog::OK and LOG->Warn to use ReportScriptError. 2014-07-07 00:39:27 -06:00
Kyzentun a7a98a690e Replaced every use of lua_call with RunScriptOnStack. Modified RunScriptOnStack to report an error to log and system message using a passed in context string. Modified every use of RunScriptOnStack to avoid crashing so that the reported error can be seen. 2014-07-05 01:34:05 -06:00
Kyzentun e9220c56b7 Added Actor:GetDestX/Y/Z to Lua API. 2014-07-04 02:03:05 -06:00
sigatrev 70c5209e76 added ActorMultiVertex
AMV is an actor which can have a variable number of vertices that can
each be given their own pos, color, and coords. They can be drawn using
any of the RageSpriteVertex draw functions in RageDisplay.cpp. The
vertex properties can be tweened.
2014-04-14 21:29:19 -05:00
sigatrev 1b1716ac7d Fix draw function
Actors with glow but no alpha are not drawn because. Adding glow to the
conditional.
2014-03-09 00:17:45 -06:00
freem 5c998c0f96 pedantic "change 4 spaces to tab" commit 2014-02-21 16:41:30 -06:00
Colby Klein 2f9bdb8352 Merge pull request #57 from sigatrev/master
TextureTranslate method
2014-02-21 09:37:49 -08:00
sigatrev 0ab15ed053 TextureTranslate method
Allow themes to duplicate the way noteskins are handled.
2014-02-20 21:17:10 -06:00
Devin J. Pohly 3ac15cc1ce Warn on failed command compilation 2014-02-20 10:59:48 -05:00
Ben "root" Anderson 65af9f1839 Some housekeeping that EndDraw takes care of wasn't in certain cases. Oops. 2013-12-20 17:29:49 -06:00
Ben "root" Anderson ddbdb77368 Split Actor::BeginDraw() into Actor::PreDraw() which does tweening calculations and Actor::BeginDraw() now only sets up the matrix. Skip setting up the matrix if the Actor is fully transparent. 2013-12-13 12:10:11 -06:00
Devin J. Pohly 6a91621f10 Warn on unset or nil command in RunCommands 2013-10-20 23:05:26 -04:00
Devin J. Pohly 9555ddd82e BeginTweening: ensure precondition 2013-10-20 18:02:13 -04:00
Devin J. Pohly 0b378d55f5 SetEffectTiming: better precondition, and check it 2013-10-20 17:37:45 -04:00
Devin J. Pohly 70b52946f4 SetEffectPeriod: propagate precondition 2013-10-20 16:59:24 -04:00
Devin J. Pohly ecdc352e96 Actor: propagate some default parameters 2013-10-20 16:34:19 -04:00
Devin J. Pohly f94d3affc2 Propagate diffuse to ActorFrames' children 2013-05-28 21:46:15 -04:00
Devin J. Pohly 849b6e5b3b Propagate glow to ActorFrames' children 2013-05-28 20:52:01 -04:00
Devin J. Pohly bd0e2074ad replace ASSERT(0) with useful fail messages 2012-12-27 16:59:35 -05:00
Jason Felds e86aeb66a8 war on -Werror, part 10: more informals. 2012-12-27 11:01:51 -05:00
AJ Kelly ae57a3f2c2 [Actor] Make the xy command a source-code level command. 2012-05-19 00:20:30 -05:00
AJ Kelly e14b96cfbf part one of three-ish in reverting the Actors/ folder thing 2011-10-02 21:14:01 -05:00
Colby Klein 69431604e3 Remove the old files. (also I am very sorry for nuking the line by line history, this has been pissing me off for ages) 2011-09-23 15:44:01 -07:00
Jason Felds dbdab4759e [Xcode4] May as well fix switch warnings.
Still need some assistance for the linker error.
2011-07-20 11:11:04 -04:00
Jason Felds 2ab5a4ddb8 Mostly 64 - 32 float warning fixes. 2011-06-12 03:37:10 -04:00
Thai Pangsakulyanont 631bc3753d Revert "An attempt to make the arrows flash with the steps' timing. If it works then we can expand it to..... I don't know, lifebars?"
This reverts commit ab178b1e65.
2011-05-24 10:41:07 +07:00
Thai Pangsakulyanont aa706d34d7 Revert "Fix a typo (that makes building fail)."
This reverts commit 9130e2b6ec.
2011-05-24 10:40:22 +07:00
Thai Pangsakulyanont 1d88598eaf Revert "finally got it to work with a another hack inside that hack."
This reverts commit 73459aae38.
2011-05-24 10:40:04 +07:00