added labels in the Sections tab

also put " Data" at the end of literally every tab because ???
This commit is contained in:
Prokube 2021-05-04 07:48:29 -07:00 committed by GitHub
parent e434c9c504
commit d450176249
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -162,8 +162,8 @@ class ChartingState extends MusicBeatState
add(dummyArrow); add(dummyArrow);
var tabs = [ var tabs = [
{name: "Song", label: 'Song'}, {name: "Song", label: 'Song Data'},
{name: "Section", label: 'Section'}, {name: "Section", label: 'Section Data'},
{name: "Note", label: 'Note Data'}, {name: "Note", label: 'Note Data'},
{name: "Assets", label: 'Assets'} {name: "Assets", label: 'Assets'}
]; ];
@ -348,20 +348,23 @@ class ChartingState extends MusicBeatState
stepperLength.value = _song.notes[curSection].lengthInSteps; stepperLength.value = _song.notes[curSection].lengthInSteps;
stepperLength.name = "section_length"; stepperLength.name = "section_length";
var stepperLengthLabel = new FlxText(74,10,'Section Length (in steps)');
stepperSectionBPM = new FlxUINumericStepper(10, 80, 1, Conductor.bpm, 0, 999, 0); stepperSectionBPM = new FlxUINumericStepper(10, 80, 1, Conductor.bpm, 0, 999, 0);
stepperSectionBPM.value = Conductor.bpm; stepperSectionBPM.value = Conductor.bpm;
stepperSectionBPM.name = 'section_bpm'; stepperSectionBPM.name = 'section_bpm';
var stepperCopy:FlxUINumericStepper = new FlxUINumericStepper(110, 130, 1, 1, -999, 999, 0); var stepperCopy:FlxUINumericStepper = new FlxUINumericStepper(110, 132, 1, 1, -999, 999, 0);
var stepperCopyLabel = new FlxText(174,132,'sections back');
var copyButton:FlxButton = new FlxButton(10, 130, "Copy last section", function() var copyButton:FlxButton = new FlxButton(10, 130, "Copy last section", function()
{ {
copySection(Std.int(stepperCopy.value)); copySection(Std.int(stepperCopy.value));
}); });
var clearSectionButton:FlxButton = new FlxButton(10, 150, "Clear", clearSection); var clearSectionButton:FlxButton = new FlxButton(10, 150, "Clear Section", clearSection);
var swapSection:FlxButton = new FlxButton(10, 170, "Swap section", function() var swapSection:FlxButton = new FlxButton(10, 170, "Swap Section", function()
{ {
for (i in 0..._song.notes[curSection].sectionNotes.length) for (i in 0..._song.notes[curSection].sectionNotes.length)
{ {
@ -371,21 +374,22 @@ class ChartingState extends MusicBeatState
updateGrid(); updateGrid();
} }
}); });
check_mustHitSection = new FlxUICheckBox(10, 30, null, null, "Camera Points to P1?", 100);
check_mustHitSection = new FlxUICheckBox(10, 30, null, null, "Must hit section", 100);
check_mustHitSection.name = 'check_mustHit'; check_mustHitSection.name = 'check_mustHit';
check_mustHitSection.checked = true; check_mustHitSection.checked = true;
// _song.needsVoices = check_mustHit.checked; // _song.needsVoices = check_mustHit.checked;
check_altAnim = new FlxUICheckBox(10, 400, null, null, "Alt Animation", 100); check_altAnim = new FlxUICheckBox(10, 400, null, null, "Alternate Animation", 100);
check_altAnim.name = 'check_altAnim'; check_altAnim.name = 'check_altAnim';
check_changeBPM = new FlxUICheckBox(10, 60, null, null, 'Change BPM', 100); check_changeBPM = new FlxUICheckBox(10, 60, null, null, 'Change BPM', 100);
check_changeBPM.name = 'check_changeBPM'; check_changeBPM.name = 'check_changeBPM';
tab_group_section.add(stepperLength); tab_group_section.add(stepperLength);
tab_group_section.add(stepperLengthLabel);
tab_group_section.add(stepperSectionBPM); tab_group_section.add(stepperSectionBPM);
tab_group_section.add(stepperCopy); tab_group_section.add(stepperCopy);
tab_group_section.add(stepperCopyLabel);
tab_group_section.add(check_mustHitSection); tab_group_section.add(check_mustHitSection);
tab_group_section.add(check_altAnim); tab_group_section.add(check_altAnim);
tab_group_section.add(check_changeBPM); tab_group_section.add(check_changeBPM);