Even less outline generation
This commit is contained in:
@@ -615,6 +615,10 @@ public class UnitType extends UnlockableContent{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean needsBodyOutline(){
|
||||||
|
return alwaysCreateOutline;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void createIcons(MultiPacker packer){
|
public void createIcons(MultiPacker packer){
|
||||||
super.createIcons(packer);
|
super.createIcons(packer);
|
||||||
@@ -636,8 +640,8 @@ public class UnitType extends UnlockableContent{
|
|||||||
//currently does not create outlines for legs or base regions due to older mods having them outlined by default
|
//currently does not create outlines for legs or base regions due to older mods having them outlined by default
|
||||||
if(outlines){
|
if(outlines){
|
||||||
|
|
||||||
//outlines only created when weapons are drawn under w/ merged outlines
|
//outlines only created when forced at the moment
|
||||||
makeOutline(packer, region, alwaysCreateOutline || weapons.contains(w -> !w.top || w.parts.contains(p -> p.under)));
|
makeOutline(packer, region, alwaysCreateOutline);
|
||||||
|
|
||||||
for(Weapon weapon : weapons){
|
for(Weapon weapon : weapons){
|
||||||
if(!weapon.name.isEmpty()){
|
if(!weapon.name.isEmpty()){
|
||||||
|
|||||||
@@ -582,8 +582,8 @@ public class Generators{
|
|||||||
save(image, type.name);
|
save(image, type.name);
|
||||||
}
|
}
|
||||||
|
|
||||||
//outline only needs to be different if there's a weapon that draws under; most units don't have this, and it saves significant space.
|
//outline is currently never needed, although it could theoretically be necessary
|
||||||
if(type.weapons.contains(w -> !w.top)){
|
if(type.needsBodyOutline()){
|
||||||
save(image, type.name + "-outline");
|
save(image, type.name + "-outline");
|
||||||
}else{
|
}else{
|
||||||
replace(type.name, image);
|
replace(type.name, image);
|
||||||
|
|||||||
Reference in New Issue
Block a user