Skip to content

Commit

Permalink
Improvements to the loader.
Browse files Browse the repository at this point in the history
  • Loading branch information
Scrivener07 committed Mar 7, 2019
1 parent 44eb43b commit 89f66ee
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,21 @@
import System.IO.Path;

/**
*
* This still wont switch from one overlay to another.
* Unloading the entire menu makes it work. (unequipping)
*/
public dynamic class OverlayLoader extends LoaderType
{

// Initialize
//---------------------------------------------

public function OverlayLoader(menuName:String, mountID:String)
{
super(menuName, mountID);
}


// Events
//---------------------------------------------

Expand Down Expand Up @@ -62,6 +72,7 @@
else
{
Debug.WriteLine("[OverlayLoader]", "No overlay file was found.");
Unload();
return false;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

public class OverlayMenu extends MovieClip
{
public var Overlay:OverlayLoader;
private var Overlay:OverlayLoader;
private const Name:String = "OverlayMenu";
private const MountID:String = "OverlayMenu_ImageMount";

Expand All @@ -22,8 +22,8 @@
public function OverlayMenu()
{
System.Diagnostics.Debug.Prefix = "Overlay Framework";
Overlay.MenuName = Name;
Overlay.MountID = MountID;
Overlay = new OverlayLoader(Name, MountID);
this.addChild(Overlay);
Debug.WriteLine("[OverlayMenu]", "(ctor)", "Constructor Code", this.loaderInfo.url);
}

Expand Down
Git LFS file not shown

0 comments on commit 89f66ee

Please sign in to comment.