[Common]
ColorP1=0.25,0.8125,1,1
ColorP2=1,0.8125,0.125,1
InitialScreen=MASTER_LOADING
WindowTitle=Cave Story (洞窟物語)
DifficultiesToShow=beginner,easy,medium,hard,challenge
CourseDifficultiesToShow=regular,difficult
StepsTypesToHide=dance-couple,dance-solo,lights-cabinet
ScreenWidth=640
ScreenHeight=480

[ScreenWithMenuElements]
# WE DON'T NEED A HEADER AND FOOTER, THOSE ARE SHIT
HeaderOnCommand=hidden,1
FooterOnCommand=hidden,1
LogoOnCommand=hidden,1
HelpOnCommand=hidden,1
SongsOnCommand=hidden,1
TimerOnCommand=hidden,1
ShowScrollBar=0
ShowUnderlines=0
CapitalizeAllOptionNames=0

[ScreenSelectMaster]
DefaultChoice=1
StyleIcon=0
MemoryCardIcons=0
OverrideSleepAfterTweenOffSeconds=1
OverrideLockInputSeconds=1

OptionOrderLeft=4:3,3:2,2:1
OptionOrderRight=1:2,2:3,3:4
OptionOrderAuto=1:2,2:3,3:4
NumIconParts=0
NumCursorParts=0
NumPreviewParts=1
ShowScroller=1
WrapScroller=0
ScrollerFastCatchup=1

PreviewPart1X=SCREEN_CENTER_X-8000
PreviewPart1Y=SCREEN_CENTER_Y+130
PreviewPart2X=SCREEN_CENTER_X-8000
PreviewPart2Y=SCREEN_CENTER_Y+130
PreviewPart3X=SCREEN_CENTER_X-8000
PreviewPart3Y=SCREEN_CENTER_Y+130
PreviewPart4X=SCREEN_CENTER_X-8000
PreviewPart4Y=SCREEN_CENTER_Y+130

ScrollerOffCommand=
ScrollerNumItemsToDraw=15
ScrollGainFocusCommand=zoomz,1.1
ScrollLoseFocusCommand=zoomz,1
NumChoicesOnPage1=4
SharedPreviewAndCursor=1
CursorPart1P1OffsetXFromIcon=0
CursorPart1P1OffsetYFromIcon=0
CursorPart1P2OffsetXFromIcon=0
CursorPart1P2OffsetYFromIcon=0
CursorPart1OnCommand=draworder,1;zoom,0;sleep,.4;linear,.2;zoom,1
CursorPart1ChangeCommand=
PreSwitchPageSeconds=0
PostSwitchPageSeconds=0
DisabledColor=.5,.5,.5,0
ExplanationPage1X=-1000
ExplanationPage1Y=-1000
ExplanationPage1SwitchToPage1Command=
ExplanationPage1SwitchToPage2Command=
ExplanationPage1OnCommand=hidden,1
ExplanationPage1OffCommand=
ExplanationPage2X=-1000
ExplanationPage2Y=-1000
ExplanationPage2SwitchToPage1Command=
ExplanationPage2SwitchToPage2Command=
ExplanationPage2OnCommand=hidden,1
ExplanationPage2OffCommand=
MorePage1X=SCREEN_CENTER_X-180
MorePage1Y=SCREEN_CENTER_Y-100
MorePage1SwitchToPage1Command=
MorePage1SwitchToPage2Command=
MorePage1OnCommand=
MorePage1OffCommand=
MorePage2X=SCREEN_CENTER_X-180
MorePage2Y=SCREEN_CENTER_Y-100
MorePage2SwitchToPage1Command=
MorePage2SwitchToPage2Command=
MorePage2OnCommand=
MorePage2OffCommand=
IdleCommentSeconds=0
IdleTimeoutSeconds=0



[MASTER_NOPRESS]
Fallback=ScreenSelectMaster
Class=ScreenSelectMaster
PrevScreen=ScreenTitleMenu
ChoiceNames=01
Choice01=

[MASTER_LOADING]
Fallback=MASTER_NOPRESS
Class=ScreenSelectMaster
PrevScreen=CaveStory_Intro
ScrollerOnCommand=zoom,0

