mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-16 08:13:46 +00:00
Boss patterns
This commit is contained in:
parent
5ef3e64413
commit
4541c5fbf4
7 changed files with 780 additions and 718 deletions
|
|
@ -118,7 +118,19 @@ public partial class PreviewMarker3D : Marker3D
|
|||
_sprite.SetBillboardMode(Billboard ? BaseMaterial3D.BillboardModeEnum.Enabled : BaseMaterial3D.BillboardModeEnum.Disabled);
|
||||
_sprite.TextureFilter = BaseMaterial3D.TextureFilterEnum.Nearest;
|
||||
_sprite.PixelSize = PixelSize;
|
||||
|
||||
}
|
||||
|
||||
protected void SetSpriteAlpha(float alpha)
|
||||
{
|
||||
if (!Engine.IsEditorHint()) return;
|
||||
if (_sprite is not null)
|
||||
{
|
||||
GD.Print($"Modulating sprite to {alpha}");
|
||||
_sprite.SetModulate(new Color(_sprite.Modulate.R, _sprite.Modulate.G, _sprite.Modulate.B, alpha));
|
||||
}
|
||||
else
|
||||
{
|
||||
GD.Print("Sprite was null");
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue