# SimpleTextureAPI (widget methods): World of Warcraft Forever API

Forever 1.60.1 (70959), Interface 16001, Lua 5.1, from Blizzard's own API documentation. Page: https://wowaddons.gg/forever-api/SimpleTextureAPI

## Functions

### AddMaskTexture

```lua
self:AddMaskTexture(mask)
```

Arguments:
- `mask`: SimpleMaskTexture

### GetMaskTexture

```lua
mask = self:GetMaskTexture(index)
```

Its returns can be secret values (in some instances and fights): guard them before any arithmetic.

Arguments:
- `index`: luaIndex

Returns:
- `mask`: SimpleMaskTexture

### GetNumMaskTextures

```lua
count = self:GetNumMaskTextures()
```

Its returns can be secret values (in some instances and fights): guard them before any arithmetic.

Returns:
- `count`: size

### RemoveMaskTexture

```lua
self:RemoveMaskTexture(mask)
```

Arguments:
- `mask`: SimpleMaskTexture

---
Make an addon with your AI: tell it "Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it."
