move week names to file
This commit is contained in:
parent
71573be905
commit
0cb6614f9f
7
assets/preload/data/weekNames.txt
Normal file
7
assets/preload/data/weekNames.txt
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
Tutorial
|
||||||
|
Daddy Dearest
|
||||||
|
Spooky Month
|
||||||
|
PICO
|
||||||
|
MOMMY MUST MURDER
|
||||||
|
RED SNOW
|
||||||
|
Hating Simulator ft. Moawling
|
@ -103,32 +103,21 @@ var weekCharacters:Array<Dynamic> = [
|
|||||||
|
|
||||||
### Step 4. Week Names
|
### 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
|
Example
|
||||||
---
|
---
|
||||||
|
|
||||||
---
|
---
|
||||||
```haxe
|
```
|
||||||
var weekNames:Array<String> = [
|
Tutorial
|
||||||
|
Daddy Dearest
|
||||||
"How to Funk",
|
Spooky Month
|
||||||
|
PICO
|
||||||
"Daddy dearest",
|
MOMMY MUST MURDER
|
||||||
|
RED SNOW
|
||||||
"Spooky Month",
|
Hating Simulator ft. Moawling
|
||||||
|
TANKMAN
|
||||||
"PICO",
|
|
||||||
|
|
||||||
"Mommy Must Murder",
|
|
||||||
|
|
||||||
"Red Snow",
|
|
||||||
|
|
||||||
"Hating Simulator ft. Moawlings",
|
|
||||||
|
|
||||||
"Tankman"
|
|
||||||
|
|
||||||
];
|
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
@ -137,7 +126,7 @@ var weekNames:Array<String> = [
|
|||||||
|
|
||||||
### Step 5. Graphics
|
### 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
|
Example
|
||||||
---
|
---
|
||||||
|
@ -46,15 +46,7 @@ class StoryMenuState extends MusicBeatState
|
|||||||
['senpai', 'bf', 'gf']
|
['senpai', 'bf', 'gf']
|
||||||
];
|
];
|
||||||
|
|
||||||
var weekNames:Array<String> = [
|
var weekNames:Array<String> = CoolUtil.coolTextFile(Paths.txt('weekNames'));
|
||||||
"",
|
|
||||||
"Daddy Dearest",
|
|
||||||
"Spooky Month",
|
|
||||||
"PICO",
|
|
||||||
"MOMMY MUST MURDER",
|
|
||||||
"RED SNOW",
|
|
||||||
"Hating Simulator ft. Moawling"
|
|
||||||
];
|
|
||||||
|
|
||||||
var txtWeekTitle:FlxText;
|
var txtWeekTitle:FlxText;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user