Commit Graph
88 Commits
Author SHA1 Message Date
Steve Checkoway 74bb5376ce Support adding attributes to BitmapText. The only ones supported currently are diffuse color and glow color. Overlapping attributes are undefined. However, a length of -1 means the attribute applies until the end of the text or another attribute, whichever comes first. 2007-08-18 22:16:05 +00:00
Steve Checkoway 8dcda44d9c There is no need for this to be public. 2007-08-18 02:15:35 +00:00
Steve Checkoway 32a9724841 Move ColorBitmapText to SNetSelectBase since this is very specific to the SMO code. This should probably be done in a general way in BitmapText and the string parsing to color code should be kept where it is used instead of part of the bitmap text class. 2007-06-09 07:56:34 +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
Chris Danford bc997f81d4 BitmapText::Rainbow -> RainbowScroll to fix naming confict with Actor::rainbow 2007-02-19 09:32:07 +00:00
Chris Danford eca593e76a cleanup Rainbow methods
add experimental Jitter effect
2006-12-07 07:49:22 +00:00
Glenn Maynard cd3f228338 covariant Copy() 2006-10-20 00:17:51 +00:00
Glenn Maynard e11914d4bb LoadFromNode(sDir, pNode) -> LoadFromNode(pNode) 2006-10-09 08:24:10 +00:00
Jason Felds 2b7744c937 Tab cleanup. 2006-08-18 03:32:00 +00:00
Glenn Maynard a40813dec0 add vertspacing 2006-01-24 01:12:54 +00:00
Glenn Maynard 39bf48696a cleanup 2006-01-24 01:02:21 +00:00
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +00:00
Glenn Maynard 71931135a3 implement BitmapText::operator= 2005-09-27 05:38:14 +00:00
Glenn Maynard df8153cf7b cleanup 2005-09-23 00:13:04 +00:00
Glenn Maynard 1c81bcc5fc EarlyAbortDraw() const 2005-08-25 00:57:53 +00:00
Glenn Maynard 55d6382c49 add virtual Copy() to Actor 2005-07-18 22:00:19 +00:00
Glenn Maynard ff2c101d82 BitmapText copy ctor to fix refcount desync 2005-07-15 03:50:56 +00:00
Glenn Maynard 0b80f541ac update registration for BitmapText types 2005-06-20 04:06:26 +00:00
Glenn Maynard 221e369b7b long-needed style update. no non-cosmetic changes. 2005-05-19 06:55:31 +00:00
Glenn Maynard 01490f8f68 revert weird wrapping hack. I can't make sense of it, and it's causing
infinite loops.  Implement overdraw handling correctly.
2005-05-19 06:11:46 +00:00
Charles Lohr 4970c0ce60 Modifications for ColorBitmapText: Actually make it possible to accurately limit lines.
This should conclude my heavy modifications, please feel free to edit it now.
2005-05-05 20:09:21 +00:00
Charles Lohr 11f9384528 Change: Move Colored Text into it's own class.
Note: At a later time, it may make sense to put my text parsing system over the old one.
2005-05-05 19:47:04 +00:00
Charles Lohr 6f9b5a6e9c Revert. I will probally revert further/manually undo some changes. 2005-05-05 04:57:16 +00:00
Glenn Maynard cc9842e5a4 gettext -> GetText to work around linux namespace pollution. (Lua
methods that are useful in commands need to be lowercase, since
we lowercase on parsing, but others don't have to.)
2005-05-04 21:36:22 +00:00
Glenn Maynard cd968c46f9 gettext 2005-05-04 19:31:23 +00:00
Charles Lohr 9a92b7222f Cleanup, we should not have two text boxes and be moving stuff around between them in order to limit the number of lines 2005-05-04 05:34:28 +00:00
Charles Lohr 348c6f6f5a FEATURE: Allow BitmapTexts to on-the-fly change color mid-text depending on the text
This feature can be used by enabling the coloration by using the .SetDynamicColor( true )
function.  Once this is done, the syntax for color changing is: |c0RRGGBB where RR = red
in hex, GG = green in hex and BB = blue in hex.  |c0 is the token to note the
beginning of a text change.  This was discussed on the StepMania development
list.
2005-05-03 03:37:52 +00:00
Charles Lohr 3b84c9024b Fix: Don't let BitmapText spill outside it's wrap area. Is this a good way to do it? anyone have a better idea? 2005-04-19 02:14:43 +00:00
Chris Danford 7578fed39a add SetMaxHeight 2005-04-15 12:25:59 +00:00
Glenn Maynard df6c246af6 add settext lua method 2005-02-20 07:46:52 +00:00
Chris Danford eb35dfa15f cleanup 2005-02-15 07:07:23 +00:00
Chris Danford d5022cb1b6 code style cleanup 2005-02-12 20:29:38 +00:00
Chris Danford 1de61aa8ae split AutoActor into a separate file 2005-02-09 05:27:51 +00:00
Chris Danford 68dd253720 use templated classes instead of macros for easier debugging 2005-01-31 08:05:27 +00:00
Chris Danford 8555a6da45 use Lua to execute commands
(needs cleanup)
2005-01-26 11:21:43 +00:00
Chris Danford f1dbeb2334 cleanup 2005-01-16 07:08:58 +00:00
Chris Danford ed19821e09 rename: ActorCommand -> Command
Make Command smaller and more generic.
Parse arguments on use, not in Command::Load.
2004-12-03 05:19:46 +00:00
Chris Danford 6c855f0c93 "ParsedCommand" -> "ActorCommand" 2004-11-06 20:42:09 +00:00
Charles Lohr 75b77ad650 Added a command to get the vector of the lines of text. 2004-08-27 13:38:39 +00:00
Glenn Maynard c531e8b172 license update 2004-06-08 00:47:53 +00:00
Chris Danford 3cadf4c5d5 have Numbers fall back to Fonts (in perparation for removing the Numbers dir altogether) 2004-05-30 23:23:39 +00:00
Chris Danford 10a4580c12 remove Actor::Fade*, remove unnessary virtuals in Actor 2004-02-14 03:38:34 +00:00
Chris Danford f7647ae391 add pre-parsing for ActorCommands (though not yet used in ThemeManager) 2004-01-10 20:34:18 +00:00
Glenn Maynard 04aeba8342 remove SetTextMaxWidth 2003-12-17 09:58:24 +00:00
Glenn Maynard b926fbe742 replacing SetTextMaxWidth with more general SetMaxWidth 2003-12-17 09:47:03 +00:00
Glenn Maynard f9525ebe26 remove GetWidestLineWidthInSourcePixels (use GetUnzoomedWidth) 2003-11-24 03:02:26 +00:00
Chris Danford 855106f07d clean up line wrap 2003-11-06 07:23:22 +00:00
Chris Danford c43360bbb1 BitmapText: line wrap automatically 2003-11-06 06:20:35 +00:00
Chris Danford c67d78d948 let Actor subclasses have first crack at parsing commands
allow Models and BitmapTexts in BGAnimationLayer (detected through file extension)
add RageModelVertex, which doesn't have a color property
add "stretch" file name hint for textures
2003-07-07 01:29:18 +00:00