public ChestCategory(string name, CustomInventoryMenu parentMenu, Vector2 offset, Texture2D texture, Rectangle sourceRect, IList <int> categoryIds) : base( name, parentMenu, offset, texture, sourceRect, MegaStorageMod.ModHelper.Translation.Get($"category.{name}")) { _categoryIds = categoryIds; }
public CustomClickableTextureComponent( string name, CustomInventoryMenu parentMenu, Vector2 offset, Texture2D texture, Rectangle sourceRect, string hoverText = "", int width = Game1.tileSize, int height = Game1.tileSize, float scale = Game1.pixelZoom) : base(name, new Rectangle(parentMenu.xPositionOnScreen + (int)offset.X, parentMenu.yPositionOnScreen + (int)offset.Y, width, height), "", hoverText, texture, sourceRect, scale) { ParentMenu = parentMenu; Offset = offset; }
public AllCategory(string name, CustomInventoryMenu parentMenu, Vector2 offset, Rectangle sourceRect) : base(name, parentMenu, offset, MegaStorageMod.Instance.Helper.Content.Load <Texture2D>(Path.Combine("assets", "AllTab.png")), sourceRect, null) { }
public MiscCategory(string name, CustomInventoryMenu parentMenu, Vector2 offset, Rectangle sourceRect, IList <int> categoryIds) : base(name, parentMenu, offset, Game1.mouseCursors, sourceRect, categoryIds) { }