Remove transparent property.

This commit is contained in:
2022-11-18 10:23:51 +08:00
parent bf942cbe45
commit 1be5cc77ca
5 changed files with 6 additions and 20 deletions

View File

@@ -5,7 +5,6 @@ namespace Cryville.Crtr.Components {
public abstract class SpriteBase : MeshBase {
public SpriteBase() {
SubmitProperty("bound", new op_set_bound(this));
SubmitProperty("transparent", new PropOp.Boolean(v => transparent = v));
SubmitProperty("pivot", new PropOp.Vector2(v => Pivot = v));
SubmitProperty("scale", new PropOp.Vector2(v => Scale = v));
SubmitProperty("ui", new PropOp.Boolean(v => UI = v));
@@ -91,10 +90,8 @@ namespace Cryville.Crtr.Components {
}
}
public bool transparent = false;
protected void InternalInit(string meshName = "quad") {
mesh.Init(transform, transparent);
mesh.Init(transform);
mesh.Mesh = GenericResources.Meshes[meshName];
UpdateScale();
UpdateZIndex();