AchievementPopup
| Kind | class |
| Package | objects |
| Full name | objects.AchievementPopup |
| Source | source/objects/AchievementPopup.hx |
| Extends | openfl.display.Sprite |
| Compiled when | #if ACHIEVEMENTS_ALLOWED |
Public fields
| Name | Type | Static | Default | Notes |
|---|---|---|---|---|
onFinish | Void->Void = null | no | — | #if ACHIEVEMENTS_ALLOWED |
intendedY | Float | no | 0 | #if ACHIEVEMENTS_ALLOWED |
Public methods
new (constructor)
function new(achieve:String, onFinish:Void->Void)
Only compiled when #if ACHIEVEMENTS_ALLOWED.
| Parameter | Type | Default |
|---|---|---|
achieve | String | — |
onFinish | Void->Void | — |
destroy
function destroy()
Only compiled when #if ACHIEVEMENTS_ALLOWED.
Internals
Private / internal members
| Field | Type | Static |
|---|---|---|
alphaTween | FlxTween | no |
lastScale | Float | no |
bitmaps | Array<BitmapData> | no |
lerpTime | Float | no |
countedTime | Float | no |
timePassed | Float | no |
| Method |
|---|
function drawTextAt(text:FlxText, str:String, textX:Float, textY:Float) |
function update(e:Event) |
function onResize(e:Event) |
function deleteClonedBitmaps() |