Skip to content

Instantly share code, notes, and snippets.

View SK83RJOSH's full-sized avatar
🐢

Josh Wood SK83RJOSH

🐢
View GitHub Profile
@SK83RJOSH
SK83RJOSH / imagepanel.lua
Created November 23, 2014 18:33
A shiv for using Images with ImagePanels
-- 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

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: