Skip to content

Commit

Permalink
0.1.3 release, updated to tModLoader 0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
JavidPack committed Jun 6, 2017
1 parent d9fe694 commit ba23fad
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 17 deletions.
10 changes: 6 additions & 4 deletions BossChecklist.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
using System.Linq;
using Terraria.GameContent.UI.Chat;

// TODO: Kill all npc checklist
// TODO: Currently have all town npc checklist
namespace BossChecklist
{
public class BossChecklist : Mod
Expand Down Expand Up @@ -58,12 +60,12 @@ public override void Load()

int lastSeenScreenWidth;
int lastSeenScreenHeight;
public override void ModifyInterfaceLayers(List<MethodSequenceListItem> layers)
public override void ModifyInterfaceLayers(List<GameInterfaceLayer> layers)
{
int MouseTextIndex = layers.FindIndex(layer => layer.Name.Equals("Vanilla: Mouse Text"));
if (MouseTextIndex != -1)
{
layers.Insert(MouseTextIndex, new MethodSequenceListItem(
layers.Insert(MouseTextIndex, new LegacyGameInterfaceLayer(
"BossChecklist: Boss Checklist",
delegate
{
Expand Down Expand Up @@ -97,7 +99,7 @@ public override void ModifyInterfaceLayers(List<MethodSequenceListItem> layers)

//ItemTagHandler.GenerateTag(item)
int hoveredSnippet = -1;
TextSnippet[] array = ChatManager.ParseMessage(BossChecklistUI.hoverText, Color.White);
TextSnippet[] array = ChatManager.ParseMessage(BossChecklistUI.hoverText, Color.White).ToArray();
ChatManager.DrawColorCodedStringWithShadow(Main.spriteBatch, Main.fontMouseText, array,
vector, 0f, Vector2.Zero, Vector2.One, out hoveredSnippet/*, -1f, 2f*/);

Expand All @@ -113,7 +115,7 @@ public override void ModifyInterfaceLayers(List<MethodSequenceListItem> layers)
}
return true;
},
null)
InterfaceScaleType.UI)
);
}
}
Expand Down
15 changes: 9 additions & 6 deletions BossChecklist.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@
<Reference Include="Microsoft.Xna.Framework.Xact">
<HintPath>..\..\solutiondlls\Microsoft.Xna.Framework.Xact.dll</HintPath>
</Reference>
<Reference Include="ReLogic">
<HintPath>..\..\..\Modding\WikiAutomation\ReLogic.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
Expand All @@ -59,12 +62,6 @@
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
<Reference Include="ThoriumMod_v1.3.1.6">
<HintPath>lib\ThoriumMod_v1.3.1.6.dll</HintPath>
</Reference>
<Reference Include="tModLoader">
<HintPath>C:\Program Files (x86)\Steam\steamapps\common\Terraria\tModLoader.exe</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="BossChecklist.cs" />
Expand All @@ -81,6 +78,12 @@
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Modding\tModLoader\src\tModLoader\Terraria.csproj">
<Project>{3996d5fa-6e59-4fe4-9f2b-40eeef9645d5}</Project>
<Name>Terraria</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>"C:\Program Files (x86)\Steam\steamapps\common\terraria\tModLoader.exe" -build "$(ProjectDir)\" -eac "$(TargetPath)"</PostBuildEvent>
Expand Down
2 changes: 2 additions & 0 deletions BossChecklistUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ public override void Draw(SpriteBatch spriteBatch)
// TODO, all other event bosses...Maybe all pillars as 1?

// ThoriumMod -- Working, missing some minibosses/bosses?
/*
new BossInfo("The Grand Thunder Bird", SlimeKing - 0.5f, () => BossChecklist.instance.thoriumLoaded, () => ThoriumMod.ThoriumWorld.downedThunderBird, $"Spawn during day by shooting a [i:{ModLoader.GetMod("ThoriumMod")?.ItemType("StormFlare") ?? 0}] with a [i:{ModLoader.GetMod("ThoriumMod")?.ItemType("StrongFlareGun") ?? 0}]"),
new BossInfo("The Queen Jellyfish", Skeletron - 0.5f, () => BossChecklist.instance.thoriumLoaded, () => ThoriumMod.ThoriumWorld.downedJelly),
new BossInfo("Granite Energy Storm", Skeletron + 0.2f, () => BossChecklist.instance.thoriumLoaded, () => ThoriumMod.ThoriumWorld.downedStorm),
Expand All @@ -177,6 +178,7 @@ public override void Draw(SpriteBatch spriteBatch)
new BossInfo("The Lich", SkeletronPrime + .1f, () => BossChecklist.instance.thoriumLoaded, () => ThoriumMod.ThoriumWorld.downedLich),
new BossInfo("Abyssion, The Forgotten One", Plantera + .1f, () => BossChecklist.instance.thoriumLoaded, () => ThoriumMod.ThoriumWorld.downedDepthBoss),
new BossInfo("The Ragnarok", Moonlord + .1f, () => BossChecklist.instance.thoriumLoaded, () => ThoriumMod.ThoriumWorld.downedRealityBreaker),
*/

// Bluemagic -- Working 100%
//new BossInfo("Abomination", DukeFishron + 0.2f, () => BossChecklist.instance.bluemagicLoaded, () => Bluemagic.BluemagicWorld.downedAbomination),
Expand Down
2 changes: 1 addition & 1 deletion UIBossCheckbox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ protected override void DrawSelf(SpriteBatch spriteBatch)
{
string info = boss.info ?? "No info available";
int hoveredSnippet = -1;
TextSnippet[] textSnippets = ChatManager.ParseMessage(info, Color.White);
TextSnippet[] textSnippets = ChatManager.ParseMessage(info, Color.White).ToArray();
ChatManager.ConvertNormalSnippets(textSnippets);

for (int i = 0; i < ChatManager.ShadowDirections.Length; i++)
Expand Down
2 changes: 1 addition & 1 deletion build.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
author = jopojelly
version = 0.1.2.1
version = 0.1.3
displayName = Boss Checklist
homepage = http://forums.terraria.org/index.php?threads/boss-checklist-in-game-progression-checklist.50668/
hideCode = false
Expand Down
8 changes: 3 additions & 5 deletions description.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
Boss Checklist lets you view a boss checklist while playing so you can progress through bosses as you can handle them.

Toggle the checklist with the hotkey assigned to it in the settings.
Toggle the checklist with the hotkey assigned to it in the settings. Visit Settings->Controls->Keybindings to set or check the current hotkey

The following mods are currently supported: ThoriumMod, CalamityMod, Bluemagic
Most popular mods are supported.

The following mods can be supported once they update: SacredTools, JoostMod

Adding more mods is easy, as the mod is hosted on github. If you would like a mod to be supported, please encourage the modder to add their mod to this mod.
If you would like a mod to be supported, please encourage the modder to add support to this mod.

Future Feature ideas: Minibosses filter, Town NPC checklist, more supported mods, summon help, whatever else by popular demand.
Binary file removed lib/ThoriumMod_v1.3.1.6.dll
Binary file not shown.

0 comments on commit ba23fad

Please sign in to comment.