-- ASSETS barCnt = 15 beatMarkerCnt = 20 iconCnt = 15 -- Beat Markers for i = 0, beatMarkerCnt-1 do layoutName = "BeatMarkerLayout" .. i LYTLayout.Setup{ name = layoutName, archiveName = "OSD/OSD_RA_stave_dot.arc", layoutName = "OSD_RA_stave_dot.brlyt" } LYTPane.Setup{ name = "BeatMarkerRootPane" .. i, paneName = "targetPosAdjust", layoutCmp = layoutName } LYTPane.Setup{ name = "BeatMarkerColourPane" .. i, paneName = "staveDot", layoutCmp = layoutName } LYTAnimation.Setup{ name = "BeatMarkerFadeInAnim"..i, animName = "OSD_RA_stave_dot_dot_fadeIn.brlan", paneCmp = "BeatMarkerRootPane" .. i, layoutCmp = layoutName } LYTAnimation.Setup{ name = "BeatMarkerFadeOutAnim"..i, animName = "OSD_RA_stave_dot_dot_fadeOut.brlan", paneCmp = "BeatMarkerRootPane" .. i, layoutCmp = layoutName } end -- Gates layoutName = "GateLayout" LYTLayout.Setup{ name = layoutName, archiveName = "OSD/OSD_RA_gate.arc", layoutName = "OSD_RA_gate.brlyt" } LYTPane.Setup{ name = "GateRootPane", paneName = "targetPosAdjust", layoutCmp = layoutName } LYTPane.Setup{ name = "GateAnimMasterPane", paneName = "animMaster", layoutCmp = layoutName } LYTPane.Setup{ name = "GateBeatAnimMasterPane", paneName = "beatAnimMaster", layoutCmp = layoutName } LYTPane.Setup{ name = "GatePulsePane", paneName = "gatePulse", layoutCmp = layoutName } LYTPane.Setup{ name = "GateColourPane", paneName = "gate", layoutCmp = layoutName } LYTAnimation.Setup{ name = "GatePulseInAnim", animName = "OSD_RA_gate_gatePulse_fadeIn.brlan", paneCmp = "GatePulsePane", recurse = false, layoutCmp = layoutName } LYTAnimation.Setup{ name = "GatePulseOutAnim", animName = "OSD_RA_gate_gatePulse_fadeOut.brlan", paneCmp = "GatePulsePane", recurse = false, layoutCmp = layoutName } LYTAnimation.Setup{ name = "GateEnterAnim", animName = "OSD_RA_gate_gateEnter.brlan", paneCmp = "GateAnimMasterPane", layoutCmp = layoutName } LYTAnimation.Setup{ name = "GateLeaveAnim", animName = "OSD_RA_gate_gateLeave.brlan", paneCmp = "GateAnimMasterPane", layoutCmp = layoutName } LYTAnimation.Setup{ name = "GateFadeInAnim", animName = "OSD_RA_gate_gate_fadeIn.brlan", paneCmp = "GateAnimMasterPane", layoutCmp = layoutName } LYTAnimation.Setup{ name = "GateFadeOutAnim", animName = "OSD_RA_gate_gate_fadeOut.brlan", paneCmp = "GateAnimMasterPane", layoutCmp = layoutName } LYTAnimation.Setup{ name = "GateBeatAnim", animName = "OSD_RA_gate_gate_beat.brlan", paneCmp = "GateBeatAnimMasterPane", recurse = false, layoutCmp = layoutName } layoutName = "GateTopLayout" LYTLayout.Setup{ name = layoutName, archiveName = "OSD/OSD_RA_gate_split.arc", layoutName = "OSD_RA_gate_split.brlyt" } LYTPane.Setup{ name = "GateSplitRootPane", paneName = "targetPosAdjust", layoutCmp = layoutName } LYTPane.Setup{ name = "GateSplitAnimMasterPane", paneName = "animMaster", layoutCmp = layoutName } LYTPane.Setup{ name = "GateSplitBeatAnimMasterPane", paneName = "beatAnimMaster", layoutCmp = layoutName } LYTPane.Setup{ name = "GateSplitPulseTopPane", paneName = "gatePulse_top", layoutCmp = layoutName } LYTPane.Setup{ name = "GateSplitPulseBottomPane", paneName = "gatePulse_bottom", layoutCmp = layoutName } LYTPane.Setup{ name = "GateSplitColourTopPane", paneName = "gate_top", layoutCmp = layoutName } LYTPane.Setup{ name = "GateSplitColourBottomPane", paneName = "gate_bottom", layoutCmp = layoutName } LYTAnimation.Setup{ name = "GateSplitPulseInTopAnim", animName = "OSD_RA_gate_split_gateSplit_topPulse_fadeIn.brlan", paneCmp = "GateSplitPulseTopPane", recurse = false, layoutCmp = layoutName } LYTAnimation.Setup{ name = "GateSplitPulseOutTopAnim", animName = "OSD_RA_gate_split_gateSplit_topPulse_fadeOut.brlan", paneCmp = "GateSplitPulseTopPane", recurse = false, layoutCmp = layoutName } LYTAnimation.Setup{ name = "GateSplitPulseInBottomAnim", animName = "OSD_RA_gate_split_gateSplit_bottomPulse_fadeIn.brlan", paneCmp = "GateSplitPulseBottomPane", recurse = false, layoutCmp = layoutName } LYTAnimation.Setup{ name = "GateSplitPulseOutBottomAnim", animName = "OSD_RA_gate_split_gateSplit_bottomPulse_fadeOut.brlan", paneCmp = "GateSplitPulseBottomPane", recurse = false, layoutCmp = layoutName } LYTAnimation.Setup{ name = "GateSplitEnterAnim", animName = "OSD_RA_gate_split_gateEnter.brlan", paneCmp = "GateSplitAnimMasterPane", layoutCmp = layoutName } LYTAnimation.Setup{ name = "GateSplitLeaveAnim", animName = "OSD_RA_gate_split_gateLeave.brlan", paneCmp = "GateSplitAnimMasterPane", layoutCmp = layoutName } LYTAnimation.Setup{ name = "GateSplitFadeInAnim", animName = "OSD_RA_gate_split_gate_fadeIn.brlan", paneCmp = "GateSplitAnimMasterPane", layoutCmp = layoutName } LYTAnimation.Setup{ name = "GateSplitFadeOutAnim", animName = "OSD_RA_gate_split_gate_fadeOut.brlan", paneCmp = "GateSplitAnimMasterPane", layoutCmp = layoutName } LYTAnimation.Setup{ name = "GateSplitBeatAnim", animName = "OSD_RA_gate_split_gate_beat.brlan", paneCmp = "GateSplitBeatAnimMasterPane", recurse = false, layoutCmp = layoutName } -- Particles ParticleEffect.Setup{ name = "GateHitEffect", effectName = "OSD_RA_gateEffect_p1_sparkle", breffPath = "OSD/Effects/OSD_RA_gateSparkle.breff", breftPath = "OSD/Effects/OSD_RA_gateSparkle.breft", orthographic = true } ParticleEffect.Setup{ name = "GateHitContinuousEffect", effectName = "OSD_RA_gateCEffect_p1_sparkle", breffPath = "OSD/Effects/OSD_RA_gateSparkle_continuous.breff", breftPath = "OSD/Effects/OSD_RA_gateSparkle_continuous.breft", orthographic = true } ParticleEffect.Setup{ name = "GateSplitHitTopEffect", effectName = "OSD_RA_gateTopEffect_p1_sparkle", breffPath = "OSD/Effects/OSD_RA_gateTop_sparkle.breff", breftPath = "OSD/Effects/OSD_RA_gateTop_sparkle.breft", orthographic = true } ParticleEffect.Setup{ name = "GateSplitHitBottomEffect", effectName = "OSD_RA_gateTopEffect_p2_sparkle", breffPath = "OSD/Effects/OSD_RA_gateTop_sparkle.breff", breftPath = "OSD/Effects/OSD_RA_gateTop_sparkle.breft", orthographic = true } ParticleEffect.Setup{ name = "GateSplitContinuousHitTopEffect", effectName = "OSD_RA_gateTopCEffect_p1_sparkle", breffPath = "OSD/Effects/OSD_RA_gateTop_sparkleContinuous.breff", breftPath = "OSD/Effects/OSD_RA_gateTop_sparkleContinuous.breft", orthographic = true } ParticleEffect.Setup{ name = "GateSplitContinuousHitBottomEffect", effectName = "OSD_RA_gateTopCEffect_p2_sparkle", breffPath = "OSD/Effects/OSD_RA_gateTop_sparkleContinuous.breff", breftPath = "OSD/Effects/OSD_RA_gateTop_sparkleContinuous.breft", orthographic = true } -- Bars for i = 0, barCnt-1 do layoutName = "BarLayout" .. i LYTLayout.Setup{ name = layoutName, archiveName = "OSD/OSD_RA_bar.arc", layoutName = "OSD_RA_bar.brlyt", additionalFonts="GlobalFontPack" } LYTPane.Setup{ name = "BarRootPane" .. i, paneName = "targetPosAdjust", layoutCmp = layoutName } LYTPane.Setup{ name = "BarAnimMasterPane" .. i, paneName = "animMaster", layoutCmp = layoutName } LYTPane.Setup{ name = "BarTextRootPane" .. i, paneName = "bar_text", layoutCmp = layoutName } LYTPane.Setup{ name = "BarTopLeftPane" .. i, paneName = "topLeft", layoutCmp = layoutName } LYTPane.Setup{ name = "BarTopMiddlePane" .. i, paneName = "topMiddle", layoutCmp = layoutName } LYTPane.Setup{ name = "BarTopRightPane" .. i, paneName = "topRight", layoutCmp = layoutName } LYTPane.Setup{ name = "BarBottomLeftPane" .. i, paneName = "bottomLeft", layoutCmp = layoutName } LYTPane.Setup{ name = "BarBottomMiddlePane" .. i, paneName = "bottomMiddle", layoutCmp = layoutName } LYTPane.Setup{ name = "BarBottomRightPane" .. i, paneName = "bottomRight", layoutCmp = layoutName } LYTTextPane.Setup{ name = "BarLabelTextPane" .. i, paneName = "bar_textFill", outlinePaneName = "bar_textStroke", layoutCmp = layoutName } LYTAnimation.Setup{ name = "BarHitAnim" .. i, animName = "OSD_RA_bar_bar_intoGate.brlan", paneCmp = "BarAnimMasterPane" .. i, recurse = false, layoutCmp = layoutName } LYTAnimation.Setup{ name = "BarMissAnim" .. i, animName = "OSD_RA_bar_bar_missedGate.brlan", paneCmp = "BarAnimMasterPane" .. i, recurse = false, layoutCmp = layoutName } LYTAnimation.Setup{ name = "BarLabelFadeInAnim" .. i, animName = "OSD_RA_bar_text_fadeIn.brlan", paneCmp = "BarTextRootPane" .. i, recurse = false, layoutCmp = layoutName } LYTAnimation.Setup{ name = "BarLabelFadeOutAnim" .. i, animName = "OSD_RA_bar_text_fadeOut.brlan", paneCmp = "BarTextRootPane" .. i, recurse = false, layoutCmp = layoutName } end -- Icon for i = 0, iconCnt-1 do layoutName = "IconLayout" .. i LYTLayout.Setup{ name = layoutName, archiveName = "OSD/OSD_RA_iconography.arc", layoutName = "OSD_RA_iconography.brlyt" } LYTPane.Setup{ name = "IconRootPane" .. i, paneName = "targetPosAdjust", layoutCmp = layoutName } LYTPane.Setup{ name = "IconUpPane" .. i, paneName = "arrowUp", layoutCmp = layoutName } LYTPane.Setup{ name = "IconRightPane" .. i, paneName = "arrowRight", layoutCmp = layoutName } LYTPane.Setup{ name = "IconDownPane" .. i, paneName = "arrowDown", layoutCmp = layoutName } LYTPane.Setup{ name = "IconLeftPane" .. i, paneName = "arrowLeft", layoutCmp = layoutName } LYTPane.Setup{ name = "IconAPane" .. i, paneName = "buttonA", layoutCmp = layoutName } LYTPane.Setup{ name = "IconABPane" .. i, paneName = "buttonAB", layoutCmp = layoutName } LYTPane.Setup{ name = "IconBPane" .. i, paneName = "buttonB", layoutCmp = layoutName } LYTAnimation.Setup{ name = "IconHitAnim" .. i, animName = "OSD_RA_iconography_icons_intoGate.brlan", paneCmp = "IconRootPane" .. i, layoutCmp = layoutName } LYTAnimation.Setup{ name = "IconMissAnim" .. i, animName = "OSD_RA_iconography_icons_missedGate.brlan", paneCmp = "IconRootPane" .. i, layoutCmp = layoutName } end -- SCRIPTS Csi.BeginScript( "ShowMemoriseText" ) FrameController.Play{ name="TextMemoriseShowAnim", loopCount=-1, speed=1, offset=0 } Component.SetRender{ name="TextMemorisePane", enabled=true } Csi.EndScript() Csi.BeginScript( "ShowRepeatText" ) FrameController.Play{ name="TextRepeatShowAnim", loopCount=-1, speed=1, offset=0 } Component.SetRender{ name="TextRepeatPane", enabled=true } Csi.EndScript() Csi.BeginScript( "HideMemoriseText" ) FrameController.Stop{ name="TextMemoriseShowAnim" } Component.SetRender{ name="TextMemorisePane", enabled=false } Csi.EndScript() Csi.BeginScript( "HideRepeatText" ) FrameController.Stop{ name="TextRepeatShowAnim" } Component.SetRender{ name="TextRepeatPane", enabled=false } Csi.EndScript()