Martin Natano
bacecae1f7
Decouple <vector>
2023-04-21 22:13:41 +02:00
Martin Natano
aa87f85eef
Decouple <cstdint>
2023-04-21 22:13:41 +02:00
Michael Sundqvist
0cba3579de
Remove global "using namespace std;" declarations, use "std::" prefixes on all std elements
...
Fix whitespace changes
2022-07-31 22:14:38 +02:00
Prcuvu
dea6917f02
Explicitly expand size_t on min and max overload
2019-10-03 09:44:07 +08:00
teejusb
7e3789b131
Integrate C++11 branch into 5_1-new
2019-06-22 12:35:38 -07:00
Colby Klein
b4e02821e8
Revert "Improve handling of errors in lua functions and speed up calls. ( #1427 )"
...
This reverts commit f10e3ae36a .
(it was a joke PR, do not fear)
2017-04-04 17:21:55 -07:00
Kyzentun
f10e3ae36a
Improve handling of errors in lua functions and speed up calls. ( #1427 )
2017-04-04 11:36:23 -07:00
Devin J. Pohly
10ddd549f3
Make sure we always release Lua lock
...
I have a sneaking suspicion that this also magically fixes memory cards
on Linux.
2016-05-24 16:25:23 -04:00
Kyzentun Keeslala
772096151f
Made ActorFrame:SetDrawByZPosition return self to lua so function chaining works with it.
2015-10-07 15:44:23 -06:00
Kyzentun
062b618bda
Changed ActorFrame::SetUpdateRate to reject a negative rate instead of crashing.
2015-03-24 18:28:11 -06:00
Kyzentun
d35933f1e5
Fixed RemoveChild and RemoveAllChildren lua functions to delete the children instead of leaking memory.
2015-02-27 18:33:17 -07:00
Kyzentun
ad877b6dcb
Changed BackgroundEffects files to apply the playback rate to videos. Added GetUpdateRate to ActorFrame and Get/SetDecodeMovie to Sprite. Hope nobody is caught off guard by checkerboard no longer playing videos back at 4x rate.
2015-02-05 00:37:08 -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
49b8f77a3e
Merged changelog.
2014-12-08 16:08:49 -07:00
Kyzentun
4f95bf08ad
Function chaining for actors and singletons.
2014-12-01 22:31:30 -07:00
Kyzentun
112fbfd199
Use lua_rawget instead of lua_gettable in ActorFrame::IdenticalChildrenIndexLayer to avoid self recursion on invalid number indices.
2014-12-01 17:00:18 -07:00
sigatrev
02922aa5c0
fix ActorFrame diffusing and glowing children
...
When an ActorFrame's parent has a diffuse or glow, the ActorFrame uses
the static tempState in Actor::PreDraw(); When the ActorFrame draw's
it's children, those children also use tempState because their parent
has a diffuse( making their internalDiffuse not 1,1,1,1 ). If any child
is diffused it'll will change tempState, which will affect the
internalDiffuse given to the next child, and so on.
By determining the diffuse and glow to be passed to the children before
drawing any of them, any changes to tempState will not affect the
diffuse of subsequent children.
2014-08-16 22:51:34 -05:00
sigatrev
80447c3654
Allow Update and Draw functions to be turned off
...
allow nil to be passed as an argument to SetUpdateFunction and SetDrawFunction to turn off said functions.
2014-08-16 10:55:14 -05: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
587aa38854
Modified ActorFrame:GetChildren and GetChild to return a table in cases where multiple children have the same name. This table acts as a pass through layer for function calls so that old code should be unaffected.
2014-04-29 15:08:34 -06:00
Devin J. Pohly
9f875e9bfb
warn on bad UpdateFunction
2013-11-01 21:52:56 -04:00
Devin J. Pohly
af5022d7a8
warn on bad DrawFunction
2013-11-01 21:52:15 -04:00
Devin J. Pohly
824b84655a
Warn on ActorFrame clearzbuffer
2013-10-20 22:44:33 -04:00
Devin J. Pohly
edda5ea96a
Remove old propagation for diffuse
2013-05-28 22:22:00 -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
Jason Felds
a3f37dc2b4
The big NULL replacement party part 3.
...
Getting there I think.
2013-05-03 23:16:39 -04:00
Jason Felds
ba59dd1656
The big NULL replacement party part 2.
...
This may take a bit. Trying to do this by operator/command.
2013-05-03 23:11:42 -04:00
Jason Felds
9f24627bf9
The big NULL replacement party part 1.
...
This is meant to be a safer alternative since
NULL can often be 0. Let's not rely on that.
And yes, I know this is a lot of files. This is
a safer thing to do in big commits vs for loops.
2013-05-03 23:01:54 -04:00
Jason Felds
c67419ecc8
There goes the macro file.
...
This is one of my bigger commits in this branch.
Still, shouldn't cause a problem.
2013-05-01 23:54:39 -04:00
Jason Felds
828e52e012
Some loops here. Wanted to for_each some.
2013-05-01 21:22:39 -04:00
Devin J. Pohly
bd0e2074ad
replace ASSERT(0) with useful fail messages
2012-12-27 16:59:35 -05:00
Jason Felds
a15cbc431d
War on -Werror, part 14: More hodgepodge.
2012-12-27 12:45:04 -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
AJ Kelly
0149d8556b
fix compile
2011-08-24 12:22:07 -05:00
Flameshadowxeroshin
030aa55b5a
Add LoadChildFromPath binding.
2011-08-24 10:28:58 -05:00
Flameshadowxeroshin
cea0eee09e
add RemoveChild and RemoveAllChildren bindings.
2011-08-24 09:02:48 -05:00
Jason Felds
a085d0d1da
Line endings...be normalized!
2011-03-17 01:47:30 -04:00
AJ Kelly
d7fa896646
CustomLighting is another command I'm having some trouble with...
2011-03-03 00:08:40 -06:00
Jason Felds
9d13036e08
Add @briefs to the Luna classes.
...
Yeah...there was a lot. */
2011-02-19 12:26:18 -05:00
Jason Felds
1bed6d3630
De-Python-ize REGISTER_ACTOR_CLASS(*).
2011-02-18 23:55:41 -05:00
AJ Kelly
00cec051de
generic updates
2010-12-22 13:03:05 -06:00
AJ Kelly
dca9182138
various cleanup and commenting
2010-03-14 19:46:05 -05:00
AJ Kelly
02c7037721
sm-ssc v1.0 Public Beta 1 code changes
2010-03-01 00:44:39 -06:00
AJ Kelly
16dd56bdd3
Allow lighting parameters to be set via XNode in ActorFrame. Only diffuse seems to work...
2010-02-19 22:44:05 -06:00
AJ Kelly
3e51544930
Initial commit.
2010-01-26 21:00:30 -06:00
Devin J. Pohly
80057f53cd
smsvn -> ssc-hg glue: rearrange directory structure
2013-06-10 15:38:43 -04:00