Even More Modifiers  1.0.0.0
A mod for rolling various bonus stats on items
Loot.Loot Class Reference
+ Inheritance diagram for Loot.Loot:
+ Collaboration diagram for Loot.Loot:

Public Member Functions

override void Load ()
 
override void ModifyInterfaceLayers (List< GameInterfaceLayer > layers)
 
override void PostAddRecipes ()
 
override void PreSaveAndQuit ()
 
override void Unload ()
 
override void UpdateUI (GameTime gameTime)
 

Static Public Attributes

static bool IsLoaded
 

Private Attributes

GameTime _lastUpdateUiGameTime
 

Detailed Description

Definition at line 25 of file Loot.cs.

Member Function Documentation

override void Loot.Loot.Load ( )

Definition at line 36 of file Loot.cs.

Referenced by LootTests.UnitTests.LogEMMLoaderEntries().

37  {
38  Instance = this;
39  LoadingFunneler.Load();
40  }
override void Load()
Definition: Loot.cs:36

+ Here is the caller graph for this function:

override void Loot.Loot.ModifyInterfaceLayers ( List< GameInterfaceLayer >  layers)

Definition at line 72 of file Loot.cs.

73  {
74  int mouseTextIndex = layers.FindIndex(layer => layer.Name.Equals("Vanilla: Mouse Text"));
75  if (mouseTextIndex != -1)
76  {
77  layers.Insert(mouseTextIndex, new LegacyGameInterfaceLayer(
78  "Loot: GuiInterface",
79  delegate
80  {
81  if (GuiInterface?.CurrentState is VisibilityUI visibilityUi
82  && visibilityUi.Visible && _lastUpdateUiGameTime != null)
83  {
84  GuiInterface.Draw(Main.spriteBatch, _lastUpdateUiGameTime);
85  }
86  return true;
87  },
88  InterfaceScaleType.UI));
89  }
90  }
GameTime _lastUpdateUiGameTime
Definition: Loot.cs:61
override void Loot.Loot.PostAddRecipes ( )

Definition at line 42 of file Loot.cs.

43  {
44  LoadingFunneler.PostLoad();
45  }
override void Loot.Loot.PreSaveAndQuit ( )

Definition at line 53 of file Loot.cs.

54  {
55  if (GuiState.Visible)
56  {
57  GuiState.ToggleUI(GuiInterface);
58  }
59  }
override void Loot.Loot.Unload ( )

Definition at line 47 of file Loot.cs.

48  {
49  LoadingFunneler.Unload();
50  Instance = null;
51  }
override void Loot.Loot.UpdateUI ( GameTime  gameTime)

Definition at line 63 of file Loot.cs.

64  {
65  _lastUpdateUiGameTime = gameTime;
66  if (GuiInterface?.CurrentState != null)
67  {
68  GuiInterface.Update(gameTime);
69  }
70  }
GameTime _lastUpdateUiGameTime
Definition: Loot.cs:61

Member Data Documentation

GameTime Loot.Loot._lastUpdateUiGameTime
private

Definition at line 61 of file Loot.cs.

bool Loot.Loot.IsLoaded
static

Definition at line 34 of file Loot.cs.