Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SpawnConditionBestiaryOverlayInfoElement.cs
Go to the documentation of this file.
1
using
Microsoft.Xna.Framework
;
2
using
Microsoft.Xna.Framework.Graphics
;
3
using
ReLogic.Content
;
4
5
namespace
Terraria.GameContent.Bestiary
;
6
7
public
class
SpawnConditionBestiaryOverlayInfoElement
:
FilterProviderInfoElement
,
IBestiaryBackgroundOverlayAndColorProvider
,
IBestiaryPrioritizedElement
8
{
9
private
string
_overlayImagePath
;
10
11
private
Color
?
_overlayColor
;
12
13
public
float
DisplayPriority
{
get
;
set
; }
14
15
public
float
OrderPriority
{
get
;
set
; }
16
17
public
SpawnConditionBestiaryOverlayInfoElement
(
string
nameLanguageKey,
int
filterIconFrame,
string
overlayImagePath =
null
,
Color
? overlayColor =
null
)
18
: base(nameLanguageKey, filterIconFrame)
19
{
20
_overlayImagePath
= overlayImagePath;
21
_overlayColor
= overlayColor;
22
}
23
24
public
Asset<Texture2D>
GetBackgroundOverlayImage
()
25
{
26
if
(
_overlayImagePath
==
null
)
27
{
28
return
null
;
29
}
30
return
Main
.
Assets
.Request<
Texture2D
>(
_overlayImagePath
, (
AssetRequestMode
)1);
31
}
32
33
public
Color
?
GetBackgroundOverlayColor
()
34
{
35
return
_overlayColor
;
36
}
37
}
Microsoft.Xna.Framework.Graphics.Texture2D
Definition
Texture2D.cs:13
ReLogic.Content.Asset
Definition
Asset.cs:8
Terraria.GameContent.Bestiary.FilterProviderInfoElement
Definition
FilterProviderInfoElement.cs:11
Terraria.GameContent.Bestiary.SpawnConditionBestiaryOverlayInfoElement.SpawnConditionBestiaryOverlayInfoElement
SpawnConditionBestiaryOverlayInfoElement(string nameLanguageKey, int filterIconFrame, string overlayImagePath=null, Color? overlayColor=null)
Definition
SpawnConditionBestiaryOverlayInfoElement.cs:17
Terraria.GameContent.Bestiary.SpawnConditionBestiaryOverlayInfoElement._overlayImagePath
string _overlayImagePath
Definition
SpawnConditionBestiaryOverlayInfoElement.cs:9
Terraria.GameContent.Bestiary.SpawnConditionBestiaryOverlayInfoElement.GetBackgroundOverlayImage
Asset< Texture2D > GetBackgroundOverlayImage()
Definition
SpawnConditionBestiaryOverlayInfoElement.cs:24
Terraria.GameContent.Bestiary.SpawnConditionBestiaryOverlayInfoElement.DisplayPriority
float DisplayPriority
Definition
SpawnConditionBestiaryOverlayInfoElement.cs:13
Terraria.GameContent.Bestiary.SpawnConditionBestiaryOverlayInfoElement.OrderPriority
float OrderPriority
Definition
SpawnConditionBestiaryOverlayInfoElement.cs:15
Terraria.GameContent.Bestiary.SpawnConditionBestiaryOverlayInfoElement.GetBackgroundOverlayColor
Color? GetBackgroundOverlayColor()
Definition
SpawnConditionBestiaryOverlayInfoElement.cs:33
Terraria.GameContent.Bestiary.SpawnConditionBestiaryOverlayInfoElement._overlayColor
Color? _overlayColor
Definition
SpawnConditionBestiaryOverlayInfoElement.cs:11
Terraria.GameContent.Bestiary.SpawnConditionBestiaryOverlayInfoElement
Definition
SpawnConditionBestiaryOverlayInfoElement.cs:8
Terraria.Main.Assets
static IAssetRepository Assets
Definition
Main.cs:209
Terraria.Main
Definition
Main.cs:79
Terraria.GameContent.Bestiary.IBestiaryBackgroundOverlayAndColorProvider
Definition
IBestiaryBackgroundOverlayAndColorProvider.cs:8
Terraria.GameContent.Bestiary.IBestiaryPrioritizedElement
Definition
IBestiaryPrioritizedElement.cs:4
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
Microsoft.Xna.Framework.Color
Definition
Color.cs:12
source
Terraria.GameContent.Bestiary
SpawnConditionBestiaryOverlayInfoElement.cs
Generated by
1.10.0