1using Microsoft.Xna.Framework.Graphics;
37 public virtual bool Autoload(ref
string name) {
86 public virtual bool Autoload(ref
string name) {
131 public virtual int ChooseCloseTexture(ref
float scale, ref
double parallax, ref
float a, ref
float b) {
This class serves to collect functions that operate on any kind of background style,...
string Name
The internal name of this global background style.
virtual void ChooseUgBgStyle(ref int style)
Allows you to change which underground background style is being used.
virtual bool Autoload(ref string name)
Allows you to automatically add a GlobalBgStyle instead of using Mod.AddGlobalBgStyle....
Mod mod
That mod that added this global background style.
virtual void FillUgTextureArray(int style, int[] textureSlots)
Allows you to change which textures make up the underground background by assigning their background ...
virtual void ModifyFarSurfaceFades(int style, float[] fades, float transitionSpeed)
Allows you to modify the transparency of all background styles that exist. The style parameter is the...
virtual void ChooseSurfaceBgStyle(ref int style)
Allows you to change which surface background style is being used.
Mod is an abstract class that you will override. It serves as a central place from which the mod's co...
Each background style determines in its own way how exactly the background is drawn....
abstract void ModifyFarFades(float[] fades, float transitionSpeed)
Allows you to modify the transparency of all background styles that exist. In general,...
virtual bool Autoload(ref string name)
Allows you to automatically add a ModSurfaceBgStyle instead of using Mod.AddSurfaceBgStyle....
Mod mod
The mod that added this surface background style.
virtual int ChooseMiddleTexture()
Allows you to determine which texture is drawn in the middle of the background.
virtual bool ChooseBgStyle()
Whether or not the conditions have been met for this background style to draw its backgrounds....
int Slot
The ID of this surface background style.
virtual int ChooseFarTexture()
Allows you to determine which texture is drawn in the very back of the background....
virtual int ChooseCloseTexture(ref float scale, ref double parallax, ref float a, ref float b)
Allows you to determine which texture is drawn in the closest part of the background....
string Name
The internal name of this surface background style.
virtual bool PreDrawCloseBackground(SpriteBatch spriteBatch)
Gives you complete freedom over how the closest part of the background is drawn. Return true for Choo...
Each background style determines in its own way how exactly the background is drawn....
int Slot
The ID of this underground background style.
string Name
The internal name of this underground background style.
virtual bool Autoload(ref string name)
Allows you to automatically add a ModUgBgStyle instead of using Mod.AddUgBgStyle. Return true to allo...
Mod mod
The mod that added this underground background style.
abstract void FillTextureArray(int[] textureSlots)
Allows you to determine which textures make up the background by assigning their background slots/IDs...
virtual bool ChooseBgStyle()
Whether or not the conditions have been met for this background style to draw its backgrounds....
bool Autoload
Whether or not this mod will autoload content by default. Autoloading content means you do not need t...