//clickdrag //sun moon public static void Remove(int index) { hotbarButtons[index] = new HotbarButton(index); }
public static void RemoveAll() { for(int index = 0; index < MAX_BUTTONS; index++) hotbarButtons[index] = new HotbarButton(index); }
public static void Initialize(Texture2D tex) { hcolorIndex = 0; AllocConsole(); hotbarBoxTexture = tex; position = new Vector2(PADDING, Main.screenHeight - tex.Height - PADDING); for (int i = 0; i < MAX_BUTTONS; i++) { hotbarButtons[i] = new HotbarButton(i); } }