mirror of
https://github.com/Relintai/MemR.git
synced 2024-12-25 14:07:19 +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
|