WeaponIcon record
public sealed record WeaponIcon A weapon’s icon on the wheel: one character from a font, as Half-Life 2’s are, or an image, or a rectangle of one. A record’s icon, icon_selected and ammo_icon are each a table of these keys, and give a font and a character or an image, never both. The wheel draws font icons. An image icon is read and kept, but the wheel doesn’t draw one yet, so a weapon with only an image icon shows its title alone.
icon = { font = "mygun:fonts/icons.ttf", character = "R" }
icon_selected = { image = "mygun:materials/railgun", region = [0, 0, 128, 64] }
- Assembly
- EvilEngine.Formats
- Commit
- 4ff877b1