mirror of
https://github.com/Relintai/MemR.git
synced 2024-11-14 10:27:20 +01:00
16 lines
251 B
GDScript3
16 lines
251 B
GDScript3
|
extends TextureRect
|
||
|
|
||
|
func load_gif(path : String) -> bool:
|
||
|
var reader = GifReader.new()
|
||
|
reader.filter = false
|
||
|
reader.mipmaps = false
|
||
|
|
||
|
var tex : AnimatedTexture = reader.read(path)
|
||
|
|
||
|
if tex == null:
|
||
|
return false
|
||
|
|
||
|
texture = tex
|
||
|
|
||
|
return true
|