Data Realms Fan Forums http://45.55.195.193/ |
|
Big Banner Control http://45.55.195.193/viewtopic.php?f=73&t=25124 |
Page 1 of 1 |
Author: | TheLastBanana [ Fri Aug 12, 2011 9:24 pm ] |
Post subject: | Big Banner Control |
So, here's some undocumented functionality that you guys might want to play with. It was just added in B25, and the documentation but seems to be having some issues putting it up on the wiki. You can control the huge text banners ("GO!", "WIN", "FAIL"). Here's a little guide for how to do it. First, you need to get the banner itself from the activity that it's attached to by calling Activity:GetBanner. This only seems to work if you have a reference to the script instance of the activity (so, ActivityMan:GetActivity won't work in this case). Here are its arguments:
Next, you need to call GUIBanner:ShowText. These are its arguments:
Lastly, if you set the animation duration to -1, the letters will arrive on-screen and stay there until you call GUIBanner:HideText. Its arguments are:
So, here's an example usage: Code: local banner = self:GetBanner(GUIBanner.RED, Activity.PLAYER_1) banner:ShowText("FREE CRABS!", GUIBanner.FLYBYLEFTWARD, 1000, Vector(FrameMan.PlayerScreenWidth, FrameMan.PlayerScreenHeight), 0.5, 1000, 100); And the result: |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |