0.1.0.2 release, bug fix for mod load order.

This commit is contained in:
JavidPack
2016-12-18 05:02:47 -07:00
parent 4b08bd70af
commit ec266cd00a
3 changed files with 25 additions and 4 deletions

View File

@@ -14,6 +14,7 @@ namespace ItemChecklist
static internal ItemChecklist instance;
internal static ModHotKey ToggleChecklistHotKey;
internal static UserInterface ItemChecklistInterface;
//internal bool UIInitialized;
internal ItemChecklistUI ItemChecklistUI;
public ItemChecklist()
@@ -28,6 +29,7 @@ namespace ItemChecklist
{
instance = this;
ToggleChecklistHotKey = RegisterHotKey("Toggle Item Checklist", "I");
//UIInitialized = false;
//if (!Main.dedServ)
//{
// ItemChecklistUI = new ItemChecklistUI();
@@ -37,7 +39,18 @@ namespace ItemChecklist
//}
}
public override void PostSetupContent()
//public override void PostSetupContent()
//{
// if (!Main.dedServ)
// {
// ItemChecklistUI = new ItemChecklistUI();
// ItemChecklistUI.Activate();
// ItemChecklistInterface = new UserInterface();
// ItemChecklistInterface.SetState(ItemChecklistUI);
// }
//}
public override void AddRecipes()
{
if (!Main.dedServ)
{
@@ -52,6 +65,14 @@ namespace ItemChecklist
int lastSeenScreenHeight;
public override void ModifyInterfaceLayers(List<MethodSequenceListItem> layers)
{
//if (!UIInitialized)
//{
// ItemChecklistUI = new ItemChecklistUI();
// ItemChecklistUI.Activate();
// ItemChecklistInterface = new UserInterface();
// ItemChecklistInterface.SetState(ItemChecklistUI);
//}
int MouseTextIndex = layers.FindIndex(layer => layer.Name.Equals("Vanilla: Mouse Text"));
if (MouseTextIndex != -1)
{

View File

@@ -11,7 +11,7 @@ namespace ItemChecklist
{
class ItemChecklistPlayer : ModPlayer
{
// internal static ItemChecklistPlayer localInstance;
// internal static ItemChecklistPlayer localInstance;
// This is a list of items...Holds clean versions of unloaded mystery and loaded real items.
internal List<Item> foundItems;
@@ -59,7 +59,7 @@ namespace ItemChecklist
findableItems[i] = true;
}
}
// localInstance = this;
// localInstance = this;
}
public override void PreUpdate()

View File

@@ -1,5 +1,5 @@
author = jopojelly
version = 0.1.0.1
version = 0.1.0.2
displayName = Item Checklist
homepage = https://forums.terraria.org/index.php?threads/item-checklist-in-game-100-item-collection-checklist.52786/
hideCode = false