Added 2.2 form to icon kit

Unknown name, referred to as "swing" in the game files so let's go with that
This commit is contained in:
Colon 2019-12-12 16:09:41 -05:00
parent e713b3f2ea
commit 36260d8906
15 changed files with 89 additions and 3 deletions

View file

@ -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]

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

View file

@ -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>

View file

@ -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()
})

View file

@ -26,5 +26,9 @@
"cursed": {
"form": "spider",
"ind": 43
},
"swing": {
"form": "swing",
"ind": -1
}
}

View file

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
icons/swing_01_001.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
icons/swing_01_2_001.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 358 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 753 B