garrysmod icon indicating copy to clipboard operation
garrysmod copied to clipboard

Added killicon.AddTexture()

Open HaodongMo opened this issue 3 years ago • 1 comments

Adds the ability to add non-VMT based killicons by passing killicons directly into the killicon table, making the process for creating killicons much easier, and finally allowing for dynamically generated killicons and .png killicons. One image can now be used to populate spawn icon, select icon, and kill icon, much more easily.

HaodongMo avatar Jun 25 '21 06:06 HaodongMo

IS it possible to combine GWEN.CreateTextureBorder with surface.DrawTexturedRectUV?

vega0 avatar Jul 03 '21 11:07 vega0

This wouldn't allow you to use .png kill icons, as the texture field is a texture ID that is still bound to limitations of this function: https://wiki.facepunch.com/gmod/surface.SetTexture

This PR is closer to what you want: https://github.com/Facepunch/garrysmod/pull/1158

robotboy655 avatar Oct 10 '23 13:10 robotboy655