Added 2.2 form to icon kit
Unknown name, referred to as "swing" in the game files so let's go with that
|
@ -124,7 +124,7 @@ module.exports = async (app, req, res) => {
|
|||
recolor(ic, col1)
|
||||
ic.composite(glow, (iconSize[0] / 2) - (size[0] / 2) + offset[0], (iconSize[1] / 2) - (size[1] / 2) - offset[1], { mode: Jimp.BLEND_DESTINATION_OVER })
|
||||
|
||||
if (form == "ufo") {
|
||||
if (form == "ufo") { //ufo top WIP
|
||||
ic.contain(iconSize[0], iconSize[1] * 1.1, Jimp.HORIZONTAL_ALIGN_CENTER | Jimp.VERTICAL_ALIGN_CENTER)
|
||||
//ic.contain(iconSize[0], 300, Jimp.HORIZONTAL_ALIGN_CENTER | Jimp.VERTICAL_ALIGN_BOTTOM)
|
||||
//ic.composite(ufoTop, (iconSize[0] / 2) - (size[0] / 2) + 7, iconSize[1] + topOffset[3] + 30, {mode: Jimp.BLEND_DESTINATION_OVER})
|
||||
|
@ -263,6 +263,7 @@ module.exports = async (app, req, res) => {
|
|||
|
||||
if (useExtra) ic.composite(extra, imgOff + (iconSize[0] / 2) - (size2[0] / 2) + offset2[0], (iconSize[1] / 2) - (size2[1] / 2) - offset2[1])
|
||||
if (form != "ufo") ic.autocrop(0.01, false)
|
||||
if (form == "swing") ic.resize(120, 111)
|
||||
else if (ic.bitmap.height == '300') ic.autocrop(1, false)
|
||||
|
||||
let finalSize = [ic.bitmap.width, ic.bitmap.height]
|
||||
|
|
BIN
assets/iconkitbuttons/blank_off.png
Normal file
After Width: | Height: | Size: 6.3 KiB |
BIN
assets/iconkitbuttons/blank_on.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
assets/iconkitbuttons/swing_off.png
Normal file
After Width: | Height: | Size: 8.2 KiB |
BIN
assets/iconkitbuttons/swing_on.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
assets/iconkitbuttons/wave_off - Copy.png
Normal file
After Width: | Height: | Size: 3 KiB |
BIN
assets/iconkitbuttons/wave_on - Copy.png
Normal file
After Width: | Height: | Size: 5.7 KiB |
|
@ -596,7 +596,7 @@
|
|||
<div class="subdiv" id="params-icons">
|
||||
<p><b>Parameters can be used to modify parts of a fetched user's icon</b></p>
|
||||
<p>IDs generally correspond to their order of appearance in GD</p>
|
||||
<p>form: The form of the icon (cube/ship/ball/ufo/wave/robot/spider/cursed)</p>
|
||||
<p>form: The form of the icon (cube/ship/ball/ufo/wave/robot/spider/cursed/swing)</p>
|
||||
<p>icon: The ID of the icon to use</p>
|
||||
<p>col1: The ID of the primary color to use</p>
|
||||
<p>col2: The ID of the secondary color to use</p>
|
||||
|
|
|
@ -49,7 +49,7 @@ $('#loading').hide();
|
|||
$('.hidden').show();
|
||||
|
||||
let mobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)
|
||||
let forms = ['cube', 'ship', 'ball', 'ufo', 'wave', 'robot', 'spider']
|
||||
let forms = ['cube', 'ship', 'ball', 'ufo', 'wave', 'robot', 'spider', 'swing']
|
||||
let currentForm = 'cube'
|
||||
|
||||
let selectedIcon = 1
|
||||
|
@ -128,6 +128,9 @@ fetch('./api/icons').then(res => {
|
|||
$(this).children().not('#iconprogressbar').hide()})
|
||||
|
||||
if ($(forms).html() == "") appendIcon(filterIcon(form), form)
|
||||
|
||||
if (form == "swing") $('#swings').append("<p class='white'>Since the texture was ripped from GD Meltdown, there's no UHD version available.</p>")
|
||||
|
||||
$(forms).show()
|
||||
})
|
||||
|
||||
|
|
|
@ -26,5 +26,9 @@
|
|||
"cursed": {
|
||||
"form": "spider",
|
||||
"ind": 43
|
||||
},
|
||||
"swing": {
|
||||
"form": "swing",
|
||||
"ind": -1
|
||||
}
|
||||
}
|
|
@ -35176,5 +35176,83 @@
|
|||
]
|
||||
],
|
||||
"textureRotated": false
|
||||
},
|
||||
"swing_01_001.png": {
|
||||
"aliases": [],
|
||||
"spriteOffset": [
|
||||
-2,
|
||||
0
|
||||
],
|
||||
"spriteSize": [
|
||||
68,
|
||||
60
|
||||
],
|
||||
"spriteSourceSize": [
|
||||
72,
|
||||
60
|
||||
],
|
||||
"textureRect": [
|
||||
[
|
||||
978,
|
||||
702
|
||||
],
|
||||
[
|
||||
68,
|
||||
60
|
||||
]
|
||||
],
|
||||
"textureRotated": false
|
||||
},
|
||||
"swing_01_2_001.png": {
|
||||
"aliases": [],
|
||||
"spriteOffset": [
|
||||
11,
|
||||
6
|
||||
],
|
||||
"spriteSize": [
|
||||
20,
|
||||
20
|
||||
],
|
||||
"spriteSourceSize": [
|
||||
42,
|
||||
32
|
||||
],
|
||||
"textureRect": [
|
||||
[
|
||||
1764,
|
||||
1591
|
||||
],
|
||||
[
|
||||
20,
|
||||
20
|
||||
]
|
||||
],
|
||||
"textureRotated": false
|
||||
},
|
||||
"swing_01_extra_001.png": {
|
||||
"aliases": [],
|
||||
"spriteOffset": [
|
||||
12,
|
||||
8
|
||||
],
|
||||
"spriteSize": [
|
||||
24,
|
||||
24
|
||||
],
|
||||
"spriteSourceSize": [
|
||||
50,
|
||||
40
|
||||
],
|
||||
"textureRect": [
|
||||
[
|
||||
1649,
|
||||
1564
|
||||
],
|
||||
[
|
||||
24,
|
||||
24
|
||||
]
|
||||
],
|
||||
"textureRotated": false
|
||||
}
|
||||
}
|
BIN
icons/iconkit/swing-01.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
icons/swing_01_001.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
icons/swing_01_2_001.png
Normal file
After Width: | Height: | Size: 358 B |
BIN
icons/swing_01_extra_001.png
Normal file
After Width: | Height: | Size: 753 B |