Merge branch 'main' into internal-merge
This commit is contained in:
@@ -203,6 +203,7 @@
|
|||||||
<str id="paste">Paste</str>
|
<str id="paste">Paste</str>
|
||||||
<str id="cut">Cut</str>
|
<str id="cut">Cut</str>
|
||||||
<str id="delete">Delete</str>
|
<str id="delete">Delete</str>
|
||||||
|
<str id="deletestacked">Delete Stacked Notes</str>
|
||||||
</group>
|
</group>
|
||||||
|
|
||||||
<str id="topBar.chart">Chart</str>
|
<str id="topBar.chart">Chart</str>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
<str id="animation">Animación</str>
|
<str id="animation">Animación</str>
|
||||||
<str id="atlas">Atlas</str>
|
<str id="atlas">Atlas</str>
|
||||||
<str id="spritemap">Mapa de sprites</str>
|
<str id="spritemap">Mapa de sprites</str>
|
||||||
|
|
||||||
<str id="directory">Ubicación ({0}/)</str>
|
<str id="directory">Ubicación ({0}/)</str>
|
||||||
<str id="found">{0} {1} Encontrado</str>
|
<str id="found">{0} {1} Encontrado</str>
|
||||||
<str id="foundplural">{0} {1} Encontrados</str>
|
<str id="foundplural">{0} {1} Encontrados</str>
|
||||||
@@ -188,6 +188,7 @@
|
|||||||
<str id="paste">Pegar</str>
|
<str id="paste">Pegar</str>
|
||||||
<str id="cut">Cortar</str>
|
<str id="cut">Cortar</str>
|
||||||
<str id="delete">Eliminar</str>
|
<str id="delete">Eliminar</str>
|
||||||
|
<str id="deletestacked">Eliminar Notas Apiladas</str>
|
||||||
</group>
|
</group>
|
||||||
|
|
||||||
<str id="topBar.chart">Chart</str>
|
<str id="topBar.chart">Chart</str>
|
||||||
|
|||||||
@@ -194,6 +194,7 @@
|
|||||||
<str id="paste">Incolla</str>
|
<str id="paste">Incolla</str>
|
||||||
<str id="cut">Taglia</str>
|
<str id="cut">Taglia</str>
|
||||||
<str id="delete">Elimina</str>
|
<str id="delete">Elimina</str>
|
||||||
|
<str id="deletestacked">Elimina Note Impilate</str>
|
||||||
</group>
|
</group>
|
||||||
|
|
||||||
<str id="topBar.chart">Chart</str>
|
<str id="topBar.chart">Chart</str>
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
<str id="animation">Animacja</str>
|
<str id="animation">Animacja</str>
|
||||||
<str id="atlas">Atlas</str>
|
<str id="atlas">Atlas</str>
|
||||||
<str id="spritemap">Mapa sprite'ów</str>
|
<str id="spritemap">Mapa sprite'ów</str>
|
||||||
|
|
||||||
<str id="directory">Folder ({0}/)</str>
|
<str id="directory">Folder ({0}/)</str>
|
||||||
<str id="found">{0} {1} Znaleziono</str>
|
<str id="found">{0} {1} Znaleziono</str>
|
||||||
<str id="foundplural">{0} {1} Znaleziono</str>
|
<str id="foundplural">{0} {1} Znaleziono</str>
|
||||||
@@ -87,7 +87,7 @@
|
|||||||
<group name="CharterEventScreen" prefix="charterEventScreen.">
|
<group name="CharterEventScreen" prefix="charterEventScreen.">
|
||||||
<str id="title-creating">Stwórz Grupę Wydarzeń</str>
|
<str id="title-creating">Stwórz Grupę Wydarzeń</str>
|
||||||
<str id="title-editing">Edytuj Grupę Wydarzeń</str>
|
<str id="title-editing">Edytuj Grupę Wydarzeń</str>
|
||||||
|
|
||||||
<str id="noEvent">Brak Wydarzenia</str>
|
<str id="noEvent">Brak Wydarzenia</str>
|
||||||
|
|
||||||
<str id="strumLine.format">Struma #{0} ({1})</str>
|
<str id="strumLine.format">Struma #{0} ({1})</str>
|
||||||
@@ -197,6 +197,7 @@
|
|||||||
<str id="paste">Wklej</str>
|
<str id="paste">Wklej</str>
|
||||||
<str id="cut">Wytnij</str>
|
<str id="cut">Wytnij</str>
|
||||||
<str id="delete">Usuń</str>
|
<str id="delete">Usuń</str>
|
||||||
|
<str id="deletestacked">Usuń Notatki Ułożone w Stos</str>
|
||||||
</group>
|
</group>
|
||||||
|
|
||||||
<str id="topBar.chart">Mapa</str>
|
<str id="topBar.chart">Mapa</str>
|
||||||
@@ -223,7 +224,7 @@
|
|||||||
<str id="scrollRight">Przewiń w Prawo</str>
|
<str id="scrollRight">Przewiń w Prawo</str>
|
||||||
<str id="scrollReset">Resetuj Przewinięcie</str>
|
<str id="scrollReset">Resetuj Przewinięcie</str>
|
||||||
</group>
|
</group>
|
||||||
|
|
||||||
<str id="topBar.song">Ścieżka</str>
|
<str id="topBar.song">Ścieżka</str>
|
||||||
<group name="SongMenu" prefix="song.">
|
<group name="SongMenu" prefix="song.">
|
||||||
<str id="goStart">Wróć do początku</str>
|
<str id="goStart">Wróć do początku</str>
|
||||||
|
|||||||
@@ -203,6 +203,7 @@
|
|||||||
<str id="paste">Colar</str>
|
<str id="paste">Colar</str>
|
||||||
<str id="cut">Cortar</str>
|
<str id="cut">Cortar</str>
|
||||||
<str id="delete">Apagar</str>
|
<str id="delete">Apagar</str>
|
||||||
|
<str id="deletestacked">Apagar Notas Empilhadas</str>
|
||||||
</group>
|
</group>
|
||||||
|
|
||||||
<str id="topBar.chart">Mapa</str>
|
<str id="topBar.chart">Mapa</str>
|
||||||
|
|||||||
@@ -232,6 +232,11 @@ class Charter extends UIState {
|
|||||||
label: translate("edit.delete"),
|
label: translate("edit.delete"),
|
||||||
keybind: [DELETE],
|
keybind: [DELETE],
|
||||||
onSelect: _edit_delete
|
onSelect: _edit_delete
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: translate("edit.deletestacked"),
|
||||||
|
keybind: [SHIFT,DELETE],
|
||||||
|
onSelect: _edit_deletestacked
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -459,7 +464,7 @@ class Charter extends UIState {
|
|||||||
rightEventsGroup.eventsRowText = rightEventRowText;
|
rightEventsGroup.eventsRowText = rightEventRowText;
|
||||||
|
|
||||||
// thank you neo for pointing out im stupid -lunar
|
// thank you neo for pointing out im stupid -lunar
|
||||||
// this is future lunar i completely forgot what neo pointed out but hes awesome go follow him on twitter
|
// this is future lunar i completely forgot what neo pointed out but hes awesome go follow him on twitter
|
||||||
|
|
||||||
add(gridBackdropDummy = new CameraHoverDummy(gridBackdrops, FlxPoint.weak(1, 0)));
|
add(gridBackdropDummy = new CameraHoverDummy(gridBackdrops, FlxPoint.weak(1, 0)));
|
||||||
selectionBox = new UISliceSprite(0, 0, 2, 2, 'editors/ui/selection');
|
selectionBox = new UISliceSprite(0, 0, 2, 2, 'editors/ui/selection');
|
||||||
@@ -978,7 +983,7 @@ class Charter extends UIState {
|
|||||||
currentCursor = ARROW;
|
currentCursor = ARROW;
|
||||||
}
|
}
|
||||||
case NONE:
|
case NONE:
|
||||||
if (FlxG.mouse.justPressed)
|
if (FlxG.mouse.justPressed)
|
||||||
FlxG.mouse.getWorldPosition(charterCamera, dragStartPos);
|
FlxG.mouse.getWorldPosition(charterCamera, dragStartPos);
|
||||||
else if (FlxG.mouse.justPressedRight) {
|
else if (FlxG.mouse.justPressedRight) {
|
||||||
closeCurrentContextMenu();
|
closeCurrentContextMenu();
|
||||||
@@ -1719,6 +1724,25 @@ class Charter extends UIState {
|
|||||||
selection = deleteSelection(selection, true);
|
selection = deleteSelection(selection, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function _edit_deletestacked(_) {
|
||||||
|
UIState.playEditorSound(Flags.DEFAULT_EDITOR_DELETE_SOUND);
|
||||||
|
if (notesGroup.members.length == 0) return;
|
||||||
|
var oldNote:CharterNote = null;
|
||||||
|
var selectionArray:Array<Dynamic> = ((selection.length != 0) ? selection : notesGroup.members.copy());
|
||||||
|
var toDelete:Selection = new Selection();
|
||||||
|
for (note in selectionArray) {
|
||||||
|
if (oldNote != null && oldNote.step == note.step && oldNote.strumLineID == note.strumLineID && oldNote.id == note.id) {
|
||||||
|
noteDeleteAnims.deleteNotes.push({note: oldNote, time: noteDeleteAnims.deleteTime});
|
||||||
|
toDelete.push(oldNote);
|
||||||
|
}
|
||||||
|
oldNote = note;
|
||||||
|
}
|
||||||
|
if (toDelete.length != 0) {
|
||||||
|
deleteSelection(toDelete);
|
||||||
|
if (selection.length != 0) for (i in toDelete) selection.remove(i); //crash prevention
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function _undo(undo:CharterChange) {
|
function _undo(undo:CharterChange) {
|
||||||
UIState.playEditorSound(Flags.DEFAULT_EDITOR_UNDO_SOUND);
|
UIState.playEditorSound(Flags.DEFAULT_EDITOR_UNDO_SOUND);
|
||||||
switch(undo) {
|
switch(undo) {
|
||||||
@@ -1955,7 +1979,7 @@ class Charter extends UIState {
|
|||||||
if (PlayState.SONG.bookmarks != null)
|
if (PlayState.SONG.bookmarks != null)
|
||||||
bookmarks = PlayState.SONG.bookmarks;
|
bookmarks = PlayState.SONG.bookmarks;
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
|
|
||||||
return bookmarks;
|
return bookmarks;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1965,9 +1989,9 @@ class Charter extends UIState {
|
|||||||
var currentBookmarks:Array<ChartBookmark> = getBookmarkList();
|
var currentBookmarks:Array<ChartBookmark> = getBookmarkList();
|
||||||
var newBookmarks:Array<ChartBookmark> = getBookmarkList();
|
var newBookmarks:Array<ChartBookmark> = getBookmarkList();
|
||||||
newBookmarks.push({time: daStep, name: name, color: color.toWebString()});
|
newBookmarks.push({time: daStep, name: name, color: color.toWebString()});
|
||||||
|
|
||||||
PlayState.SONG.bookmarks = newBookmarks;
|
PlayState.SONG.bookmarks = newBookmarks;
|
||||||
updateBookmarks();
|
updateBookmarks();
|
||||||
undos.addToUndo(CEditBookmarks(currentBookmarks, newBookmarks));
|
undos.addToUndo(CEditBookmarks(currentBookmarks, newBookmarks));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1992,7 +2016,7 @@ class Charter extends UIState {
|
|||||||
{
|
{
|
||||||
var bars:Array<FlxSprite> = bs[0];
|
var bars:Array<FlxSprite> = bs[0];
|
||||||
var text:UIText = bs[1];
|
var text:UIText = bs[1];
|
||||||
|
|
||||||
if (bars != null) {
|
if (bars != null) {
|
||||||
for (spr in bars) {
|
for (spr in bars) {
|
||||||
if (spr == null) continue;
|
if (spr == null) continue;
|
||||||
@@ -2046,7 +2070,7 @@ class Charter extends UIState {
|
|||||||
0,
|
0,
|
||||||
scrollBar.height
|
scrollBar.height
|
||||||
);
|
);
|
||||||
|
|
||||||
var bookmarkspr = new FlxSprite(scrollBar.x - 10, yPos).makeSolid(40, 4, bookmarkcolor);
|
var bookmarkspr = new FlxSprite(scrollBar.x - 10, yPos).makeSolid(40, 4, bookmarkcolor);
|
||||||
uiGroup.add(bookmarkspr);
|
uiGroup.add(bookmarkspr);
|
||||||
sprites.push(bookmarkspr);
|
sprites.push(bookmarkspr);
|
||||||
@@ -2330,7 +2354,7 @@ class Charter extends UIState {
|
|||||||
icon: this.noteType == 0 ? 1 : 0
|
icon: this.noteType == 0 ? 1 : 0
|
||||||
}];
|
}];
|
||||||
|
|
||||||
final noteKeys:Array<Array<Array<FlxKey>>> = [[[ZERO], [NUMPADZERO]], [[ONE], [NUMPADONE]], [[TWO], [NUMPADTWO]], [[THREE], [NUMPADTHREE]], [[FOUR], [NUMPADFOUR]], [[FIVE], [NUMPADFIVE]],
|
final noteKeys:Array<Array<Array<FlxKey>>> = [[[ZERO], [NUMPADZERO]], [[ONE], [NUMPADONE]], [[TWO], [NUMPADTWO]], [[THREE], [NUMPADTHREE]], [[FOUR], [NUMPADFOUR]], [[FIVE], [NUMPADFIVE]],
|
||||||
[[SIX], [NUMPADSIX]], [[SEVEN], [NUMPADSEVEN]], [[EIGHT], [NUMPADEIGHT]], [[NINE], [NUMPADNINE]]];
|
[[SIX], [NUMPADSIX]], [[SEVEN], [NUMPADSEVEN]], [[EIGHT], [NUMPADEIGHT]], [[NINE], [NUMPADNINE]]];
|
||||||
for (i=>type in noteTypes) {
|
for (i=>type in noteTypes) {
|
||||||
var realNoteID:Int = i+1; // Default Note not stored
|
var realNoteID:Int = i+1; // Default Note not stored
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ final class AlphabetComponent {
|
|||||||
public var cos:Float;
|
public var cos:Float;
|
||||||
public var scaleX:Float;
|
public var scaleX:Float;
|
||||||
public var scaleY:Float;
|
public var scaleY:Float;
|
||||||
|
|
||||||
public var flipX:Bool;
|
public var flipX:Bool;
|
||||||
public var flipY:Bool;
|
public var flipY:Bool;
|
||||||
|
|
||||||
@@ -281,7 +281,7 @@ class Alphabet extends FlxSprite {
|
|||||||
var anim = getLetterAnim(letter, data, __component, i);
|
var anim = getLetterAnim(letter, data, __component, i);
|
||||||
//if (cantrace)
|
//if (cantrace)
|
||||||
//trace(anim.name + " | " + __component.anim + " | " + frames.frames[anim.frames[0]]);
|
//trace(anim.name + " | " + __component.anim + " | " + frames.frames[anim.frames[0]]);
|
||||||
advance = (Math.isNaN(advance)) ? getAdvance(letter, anim, data) : advance;
|
advance = (Math.isNaN(advance) && i >= data.startIndex) ? getAdvance(letter, anim, data) : advance;
|
||||||
|
|
||||||
if (anim == null || __renderData.alpha <= 0.0)
|
if (anim == null || __renderData.alpha <= 0.0)
|
||||||
continue;
|
continue;
|
||||||
@@ -551,7 +551,7 @@ class Alphabet extends FlxSprite {
|
|||||||
angle: angle,
|
angle: angle,
|
||||||
cos: angleCos,
|
cos: angleCos,
|
||||||
sin: angleSin,
|
sin: angleSin,
|
||||||
|
|
||||||
flipX: node.get("flipX") == "true",
|
flipX: node.get("flipX") == "true",
|
||||||
flipY: node.get("flipY") == "true",
|
flipY: node.get("flipY") == "true",
|
||||||
|
|
||||||
@@ -607,7 +607,7 @@ class Alphabet extends FlxSprite {
|
|||||||
angle: angle,
|
angle: angle,
|
||||||
cos: angleCos,
|
cos: angleCos,
|
||||||
sin: angleSin,
|
sin: angleSin,
|
||||||
|
|
||||||
flipX: xFlip,
|
flipX: xFlip,
|
||||||
flipY: yFlip,
|
flipY: yFlip,
|
||||||
|
|
||||||
@@ -630,7 +630,7 @@ class Alphabet extends FlxSprite {
|
|||||||
angle: angle,
|
angle: angle,
|
||||||
cos: angleCos,
|
cos: angleCos,
|
||||||
sin: angleSin,
|
sin: angleSin,
|
||||||
|
|
||||||
flipX: xFlip,
|
flipX: xFlip,
|
||||||
flipY: yFlip,
|
flipY: yFlip,
|
||||||
|
|
||||||
@@ -664,7 +664,7 @@ class Alphabet extends FlxSprite {
|
|||||||
var xScale:Float = Std.parseFloat(node.get("scaleX")).getDefaultFloat(1.0);
|
var xScale:Float = Std.parseFloat(node.get("scaleX")).getDefaultFloat(1.0);
|
||||||
var yScale:Float = Std.parseFloat(node.get("scaleY")).getDefaultFloat(1.0);
|
var yScale:Float = Std.parseFloat(node.get("scaleY")).getDefaultFloat(1.0);
|
||||||
var advance:Float = Std.parseFloat(node.get("advance"));
|
var advance:Float = Std.parseFloat(node.get("advance"));
|
||||||
|
|
||||||
var xFlip = node.get("flipX") == "true";
|
var xFlip = node.get("flipX") == "true";
|
||||||
var yFlip = node.get("flipY") == "true";
|
var yFlip = node.get("flipY") == "true";
|
||||||
|
|
||||||
@@ -685,7 +685,7 @@ class Alphabet extends FlxSprite {
|
|||||||
angle: angle,
|
angle: angle,
|
||||||
cos: angleCos,
|
cos: angleCos,
|
||||||
sin: angleSin,
|
sin: angleSin,
|
||||||
|
|
||||||
flipX: xFlip,
|
flipX: xFlip,
|
||||||
flipY: yFlip,
|
flipY: yFlip,
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user