Skip to content

Commit

Permalink
Changes and removed Overlay OnLoaded event.
Browse files Browse the repository at this point in the history
I can bring it back if its needed but I dont see a use for it right now.
  • Loading branch information
Scrivener07 committed Sep 17, 2017
1 parent 72e5101 commit f92bd56
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 23 deletions.
8 changes: 0 additions & 8 deletions Data/Interface/Source/Menus/ScopeMenu/OverlayLoader.as
Original file line number Diff line number Diff line change
Expand Up @@ -72,22 +72,14 @@ package
Content = e.currentTarget.content;
addChild(Content);
this.visible = true;
// SendLoadEvent(true, FilePath);
}


private function OnLoadError(e:IOErrorEvent) : void
{
this.visible = false;
// SendLoadEvent(false, FilePath);
}


// private function SendLoadEvent(success:Boolean, filepath:String) : void
// {
// stage.getChildAt(0).f4se.SendExternalEvent("Fallout_Scopes_LoadEvent", success, filepath);
// }


}
}
4 changes: 2 additions & 2 deletions Data/Scopes.esp
Git LFS file not shown
10 changes: 0 additions & 10 deletions Data/Scripts/Source/FO4_Scopes/Fallout/Scopes/Framework.psc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ Event OnInit()
Player = Game.GetPlayer()
ScopeMenu = GetMenu()
RegisterForMenuOpenCloseEvent(ScopeMenu.Name)
; RegisterForExternalEvent("Fallout_Scopes_LoadEvent", "OnLoaded")
EndEvent


Expand All @@ -44,15 +43,6 @@ Event OnMenuOpenCloseEvent(string asMenuName, bool abOpening)
EndEvent


; Function OnLoaded(bool success, string filepath)
; If (success)
; WriteNotification(self, "Loaded: "+filepath)
; Else
; WriteNotification(self, "No custom overlay was found.")
; EndIf
; EndFunction


; Globals
;---------------------------------------------

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ EndEvent


Event OnMenuOpenCloseEvent(string asMenuName, bool abOpening)
If (Player.GetEquippedWeapon() == WeaponType)
If (Player.GetEquippedWeapon() == Revolver44)
If (abOpening)
RegisterForKey(ScopeMenu.HoldBreath)
Else
Expand All @@ -44,6 +44,6 @@ EndEvent
;---------------------------------------------

Group Properties
Weapon Property WeaponType Auto Const Mandatory
Weapon Property Revolver44 Auto Const Mandatory
{A .44 caliber revolver.}
EndGroup
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Scriptname Fallout:ScopesTest:Setup extends Quest
Scriptname Fallout:ScopesTest:Setup extends Quest Const DebugOnly
{Temporary script to add in game items to test this project.}
import Fallout:Scopes:Papyrus

Expand Down

0 comments on commit f92bd56

Please sign in to comment.