示例#1
0
        public void CreateGUIComponent(GUI_SPRITES sprite_, float x_, float y_, int width_, int height_, bool active_)
        {
            GUI_Component button = new GUI_Component(x_, y_, width_, height_, active_);

            button.Texture = gameAssets.GUITextureList[(int)sprite_];
            gameAssets.GUIListAdd(button);
        }
示例#2
0
 public void GUIListAdd(GUI_Component e_)
 {
     lock (threadSafeLock)
     {
         GUIList.Add(e_);
     }
 }
示例#3
0
 public void GUIListAdd(GUI_Component e_)
 {
     lock (threadSafeLock)
     {
         GUIList.Add(e_);
     }
 }
示例#4
0
 public void CreateGUIComponent(GUI_SPRITES sprite_, float x_, float y_, int width_, int height_, bool active_)
 {
     GUI_Component button = new GUI_Component(x_, y_, width_, height_, active_);
     button.Texture = gameAssets.GUITextureList[(int)sprite_];
     gameAssets.GUIListAdd(button);
 }