mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-27 01:03:35 +00:00
cool heads
This commit is contained in:
parent
a041da2012
commit
88b52ab548
|
@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
- Q and E changes sustain lengths in note editor
|
- Q and E changes sustain lengths in note editor
|
||||||
- Other charting editor workflow improvements
|
- Other charting editor workflow improvements
|
||||||
- More hair physics
|
- More hair physics
|
||||||
|
- Heads appear at top of chart editor to help show which side ur charting for
|
||||||
### Removed
|
### Removed
|
||||||
- Removed APE
|
- Removed APE
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
@ -79,6 +79,9 @@ class ChartingState extends MusicBeatState
|
||||||
|
|
||||||
var vocals:FlxSound;
|
var vocals:FlxSound;
|
||||||
|
|
||||||
|
var leftIcon:HealthIcon;
|
||||||
|
var rightIcon:HealthIcon;
|
||||||
|
|
||||||
override function create()
|
override function create()
|
||||||
{
|
{
|
||||||
curSection = lastSection;
|
curSection = lastSection;
|
||||||
|
@ -86,6 +89,20 @@ class ChartingState extends MusicBeatState
|
||||||
gridBG = FlxGridOverlay.create(GRID_SIZE, GRID_SIZE, GRID_SIZE * 8, GRID_SIZE * 16);
|
gridBG = FlxGridOverlay.create(GRID_SIZE, GRID_SIZE, GRID_SIZE * 8, GRID_SIZE * 16);
|
||||||
add(gridBG);
|
add(gridBG);
|
||||||
|
|
||||||
|
leftIcon = new HealthIcon('bf');
|
||||||
|
rightIcon = new HealthIcon('dad');
|
||||||
|
leftIcon.scrollFactor.set(1, 1);
|
||||||
|
rightIcon.scrollFactor.set(1, 1);
|
||||||
|
|
||||||
|
leftIcon.setGraphicSize(0, 45);
|
||||||
|
rightIcon.setGraphicSize(0, 45);
|
||||||
|
|
||||||
|
add(leftIcon);
|
||||||
|
add(rightIcon);
|
||||||
|
|
||||||
|
leftIcon.setPosition(0, -100);
|
||||||
|
rightIcon.setPosition(gridBG.width / 2, -100);
|
||||||
|
|
||||||
var gridBlackLine:FlxSprite = new FlxSprite(gridBG.x + gridBG.width / 2).makeGraphic(2, Std.int(gridBG.height), FlxColor.BLACK);
|
var gridBlackLine:FlxSprite = new FlxSprite(gridBG.x + gridBG.width / 2).makeGraphic(2, Std.int(gridBG.height), FlxColor.BLACK);
|
||||||
add(gridBlackLine);
|
add(gridBlackLine);
|
||||||
|
|
||||||
|
@ -388,6 +405,9 @@ class ChartingState extends MusicBeatState
|
||||||
{
|
{
|
||||||
case 'Must hit section':
|
case 'Must hit section':
|
||||||
_song.notes[curSection].mustHitSection = check.checked;
|
_song.notes[curSection].mustHitSection = check.checked;
|
||||||
|
|
||||||
|
updateHeads();
|
||||||
|
|
||||||
case 'Change BPM':
|
case 'Change BPM':
|
||||||
_song.notes[curSection].changeBPM = check.checked;
|
_song.notes[curSection].changeBPM = check.checked;
|
||||||
FlxG.log.add('changed bpm shit');
|
FlxG.log.add('changed bpm shit');
|
||||||
|
@ -758,6 +778,22 @@ class ChartingState extends MusicBeatState
|
||||||
check_altAnim.checked = sec.altAnim;
|
check_altAnim.checked = sec.altAnim;
|
||||||
check_changeBPM.checked = sec.changeBPM;
|
check_changeBPM.checked = sec.changeBPM;
|
||||||
stepperSectionBPM.value = sec.bpm;
|
stepperSectionBPM.value = sec.bpm;
|
||||||
|
|
||||||
|
updateHeads();
|
||||||
|
}
|
||||||
|
|
||||||
|
function updateHeads():Void
|
||||||
|
{
|
||||||
|
if (check_mustHitSection.checked)
|
||||||
|
{
|
||||||
|
leftIcon.animation.play('bf');
|
||||||
|
rightIcon.animation.play('dad');
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
leftIcon.animation.play('dad');
|
||||||
|
rightIcon.animation.play('bf');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateNoteUI():Void
|
function updateNoteUI():Void
|
||||||
|
|
|
@ -113,6 +113,10 @@ class TitleState extends MusicBeatState
|
||||||
transIn = FlxTransitionableState.defaultTransIn;
|
transIn = FlxTransitionableState.defaultTransIn;
|
||||||
transOut = FlxTransitionableState.defaultTransOut;
|
transOut = FlxTransitionableState.defaultTransOut;
|
||||||
|
|
||||||
|
// HAD TO MODIFY SOME BACKEND SHIT
|
||||||
|
// IF THIS PR IS HERE IF ITS ACCEPTED UR GOOD TO GO
|
||||||
|
// https://github.com/HaxeFlixel/flixel-addons/pull/348
|
||||||
|
|
||||||
// var music:FlxSound = new FlxSound();
|
// var music:FlxSound = new FlxSound();
|
||||||
// music.loadStream('assets/music/freakyMenu' + TitleState.soundExt);
|
// music.loadStream('assets/music/freakyMenu' + TitleState.soundExt);
|
||||||
// FlxG.sound.list.add(music);
|
// FlxG.sound.list.add(music);
|
||||||
|
|
Loading…
Reference in a new issue