CreditsPopUp
| Kind | class |
| Package | objects |
| Full name | objects.CreditsPopUp |
| Source | source/objects/CreditsPopUp.hx |
| Extends | FlxSpriteGroup |
Public fields
| Name | Type | Static | Default | Notes |
|---|---|---|---|---|
bg | FlxSprite | no | — | — |
bgHeading | FlxSprite | no | — | — |
funnyText | FlxText | no | — | — |
funnyIcon | FlxSprite | no | — | — |
Public methods
new (constructor)
function new(x:Float, y:Float, title:String = '', songCreator:String = '')
| Parameter | Type | Default |
|---|---|---|
x | Float | — |
y | Float | — |
title (optional) | String | '' |
songCreator (optional) | String | '' |
switchHeading
function switchHeading(newHeading:SongHeading)
| Parameter | Type | Default |
|---|---|---|
newHeading | SongHeading | — |
changeText
function changeText(newText:String, newIcon:String, rescaleHeading:Bool = true)
| Parameter | Type | Default |
|---|---|---|
newText | String | — |
newIcon | String | — |
rescaleHeading (optional) | Bool | true |
rescaleIcon
function rescaleIcon()
Internals
Private / internal members
| Field | Type | Static |
|---|---|---|
curHeading | SongHeading | no |
| Method |
|---|
function createHeadingText(text:String) |
function rescaleBG() |