Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
MoonLordPortraitBackgroundProviderBestiaryInfoElement.cs
Go to the documentation of this file.
1
using
Microsoft.Xna.Framework
;
2
using
Microsoft.Xna.Framework.Graphics
;
3
using
ReLogic.Content
;
4
using
Terraria.UI
;
5
6
namespace
Terraria.GameContent.Bestiary
;
7
8
public
class
MoonLordPortraitBackgroundProviderBestiaryInfoElement
:
IBestiaryInfoElement
,
IBestiaryBackgroundImagePathAndColorProvider
9
{
10
public
Asset<Texture2D>
GetBackgroundImage
()
11
{
12
return
Main
.
Assets
.Request<
Texture2D
>(
"Images/MapBG1"
, (
AssetRequestMode
)1);
13
}
14
15
public
Color
?
GetBackgroundColor
()
16
{
17
return
Color
.
Black
;
18
}
19
20
public
UIElement
ProvideUIElement
(
BestiaryUICollectionInfo
info)
21
{
22
return
null
;
23
}
24
}
Microsoft.Xna.Framework.Graphics.Texture2D
Definition
Texture2D.cs:13
ReLogic.Content.Asset
Definition
Asset.cs:8
Terraria.GameContent.Bestiary.MoonLordPortraitBackgroundProviderBestiaryInfoElement.GetBackgroundColor
Color? GetBackgroundColor()
Definition
MoonLordPortraitBackgroundProviderBestiaryInfoElement.cs:15
Terraria.GameContent.Bestiary.MoonLordPortraitBackgroundProviderBestiaryInfoElement.ProvideUIElement
UIElement ProvideUIElement(BestiaryUICollectionInfo info)
Definition
MoonLordPortraitBackgroundProviderBestiaryInfoElement.cs:20
Terraria.GameContent.Bestiary.MoonLordPortraitBackgroundProviderBestiaryInfoElement.GetBackgroundImage
Asset< Texture2D > GetBackgroundImage()
Definition
MoonLordPortraitBackgroundProviderBestiaryInfoElement.cs:10
Terraria.GameContent.Bestiary.MoonLordPortraitBackgroundProviderBestiaryInfoElement
Definition
MoonLordPortraitBackgroundProviderBestiaryInfoElement.cs:9
Terraria.Main.Assets
static IAssetRepository Assets
Definition
Main.cs:209
Terraria.Main
Definition
Main.cs:79
Terraria.UI.UIElement
Definition
UIElement.cs:12
Terraria.GameContent.Bestiary.IBestiaryBackgroundImagePathAndColorProvider
Definition
IBestiaryBackgroundImagePathAndColorProvider.cs:8
Terraria.GameContent.Bestiary.IBestiaryInfoElement
Definition
IBestiaryInfoElement.cs:6
Microsoft.Xna.Framework.Graphics
Definition
AlphaTestEffect.cs:1
Microsoft.Xna.Framework
Definition
AlphaTestEffect.cs:1
ReLogic.Content.AssetRequestMode
AssetRequestMode
Definition
AssetRequestMode.cs:4
ReLogic.Content
Definition
IAssetReader.cs:5
Terraria.GameContent.Bestiary
Definition
BestiaryDatabase.cs:5
Terraria.UI
Definition
ChatLine.cs:3
Microsoft.Xna.Framework.Color.Black
static Color Black
Definition
Color.cs:92
Microsoft.Xna.Framework.Color
Definition
Color.cs:12
Terraria.GameContent.Bestiary.BestiaryUICollectionInfo
Definition
BestiaryUICollectionInfo.cs:4
source
Terraria.GameContent.Bestiary
MoonLordPortraitBackgroundProviderBestiaryInfoElement.cs
Generated by
1.10.0