Skip to content

Instantly share code, notes, and snippets.

View CredenceHamby's full-sized avatar

CredenceHamby

  • RCMeta
  • Las Vegas, NV
  • 06:26 (UTC -04:00)
View GitHub Profile
@CredenceHamby
CredenceHamby / du-seamless-animated-images.rs.lua
Created August 8, 2023 16:53 — forked from matpratta/du-seamless-animated-images.rs.lua
🖥️ DU Render Script: Seamless Animated Images
-- Demo settings, fill them in with the data from your sprite sheet:
-- - Image: the uploaded link to the image
-- - Cols: number of columns on your sheet
-- - Rows: number of rows on your sheet
-- - FPS: desired frame rate for the animation
-- - Skip: how many frames are missing at end of sheet, used for seamless loops
local image = 'assets.prod.novaquark.com/113304/503a53c7-3fc0-418e-bb59-97e2dfcf1b8d.jpg'
local cols = 19
local rows = 12
/* Preview hover styles */
#theme_list ul li {
position:relative;
}
.product-preview{
position:absolute;
left:100%;
top:-1px;
margin-left:1px;
background:#222;
@CredenceHamby
CredenceHamby / wpf-class
Created January 5, 2013 19:17
Mingle Forum Adding User-Avatar Thickbox Link
$meta .= "<a class='thickbox' href='".$home_url."/wp-admin/admin-ajax.php?action=user_avatar_add_photo&step=1&uid=$user_ID&TB_iframe=true&width=720&height=450'>".__("Change your avatar", "mingleforum")."</a><br />";