-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMenuthing.cs
39 lines (31 loc) · 1.49 KB
/
Menuthing.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using Microsoft.Xna.Framework.Graphics;
using ReLogic.Content;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Terraria.Audio;
using Terraria.ID;
using Terraria;
using Terraria.ModLoader;
using Microsoft.Xna.Framework;
namespace VanillaModding
{
internal class Menuthing : ModMenu
{
//private const string menuAssetPath = "ExampleMod/Assets/Textures/Menu"; // Creates a constant variable representing the texture path, so we don't have to write it out multiple times
public override Asset<Texture2D> Logo => ModContent.Request<Texture2D>($"{nameof(VanillaModding)}/logomenu");
//public override Asset<Texture2D> SunTexture => ModContent.Request<Texture2D>($"{menuAssetPath}/ExampleSun");
//public override Asset<Texture2D> MoonTexture => ModContent.Request<Texture2D>($"{menuAssetPath}/ExampliumMoon");
public override int Music => MusicLoader.GetMusicSlot(Mod, "Music/NowhereHome");
//public override ModSurfaceBackgroundStyle MenuBackgroundStyle => ModContent.GetInstance<ExampleSurfaceBackgroundStyle>();
public override string DisplayName => "OtherSide";
public override bool PreDrawLogo(SpriteBatch spriteBatch, ref Vector2 logoDrawCenter, ref float logoRotation, ref float logoScale, ref Color drawColor)
{
//logoScale = 1f;
//drawColor = Main.DiscoColor; // Changes the draw color of the logo
return true;
}
}
}