w
This commit is contained in:
@@ -87,6 +87,7 @@ class UIDropDown extends UISliceSprite {
|
||||
}
|
||||
|
||||
public function openContextMenu() {
|
||||
FlxG.sound.play(Paths.sound(Flags.DEFAULT_EDITOR_DROPDOWNAPPEAR_SOUND));
|
||||
var screenPos = getScreenPosition(null, __lastDrawCameras[0] == null ? FlxG.camera : __lastDrawCameras[0]);
|
||||
curMenu = UIState.state.openContextMenu([
|
||||
for(k=>o in items) {
|
||||
|
||||
@@ -147,6 +147,7 @@ class UIState extends MusicBeatState {
|
||||
}
|
||||
|
||||
public function closeCurrentContextMenu() {
|
||||
FlxG.sound.play(Paths.sound(Flags.DEFAULT_EDITOR_WINDOWCLOSE_SOUND));
|
||||
if(curContextMenu != null) {
|
||||
curContextMenu.close();
|
||||
curContextMenu = null;
|
||||
|
||||
@@ -86,6 +86,7 @@ class UISubstateWindow extends MusicBeatSubstate {
|
||||
}
|
||||
|
||||
public override function destroy() {
|
||||
FlxG.sound.play(Paths.sound(Flags.DEFAULT_EDITOR_WINDOWCLOSE_SOUND));
|
||||
super.destroy();
|
||||
for(e in camShaders)
|
||||
e.removeShader(blurShader);
|
||||
|
||||
Reference in New Issue
Block a user