diff --git a/assets/preload/data/weekNames.txt b/assets/preload/data/weekNames.txt new file mode 100644 index 0000000..09b7036 --- /dev/null +++ b/assets/preload/data/weekNames.txt @@ -0,0 +1,7 @@ +Tutorial +Daddy Dearest +Spooky Month +PICO +MOMMY MUST MURDER +RED SNOW +Hating Simulator ft. Moawling \ No newline at end of file diff --git a/docs/guides/weeks.md b/docs/guides/weeks.md index 90b89ca..3dfd29d 100644 --- a/docs/guides/weeks.md +++ b/docs/guides/weeks.md @@ -103,32 +103,21 @@ var weekCharacters:Array = [ ### Step 4. Week Names -Underneath the song list, there should be another array called `weekNames`. Creating a new line in that array, just enter a string that represents what you want the week to be called. +In `assets/preload/data`, there should be a .txt file called `weekNames`. Creating a new line in that file, just enter a string that represents what you want the week to be called. Example --- --- -```haxe -var weekNames:Array = [ - - "How to Funk", - - "Daddy dearest", - - "Spooky Month", - - "PICO", - - "Mommy Must Murder", - - "Red Snow", - - "Hating Simulator ft. Moawlings", - - "Tankman" - -]; +``` +Tutorial +Daddy Dearest +Spooky Month +PICO +MOMMY MUST MURDER +RED SNOW +Hating Simulator ft. Moawling +TANKMAN ``` --- @@ -137,7 +126,7 @@ var weekNames:Array = [ ### Step 5. Graphics -Displaying a week icon for your custom week is as simple as dropping a .png into `assets/images/storymenu`. Rename the file to `week7.png`, `week8.png`, etc. +Displaying a week icon for your custom week is as simple as dropping a .png into `assets/preload/images/storymenu`. Rename the file to `week7.png`, `week8.png`, etc. Example --- diff --git a/source/StoryMenuState.hx b/source/StoryMenuState.hx index 443b8e0..254c5c6 100644 --- a/source/StoryMenuState.hx +++ b/source/StoryMenuState.hx @@ -46,15 +46,7 @@ class StoryMenuState extends MusicBeatState ['senpai', 'bf', 'gf'] ]; - var weekNames:Array = [ - "", - "Daddy Dearest", - "Spooky Month", - "PICO", - "MOMMY MUST MURDER", - "RED SNOW", - "Hating Simulator ft. Moawling" - ]; + var weekNames:Array = CoolUtil.coolTextFile(Paths.txt('weekNames')); var txtWeekTitle:FlxText;