feat core: Implement new default extension icons.

This commit is contained in:
prplwtf 2024-01-23 23:26:34 +01:00
parent dbe5f4cdd2
commit 172b7dadc2
6 changed files with 1 additions and 7 deletions

View file

@ -746,7 +746,7 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) ]]; then VCMD="y"
if [[ $icon == "" ]]; then if [[ $icon == "" ]]; then
# use random placeholder icon if extension does not # use random placeholder icon if extension does not
# come with an icon. # come with an icon.
icnNUM=$(( 1 + RANDOM % 9 )) icnNUM=$(( 1 + RANDOM % 5 ))
cp ".blueprint/assets/defaultExtensionLogo$icnNUM.jpg" ".blueprint/extensions/$identifier/assets/icon.jpg" cp ".blueprint/assets/defaultExtensionLogo$icnNUM.jpg" ".blueprint/extensions/$identifier/assets/icon.jpg"
else else
cp ".blueprint/tmp/$n/$icon" ".blueprint/extensions/$identifier/assets/icon.jpg" cp ".blueprint/tmp/$n/$icon" ".blueprint/extensions/$identifier/assets/icon.jpg"
@ -1442,12 +1442,6 @@ if [[ ( $2 == "-init" || $2 == "-I" ) ]]; then VCMD="y"
sed -i "s~␀author␀~${ASKAUTHOR}~g" .blueprint/tmp/init/conf.yml; #AUTHOR sed -i "s~␀author␀~${ASKAUTHOR}~g" .blueprint/tmp/init/conf.yml; #AUTHOR
sed -i "s~␀version␀~${VERSION}~g" .blueprint/tmp/init/conf.yml #BLUEPRINT-VERSION sed -i "s~␀version␀~${VERSION}~g" .blueprint/tmp/init/conf.yml #BLUEPRINT-VERSION
if [[ "${t_template_files_icon}" != "" ]]; then
icnNUM=$(( 1 + RANDOM % 9 ))
cp .blueprint/assets/defaultExtensionLogo"${icnNUM}".jpg .blueprint/tmp/init/"${t_template_files_icon}"
sed -i "s~␀icon␀~${t_template_files_icon}~g" .blueprint/tmp/init/conf.yml; #ICON
fi
# Return files to folder. # Return files to folder.
cp -R .blueprint/tmp/init/* .blueprint/dev/ cp -R .blueprint/tmp/init/* .blueprint/dev/

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 75 KiB