Example #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);
        }
Example #2
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);
 }