Skip to main content

MainMenuState

Kindclass
Packagestates
Full namestates.MainMenuState
Sourcesource/states/MainMenuState.hx
ExtendsMusicBeatState

Public fields​

NameTypeStaticDefaultNotes
gitCommitStringyesHaxeCommit.getGitCommitHash()final
phoenixEngineVersionStringyes—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.
psychEngineJSVersionStringyes'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.
psychEngineVersionStringyes'0.6.3'—
curSelectedIntyes0—

Public methods​

onResize​

override function onResize(width:Int, height:Int):Void

Only compiled when #if MODS_ALLOWED 'mods', #end + #if ACHIEVEMENTS_ALLOWED 'awards', #end.

ParameterTypeDefault
widthInt—
heightInt—

View source

Internals​

Private / internal members
FieldTypeStatic
menuItemsFlxTypedGroup<FlxSprite>no
camGameFlxCamerano
camAchievementFlxCamerano
menuOptionsArray<String>no
magentaFlxSpriteno
menuBackgroundFlxSpriteno
versionLabelsArray<FlxText>no
layoutWidthIntno
camFollowFlxObjectno
camFollowPosFlxObjectno
debugKeysArray<FlxKey>no
tipTextMarginFloatno
tipTextScrollingBoolno
tipBackgroundFlxSpriteno
tipTextFlxTextno
tipTimerFlxTimerno
isTweeningBoolno
lastStringStringno
tipsArrayArray<String>no
canDoTipsBoolno
funnycatpersonFlxSpriteno
selectedSomethinBoolno
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)