MainMenuState
| Kind | class |
| Package | states |
| Full name | states.MainMenuState |
| Source | source/states/MainMenuState.hx |
| Extends | MusicBeatState |
Public fields
| Name | Type | Static | Default | Notes |
|---|---|---|---|---|
gitCommit | String | yes | HaxeCommit.getGitCommitHash() | final |
phoenixEngineVersion | String | yes | — | property (get, never) · Phoenix's own version, derived from the application metadata, which project.hxp sets from its VERSION constant -- the single source of truth (#54). Never hard-code a release string here again; the literal below is only a fallback for the (normally impossible) case where the metadata is unavailable, and tests/test_arena_fixes.py asserts it stays equal to project.hxp's VERSION and to the top of THECHANGELOG.md. |
psychEngineJSVersion | String | yes | '1.51.0' | Upstream JS Engine compatibility marker: the JSE release this fork is based on. This is NOT the Phoenix version and must not be used by the update checker (#53) -- it is kept for Discord RPC / watermark labels that intentionally report the upstream base. |
psychEngineVersion | String | yes | '0.6.3' | — |
curSelected | Int | yes | 0 | — |
Public methods
onResize
override function onResize(width:Int, height:Int):Void
Only compiled when #if MODS_ALLOWED 'mods', #end + #if ACHIEVEMENTS_ALLOWED 'awards', #end.
| Parameter | Type | Default |
|---|---|---|
width | Int | — |
height | Int | — |
Internals
Private / internal members
| Field | Type | Static |
|---|---|---|
menuItems | FlxTypedGroup<FlxSprite> | no |
camGame | FlxCamera | no |
camAchievement | FlxCamera | no |
menuOptions | Array<String> | no |
magenta | FlxSprite | no |
menuBackground | FlxSprite | no |
versionLabels | Array<FlxText> | no |
layoutWidth | Int | no |
camFollow | FlxObject | no |
camFollowPos | FlxObject | no |
debugKeys | Array<FlxKey> | no |
tipTextMargin | Float | no |
tipTextScrolling | Bool | no |
tipBackground | FlxSprite | no |
tipText | FlxText | no |
tipTimer | FlxTimer | no |
isTweening | Bool | no |
lastString | String | no |
tipsArray | Array<String> | no |
canDoTips | Bool | no |
funnycatperson | FlxSprite | no |
selectedSomethin | Bool | no |
| Method |
|---|
static function get_phoenixEngineVersion():String |
override function create() |
function tipTextStartScrolling() |
override function beatHit() |
function changeTipText() |
override function update(elapsed:Float) |
function changeItem(huh:Int = 0) |