Added dialogue manager plugin

This commit is contained in:
Matthew Barbour
2026-08-30 01:15:04 -05:00
parent e90ea3a0a4
commit f983ab64ce
186 changed files with 20125 additions and 0 deletions
@@ -0,0 +1,22 @@
class_name DMPreviewGenerator extends EditorResourcePreviewGenerator
const ICON: Texture2D = preload("../assets/resource.svg")
func _handles(type: String) -> bool:
return type == "Resource"
func _generate(resource: Resource, size: Vector2i, _metadata: Dictionary) -> Texture2D:
if resource is DialogueResource:
var image: Image = ICON.get_image()
image.resize(size.x, size.y, Image.INTERPOLATE_LANCZOS)
return ImageTexture.create_from_image(image)
return null
func _generate_small_preview_automatically() -> bool:
return true