This commit is contained in:
lunarcleint
2022-12-30 15:57:37 -07:00
parent 48bad77396
commit 8b6717eeb9
9 changed files with 23 additions and 9 deletions
+4
View File
@@ -107,6 +107,10 @@ class AtlasFrameMaker extends FlxFramesCollection{
//trace(daFramez);
}
if (frameSize != null)
frameSize.put();
return daFramez;
}
+3
View File
@@ -125,6 +125,9 @@ class DesktopMain extends MusicBeatState {
// TODO: switch back while using config
FlxG.resizeGame(1280, 720);
if (screenSize != null)
screenSize.put();
}
public function focusWindow(window:Window) {
@@ -27,6 +27,7 @@ class DropDown extends Button {
}
}], onSelectionChange);
pos.put();
camPos.put();
}
+2
View File
@@ -26,6 +26,8 @@ class MenuBar extends WindowGroup<FlxBasic> {
var camPos = camera != null ? FlxPoint.get(camera.x, camera.y) : FlxPoint.get();
ContextMenu.open(pos.x + camPos.x, pos.y + camPos.y, t.options, function(i) {});
pos.put();
});
b.label.fieldWidth = 0;
@:privateAccess b.label._regen = true;
+3 -9
View File
@@ -146,17 +146,11 @@ class ThemeData implements IFlxDestroyable {
public function new() {}
public function destroy() {
if (margin != null) {
if (margin != null)
margin.put();
margin = null;
}
if (size != null) {
if (size != null)
size.put();
size = null;
}
if (offset != null) {
if (offset != null)
offset.put();
offset = null;
}
}
}
@@ -71,4 +71,9 @@ class WindowDragHitbox extends FlxObject {
}
}
}
override function destroy() {
super.destroy();
offset.put();
}
}
+3
View File
@@ -359,6 +359,9 @@ class Character extends FlxSprite implements IBeatReceiver implements IOffsetCom
public override function destroy() {
super.destroy();
cameraOffset.put();
globalOffset.put();
}
public inline function getIcon() {
+1
View File
@@ -138,5 +138,6 @@ class OptionsScreen extends MusicBeatState {
public override function destroy() {
super.destroy();
instance = null;
scrollDest.put();
}
}
@@ -152,5 +152,6 @@ class UpdateAvailableScreen extends MusicBeatState {
public override function destroy() {
super.destroy();
FlxG.mouse.visible = false;
oldPos.put();
}
}