public void cambiarTextura(string MediaDir, string texture) { spritePrincipal = new CustomBitmap(MediaDir + "XWing\\Textures\\" + texture, D3DDevice.Instance.Device); spriteActual.Bitmap = spritePrincipal; }
private Accion accion; //hace una accion dependiendo del boton que sea public Boton(string MediaDir, string texture, TgcD3dInput input, string mouseOverTexture, Accion accion) : base(MediaDir, texture, input) { spriteSeleccionado = new CustomBitmap(MediaDir + "XWing\\Textures\\" + mouseOverTexture, D3DDevice.Instance.Device); this.accion = accion; }
public Simbolo(string MediaDir, string texture, TgcD3dInput input) { spritePrincipal = new CustomBitmap(MediaDir + "XWing\\Textures\\" + texture, D3DDevice.Instance.Device); this.input = input; spriteActual.Bitmap = spritePrincipal; }