Files
CalamityModPublic/UI/DraedonLogs/DraedonLogJungleGUI.cs
T

28 lines
990 B
C#

using CalamityMod.Items.DraedonMisc;
using Microsoft.Xna.Framework.Graphics;
using Terraria.ModLoader;
namespace CalamityMod.UI.DraedonLogs
{
public class DraedonLogJungleGUI : DraedonsLogGUI
{
public override int TotalPages => 3;
public override string GetTextByPage()
{
return CalamityUtils.GetTextValueFromModItem<DraedonsLogJungle>("ContentPage" + (Page + 1));
}
public override Texture2D GetTextureByPage()
{
switch (Page)
{
case 0:
return ModContent.Request<Texture2D>("CalamityMod/UI/DraedonLogs/DraedonsLogJungleBiome").Value;
case 1:
return ModContent.Request<Texture2D>("CalamityMod/UI/DraedonLogs/DraedonsLogPlagueCell").Value;
default:
return ModContent.Request<Texture2D>("CalamityMod/UI/DraedonLogs/DraedonsLogPlaguebringerGoliath").Value;
}
}
}
}