tModLoader v0.11.8.9
A mod to make and play Terraria mods
|
Each background style determines in its own way how exactly the background is drawn. This class serves as a collection of functions for underground backgrounds. More...
Public Member Functions | |
virtual bool | Autoload (ref string name) |
Allows you to automatically add a ModUgBgStyle instead of using Mod.AddUgBgStyle. Return true to allow autoloading; by default returns the mod's autoload property. Name is initialized to the overriding class name. Use this to either force or stop an autoload, or change the name that identifies this type of ModUgBgStyle. More... | |
virtual bool | ChooseBgStyle () |
Whether or not the conditions have been met for this background style to draw its backgrounds. Returns false by default. More... | |
abstract void | FillTextureArray (int[] textureSlots) |
Allows you to determine which textures make up the background by assigning their background slots/IDs to the given array. Mod.GetBackgroundSlot may be useful here. Index 0 is the texture on the border of the ground and sky layers. Index 1 is the texture drawn between rock and ground layers. Index 2 is the texture on the border of ground and rock layers. Index 3 is the texture drawn in the rock layer. The border images are 160x16 pixels, and the others are 160x96, but it seems like the right 32 pixels of each is a duplicate of the far left 32 pixels. More... | |
Properties | |
Mod | mod [get, set] |
The mod that added this underground background style. More... | |
string | Name [get, set] |
The internal name of this underground background style. More... | |
int | Slot [get, set] |
The ID of this underground background style. More... | |
Each background style determines in its own way how exactly the background is drawn. This class serves as a collection of functions for underground backgrounds.
Definition at line 8 of file ModBackgroundStyle.cs.
|
virtual |
Allows you to automatically add a ModUgBgStyle instead of using Mod.AddUgBgStyle. Return true to allow autoloading; by default returns the mod's autoload property. Name is initialized to the overriding class name. Use this to either force or stop an autoload, or change the name that identifies this type of ModUgBgStyle.
Definition at line 37 of file ModBackgroundStyle.cs.
References Terraria.ModLoader.ModProperties.Autoload, Terraria.ModLoader.ModUgBgStyle.mod, and Terraria.ModLoader.Mod.Properties.
Referenced by Terraria.ModLoader.Mod.AutoloadUgBgStyle().
|
virtual |
Whether or not the conditions have been met for this background style to draw its backgrounds. Returns false by default.
Definition at line 44 of file ModBackgroundStyle.cs.
|
pure virtual |
Allows you to determine which textures make up the background by assigning their background slots/IDs to the given array. Mod.GetBackgroundSlot may be useful here. Index 0 is the texture on the border of the ground and sky layers. Index 1 is the texture drawn between rock and ground layers. Index 2 is the texture on the border of ground and rock layers. Index 3 is the texture drawn in the rock layer. The border images are 160x16 pixels, and the others are 160x96, but it seems like the right 32 pixels of each is a duplicate of the far left 32 pixels.
|
getset |
The mod that added this underground background style.
Definition at line 13 of file ModBackgroundStyle.cs.
Referenced by Terraria.ModLoader.ModUgBgStyle.Autoload().
|
getset |
The internal name of this underground background style.
Definition at line 21 of file ModBackgroundStyle.cs.
Referenced by Terraria.ModLoader.Mod.AutoloadUgBgStyle().
|
getset |
The ID of this underground background style.
Definition at line 29 of file ModBackgroundStyle.cs.