Merge pull request #970 from ActualMandM/kade-weekNames
move week names to file
This commit is contained in:
commit
9f741c0669
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
|
@ -109,32 +109,21 @@ var weekCharacters:Array<Dynamic> = [
|
||||
|
||||
### 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<String> = [
|
||||
|
||||
"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
|
||||
```
|
||||
|
||||
---
|
||||
@ -143,7 +132,7 @@ var weekNames:Array<String> = [
|
||||
|
||||
### 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
|
||||
---
|
||||
|
@ -50,15 +50,7 @@ class StoryMenuState extends MusicBeatState
|
||||
['senpai', 'bf', 'gf']
|
||||
];
|
||||
|
||||
var weekNames:Array<String> = [
|
||||
"",
|
||||
"Daddy Dearest",
|
||||
"Spooky Month",
|
||||
"PICO",
|
||||
"MOMMY MUST MURDER",
|
||||
"RED SNOW",
|
||||
"Hating Simulator ft. Moawling"
|
||||
];
|
||||
var weekNames:Array<String> = CoolUtil.coolTextFile(Paths.txt('weekNames'));
|
||||
|
||||
var txtWeekTitle:FlxText;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user