Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SpawnConditionDecorativeOverlayInfoElement.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
SpawnConditionDecorativeOverlayInfoElement
:
IBestiaryInfoElement
,
IBestiaryBackgroundOverlayAndColorProvider
9
{
10
private
string
_overlayImagePath
;
11
12
private
Color
?
_overlayColor
;
13
14
public
float
DisplayPriority
{
get
;
set
; }
15
16
public
SpawnConditionDecorativeOverlayInfoElement
(
string
overlayImagePath =
null
,
Color
? overlayColor =
null
)
17
{
18
_overlayImagePath
= overlayImagePath;
19
_overlayColor
= overlayColor;
20
}
21
22
public
Asset<Texture2D>
GetBackgroundOverlayImage
()
23
{
24
if
(
_overlayImagePath
==
null
)
25
{
26
return
null
;
27
}
28
return
Main
.
Assets
.Request<
Texture2D
>(
_overlayImagePath
, (
AssetRequestMode
)1);
29
}
30
31
public
Color
?
GetBackgroundOverlayColor
()
32
{
33
return
_overlayColor
;
34
}
35
36
public
UIElement
ProvideUIElement
(
BestiaryUICollectionInfo
info)
37
{
38
return
null
;
39
}
40
}
Microsoft.Xna.Framework.Graphics.Texture2D
Definition
Texture2D.cs:13
ReLogic.Content.Asset
Definition
Asset.cs:8
Terraria.GameContent.Bestiary.SpawnConditionDecorativeOverlayInfoElement._overlayImagePath
string _overlayImagePath
Definition
SpawnConditionDecorativeOverlayInfoElement.cs:10
Terraria.GameContent.Bestiary.SpawnConditionDecorativeOverlayInfoElement.SpawnConditionDecorativeOverlayInfoElement
SpawnConditionDecorativeOverlayInfoElement(string overlayImagePath=null, Color? overlayColor=null)
Definition
SpawnConditionDecorativeOverlayInfoElement.cs:16
Terraria.GameContent.Bestiary.SpawnConditionDecorativeOverlayInfoElement.GetBackgroundOverlayImage
Asset< Texture2D > GetBackgroundOverlayImage()
Definition
SpawnConditionDecorativeOverlayInfoElement.cs:22
Terraria.GameContent.Bestiary.SpawnConditionDecorativeOverlayInfoElement.DisplayPriority
float DisplayPriority
Definition
SpawnConditionDecorativeOverlayInfoElement.cs:14
Terraria.GameContent.Bestiary.SpawnConditionDecorativeOverlayInfoElement.GetBackgroundOverlayColor
Color? GetBackgroundOverlayColor()
Definition
SpawnConditionDecorativeOverlayInfoElement.cs:31
Terraria.GameContent.Bestiary.SpawnConditionDecorativeOverlayInfoElement.ProvideUIElement
UIElement ProvideUIElement(BestiaryUICollectionInfo info)
Definition
SpawnConditionDecorativeOverlayInfoElement.cs:36
Terraria.GameContent.Bestiary.SpawnConditionDecorativeOverlayInfoElement._overlayColor
Color? _overlayColor
Definition
SpawnConditionDecorativeOverlayInfoElement.cs:12
Terraria.GameContent.Bestiary.SpawnConditionDecorativeOverlayInfoElement
Definition
SpawnConditionDecorativeOverlayInfoElement.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.IBestiaryBackgroundOverlayAndColorProvider
Definition
IBestiaryBackgroundOverlayAndColorProvider.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
Definition
Color.cs:12
Terraria.GameContent.Bestiary.BestiaryUICollectionInfo
Definition
BestiaryUICollectionInfo.cs:4
source
Terraria.GameContent.Bestiary
SpawnConditionDecorativeOverlayInfoElement.cs
Generated by
1.10.0