1 using Microsoft.Xna.Framework.Graphics;
37 public virtual bool Autoload(ref
string name) {
38 return mod.Properties.Autoload;
51 public abstract void FillTextureArray(
int[] textureSlots);
86 public virtual bool Autoload(ref
string name) {
87 return mod.Properties.Autoload;
100 public abstract void ModifyFarFades(
float[] fades,
float transitionSpeed);
131 public virtual int ChooseCloseTexture(ref
float scale, ref
double parallax, ref
float a, ref
float b) {
161 return mod.Properties.Autoload;
virtual bool ChooseBgStyle()
Whether or not the conditions have been met for this background style to draw its backgrounds...
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. This also lets you modify the scale and parallax (as well as two unfortunately-unknown parameters).
virtual void ChooseUgBgStyle(ref int style)
Allows you to change which underground background style is being used.
Each background style determines in its own way how exactly the background is drawn. This class serves as a collection of functions for above-ground backgrounds.
virtual int ChooseFarTexture()
Allows you to determine which texture is drawn in the very back of the background. Mod.GetBackgroundSlot may be useful here, as well as for the other texture-choosing hooks.
virtual bool Autoload(ref string name)
Allows you to automatically add a ModUgBgStyle instead of using Mod.AddUgBgStyle. Return true to allo...
virtual bool Autoload(ref string name)
Allows you to automatically add a GlobalBgStyle instead of using Mod.AddGlobalBgStyle. 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 GlobalBgStyle.
This class serves to collect functions that operate on any kind of background style, without being specific to one single background style.
virtual bool ChooseBgStyle()
Whether or not the conditions have been met for this background style to draw its backgrounds...
virtual bool PreDrawCloseBackground(SpriteBatch spriteBatch)
Gives you complete freedom over how the closest part of the background is drawn. Return true for Choo...
virtual bool Autoload(ref string name)
Allows you to automatically add a ModSurfaceBgStyle instead of using Mod.AddSurfaceBgStyle. 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 ModSurfaceBgStyle.
virtual void ChooseSurfaceBgStyle(ref int style)
Allows you to change which surface background style is being used.
virtual void FillUgTextureArray(int style, int[] textureSlots)
Allows you to change which textures make up the underground background by assigning their background ...
virtual int ChooseMiddleTexture()
Allows you to determine which texture is drawn in the middle of the 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...
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. This class serves as a collection of functions for underground backgrounds.