Glenn Maynard
0a76e7ff0a
alignment fix
2007-03-16 03:15:24 +00:00
Glenn Maynard
495f80962b
expose fractional alignment
2007-03-01 08:14:33 +00:00
Glenn Maynard
50c64785b4
odn't rebuild on vetical change
2007-03-01 04:49:38 +00:00
Glenn Maynard
c371d9f26b
Previously, alignment had to be implemented by each actor, so it was
...
only ever supported by Sprite and BitmapText. Handle it globally, using
m_size. This way, an actor only needs to set m_size to support alignment.
This means alignment can be set for non-drawing ActorFrames, if a size
is set explicitly. This allows stretching from the border of a frame
without playing games with extra nested frames. "setsize,100,100;valign,4;zoomx,.5"
This adds an extra matrix multiply. This will only happen for actors
actually set to non-centered alignment, which is the exception.
BitmapText still overrides this behavior a bit. Alignment for text
does two things: changes the alignment of the bounding box vs. the
X/Y position (the generic behavior), and changes the alignment of
the text within the bounding box.
2007-03-01 04:29:05 +00:00
Glenn Maynard
be4efcd0c2
Represent alignment as a float; eliminates selects. (I havn't
...
yet decided whether these should be -1.0 ... +1.0, indicating
"fully left aligned" and "fully right aligned", or 0.0 ... 1.0,
indicating "anchor to this fractional position in m_size".
It may become the latter.)
2007-03-01 02:19:49 +00:00
Steve Checkoway
a06dc00e7a
Simplify.
2007-02-23 11:32:54 +00:00
Chris Danford
bc997f81d4
BitmapText::Rainbow -> RainbowScroll to fix naming confict with Actor::rainbow
2007-02-19 09:32:07 +00:00
Glenn Maynard
ae45448ade
use File in Lua; use Font in XML, for compatibility. Only XML's paths
...
need manual lookups.
2007-02-16 07:55:59 +00:00
Glenn Maynard
74838465c3
fix "Font" attribute
2007-02-16 06:34:46 +00:00
Glenn Maynard
7319b284ab
cacept paths like other actors
2007-02-15 11:27:17 +00:00
Glenn Maynard
ebb7189b88
add TextureUnit param to SetTextureMode
2007-02-13 04:59:05 +00:00
Glenn Maynard
4bff44a918
use SetTextureMode
2007-02-13 04:15:32 +00:00
Steve Checkoway
4517499f0f
lroundf -> lrintf.
2007-01-03 05:05:28 +00:00
Steve Checkoway
eb0b26cd82
Float to int is slow on ppc. It requires a store, a big stall, and then a load. It's even worse on a G5 if the compiler is dumb (and let's face it, I'm using gcc here...). Just use lroundf when we want an int. It will certainly be no slower.
2007-01-02 23:36:44 +00:00
Chris Danford
eca593e76a
cleanup Rainbow methods
...
add experimental Jitter effect
2006-12-07 07:49:22 +00:00
Glenn Maynard
5cc5462722
header cleanup
2006-11-21 05:17:01 +00:00
Steve Checkoway
30d9410b65
Unneeded.
2006-11-01 10:45:51 +00:00
Glenn Maynard
e11914d4bb
LoadFromNode(sDir, pNode) -> LoadFromNode(pNode)
2006-10-09 08:24:10 +00:00
Glenn Maynard
f1ca420069
use ActorUtil::GetWhere
2006-10-09 08:08:59 +00:00
Glenn Maynard
e0b788de16
unneeded LuaHelpers::RunAtExpressionS
2006-10-09 01:22:17 +00:00
Glenn Maynard
d188c2fd12
use GetName, GetValue
2006-10-02 06:12:42 +00:00
Glenn Maynard
c690fdcfe4
unify registration
2006-09-29 00:01:32 +00:00
Glenn Maynard
f4975f1f54
simpler Lua boilerplate
2006-09-27 20:30:29 +00:00
Glenn Maynard
c540417e23
transition
2006-09-26 20:29:34 +00:00
Steve Checkoway
6ea2a41b00
Cleanup RageException::Throw(). Do not use ssprintf() inside of Throw() and do not pass it bare error messages. Use RageException::Throw( "%s", sError.c_str() ); instead. Be consistent with quoting file names "%s" and theme metrics as "%s : %s". Try to make them complete English sentences when possible.
2006-09-17 01:19:19 +00:00
Glenn Maynard
f98dc30d93
still needed, but not for that
2006-08-20 19:32:57 +00:00
Jason Felds
2b7744c937
Tab cleanup.
2006-08-18 03:32:00 +00:00
Glenn Maynard
d0bcf2052d
RageTexture is a wrapper around RageDisplay's textures; RageDisplay
...
itself doesn't use it. Don't pass in RageTexture to SetTexture;
use RageDisplay's native texture handles.
2006-07-23 03:19:49 +00:00
Glenn Maynard
db86dbb519
fix if iPadding < 0
2006-06-25 04:00:34 +00:00
Glenn Maynard
15ede4e845
fix m_iVertSpacing in copy
2006-01-25 09:32:24 +00:00
Glenn Maynard
a40813dec0
add vertspacing
2006-01-24 01:12:54 +00:00
Glenn Maynard
4dfd0d1d7c
simplify
2006-01-24 01:04:53 +00:00
Glenn Maynard
39bf48696a
cleanup
2006-01-24 01:02:21 +00:00
Glenn Maynard
63368f99da
cleanup
2006-01-24 01:00:49 +00:00
Chris Danford
7f821e8cfc
CString -> RString
2006-01-22 01:00:06 +00:00
Chris Danford
d698a5f1ec
CString -> RString in RageUtil
...
ThemeMetric<CString> -> LocalizedString to eliminate dependencies
2005-12-20 08:35:47 +00:00
Chris Danford
37f82b43f7
remove CStringArray #define
2005-12-09 21:36:22 +00:00
Glenn Maynard
4c874a943b
include cleanup
2005-11-06 18:03:47 +00:00
Chris Danford
3f6e95b7d8
fix D3D texture coord generation
2005-11-05 03:08:09 +00:00
Steve Checkoway
3c0deebeba
Actor::DrawPrimitives() does nothing.
2005-10-29 11:38:23 +00:00
Glenn Maynard
71931135a3
implement BitmapText::operator=
2005-09-27 05:38:14 +00:00
Chris Danford
682f9aa379
fix Reverse for RTL can be applied multiple times to the same string
2005-09-24 20:23:15 +00:00
Glenn Maynard
8b9f7c2889
sLine is a string, not a vector
2005-09-23 02:27:23 +00:00
Chris Danford
a19f0b492a
RTL cleanup
2005-09-22 16:49:51 +00:00
Chris Danford
1a7899e270
add support for Right to Left fonts
2005-09-22 09:08:11 +00:00
Chris Danford
65d71a4f23
expermienting with DEFINE_METHOD macro for Lua methods
2005-09-10 02:47:04 +00:00
Glenn Maynard
faf1ee5808
ReplaceMarkers, :: (no RunAtExpressionS).
2005-09-06 04:36:20 +00:00
Glenn Maynard
0022bc3338
cleanup
2005-09-03 02:08:27 +00:00
Glenn Maynard
f67bf25560
remove comment
2005-09-01 06:13:56 +00:00
Glenn Maynard
28f937d412
RunAtExpressionS
2005-08-30 01:59:49 +00:00