tModLoader v0.11.8.9
A mod to make and play Terraria mods
Terraria.ModLoader.BackgroundTextureLoader Class Reference

This is the class that keeps track of all modded background textures and their slots/IDs. More...

+ Collaboration diagram for Terraria.ModLoader.BackgroundTextureLoader:

Static Public Member Functions

static int GetBackgroundSlot (string texture)
 Returns the slot/ID of the background texture with the given name. More...
 

Static Public Attributes

const int vanillaBackgroundTextureCount = Main.maxBackgrounds
 

Static Private Attributes

static int nextBackground = vanillaBackgroundTextureCount
 

Detailed Description

This is the class that keeps track of all modded background textures and their slots/IDs.

Definition at line 10 of file BackgroundTextureLoader.cs.

Member Function Documentation

◆ GetBackgroundSlot()

static int Terraria.ModLoader.BackgroundTextureLoader.GetBackgroundSlot ( string  texture)
static

Returns the slot/ID of the background texture with the given name.

References Terraria.ModLoader.ModContent.GetTexture(), and Terraria.ModLoader.BackgroundTextureLoader.nextBackground.

+ Here is the call graph for this function:

Member Data Documentation

◆ nextBackground

int Terraria.ModLoader.BackgroundTextureLoader.nextBackground = vanillaBackgroundTextureCount
staticprivate

◆ vanillaBackgroundTextureCount

const int Terraria.ModLoader.BackgroundTextureLoader.vanillaBackgroundTextureCount = Main.maxBackgrounds
static

Definition at line 12 of file BackgroundTextureLoader.cs.