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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -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) {
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user