예제 #1
0
파일: Hotbar.cs 프로젝트: MEFBAEA/mefbaea
 //clickdrag
 //sun moon
 public static void Remove(int index)
 {
     hotbarButtons[index] = new HotbarButton(index);
 }
예제 #2
0
파일: Hotbar.cs 프로젝트: MEFBAEA/mefbaea
 public static void RemoveAll()
 {
     for(int index = 0; index < MAX_BUTTONS; index++)
         hotbarButtons[index] = new HotbarButton(index);
 }
예제 #3
0
파일: Hotbar.cs 프로젝트: MEFBAEA/mefbaea
 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);
     }
 }