[CaveStory_Intro]
Fallback=MASTER_NOPRESS
Class=ScreenSelectMaster
PrevScreen=CaveStory_TitleMenu
ScrollerOnCommand=zoom,0

[CaveStory_TitleMenu]
Fallback=ScreenTitleMenu
PrevScreen=CaveStory_Intro
Class=ScreenTitleMenu

ChoiceNames=01,02,03,04
Choice01=stopmusic;screen,CaveStory_StartingAreaSelect
Choice02=stopmusic;screen,CaveStory_Options
Choice03=stopmusic;screen,ScreenExit
Choice04=stopmusic;screen,MASTER_LOADING

[ScreenOptionsMenu]
# In Case ScreenOptionsMenu Takes out back, force it to go to CaveStory_TitleMenu.
NextScreen=CaveStory_TitleMenu
PrevScreen=CaveStory_TitleMenu

[CaveStory_Options]
Fallback=ScreenOptionsMenu
NextScreen=CaveStory_TitleMenu

[ScreenSystemLayer]
CreditsP1X=-SCREEN_WIDTH
CreditsP1Y=-SCREEN_HEIGHT
CreditsP2X=-SCREEN_WIDTH
CreditsP2Y=-SCREEN_HEIGHT

[ScreenTitleMenu]
AllowDisabledPlayerInput=1
MemoryCardIcons=1
IdleTimeoutSeconds=0
IdleTimeoutScreen=ScreenRedirectDemonstration

ChoiceNames=01,02,03
Choice01=stopmusic;screen,CaveStory_StartingAreaSelect
Choice02=stopmusic;screen,CaveStory_Options
Choice03=stopmusic;screen,ScreenExit

ScrollerX=SCREEN_CENTER_X-50
ScrollerY=SCREEN_CENTER_Y+60
ScrollerTransform=function(self,offset,itemIndex,numItems) self:y(32*offset); end

# WE DON'T NEED A HEADER AND FOOTER, THOSE ARE SHIT
HeaderOnCommand=hidden,1
FooterOnCommand=hidden,1
LogoOnCommand=hidden,1
HelpOnCommand=hidden,1
SongsOnCommand=hidden,1
TimerOnCommand=hidden,1
ShowScrollBar=0
ShowUnderlines=0
CapitalizeAllOptionNames=0

[ScreenOptionsMaster]
Insert Credit=1;together;SelectNone
Insert CreditDefault=
Insert Credit,1=screen,ScreenOptionsMenu;InsertCredit;name,Insert Credit

[CaveStory_StartingAreaSelect]
Fallback=ScreenSelectMaster
Class=ScreenSelectMaster
PrevScreen=CaveStory_TitleMenu

ChoiceNames=01,02,03,04,05
Choice01=stopmusic;screen,CaveStory_ArthurHouse
Choice02=stopmusic;screen,CaveStory_Grasstown
Choice03=stopmusic;screen,CaveStory_SandZone
Choice04=stopmusic;screen,CaveStory_Labyrinth
Choice05=stopmusic;screen,CaveStory_Plantation

ScrollerX=SCREEN_CENTER_X-130
ScrollerY=SCREEN_CENTER_Y-60
NumChoicesOnPage1=10
ScrollerTransform=function(self,offset,itemIndex,numItems) self:x(70*offset); end

[CaveStory_ArthurHouse]
Fallback=ScreenSelectMaster
Class=ScreenSelectMaster
PrevScreen=CaveStory_TitleMenu

ChoiceNames=01,02,03,04,05
Choice01=stopmusic;screen,CaveStory_StartingAreaSelect
Choice02=stopmusic;screen,CaveStory_NotAvailable
Choice03=stopmusic;screen,CaveStory_NotAvailable
Choice04=stopmusic;screen,CaveStory_NotAvailable
Choice05=stopmusic;screen,CaveStory_NotAvailable

# Make Scroller freely movable, we need it for the sprite items.
ScrollerX=0
ScrollerY=0
NumChoicesOnPage1=10
ScrollerTransform=function(self,offset,itemIndex,numItems) end

[CaveStory_NotAvailable]
Fallback=MASTER_NOPRESS
Class=ScreenSelectMaster
PrevScreen=CaveStory_Intro
ScrollerOnCommand=zoom,0