AchievementsMenuState
| Kind | class |
| Package | states |
| Full name | states.AchievementsMenuState |
| Source | source/states/AchievementsMenuState.hx |
| Extends | MusicBeatState |
| Compiled when | #if ACHIEVEMENTS_ALLOWED |
Public fields
| Name | Type | Static | Default | Notes |
|---|---|---|---|---|
curSelected | Int | no | 0 | #if ACHIEVEMENTS_ALLOWED |
options | Array<Dynamic> | no | [] | #if ACHIEVEMENTS_ALLOWED |
grpOptions | FlxSpriteGroup | no | — | #if ACHIEVEMENTS_ALLOWED |
nameText | FlxText | no | — | #if ACHIEVEMENTS_ALLOWED |
descText | FlxText | no | — | #if ACHIEVEMENTS_ALLOWED |
progressTxt | FlxText | no | — | #if ACHIEVEMENTS_ALLOWED |
progressBar | FlxBar | no | — | #if ACHIEVEMENTS_ALLOWED |
progressValue | Float | no | 0 | #if ACHIEVEMENTS_ALLOWED |
barTween | FlxTween | no | null | #if ACHIEVEMENTS_ALLOWED + #if MODS_ALLOWED Mods.currentModDirectory = option.mod; #end + #if MODS_ALLOWED Mods.loadTopMod(); #end |
Public methods
onResize
override function onResize(width:Int, height:Int):Void
Only compiled when #if ACHIEVEMENTS_ALLOWED.
| Parameter | Type | Default |
|---|---|---|
width | Int | — |
height | Int | — |
sortByID
static function sortByID(Obj1:Dynamic, Obj2:Dynamic):Int
Only compiled when #if ACHIEVEMENTS_ALLOWED + #if MODS_ALLOWED Mods.currentModDirectory = option.mod; #end + #if MODS_ALLOWED Mods.loadTopMod(); #end.
| Parameter | Type | Default |
|---|---|---|
Obj1 | Dynamic | — |
Obj2 | Dynamic | — |
Internals
Private / internal members
| Field | Type | Static |
|---|---|---|
progressBarBG | AttachedSprite | no |
camFollow | FlxObject | no |
menuBackground | FlxSprite | no |
achievementsBox | FlxSprite | no |
detailsBox | FlxSprite | no |
layoutWidth | Int | no |
MAX_PER_ROW | Int | no |
goingBack | Bool | no |
| Method |
|---|
override function create() |
override function closeSubState() |
function makeAchievement(achievement:String, data:Achievement, unlocked:Bool, mod:String = null) |
override function update(elapsed:Float) |
function _changeSelection() |