Skip to content

Instantly share code, notes, and snippets.

Avatar
:shipit:
Working

Josh Wood SK83RJOSH

:shipit:
Working
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am SK83RJOSH on github.
  • I am sk83rjosh (https://keybase.io/sk83rjosh) on keybase.
  • I have a public key whose fingerprint is C283 A4F0 C9EF 199A 222A 92BA 6591 786A 0D0B 66EC

To claim this, I am signing this object:

@SK83RJOSH
SK83RJOSH / imagepanel.lua
Created Nov 23, 2014
A shiv for using Images with ImagePanels
View imagepanel.lua
-- ImagePanel Image Shiv
-- Example Usage: ImagePanel.CreateFromImage(Image.Create(AssetLocation.Game, "bm_smg.dds"));
function ImagePanel.CreateFromImage(image, ...)
local panel = ImagePanel.Create(...)
panel:SetImage("RakNet.png")
panel:SetUV(Vector2.Zero, Vector2.Zero)
function panel:SetImage(image)
self.image = image