latex bot discord
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#if TOOLS
using Godot;
using System;

[Tool]
public class GodoTeX : EditorPlugin {
	public override void _EnterTree() {
		var texture_grey = GD.Load<Texture>("addons/GodoTeX/iconGrey.svg");
		var texture_script = GD.Load<Script>("addons/GodoTeX/LaTeXture.cs");
		AddCustomType("LaTeXture", "ImageTexture", texture_script, texture_grey);
	}

	public override void _ExitTree() {
		RemoveCustomType("LaTeXture");
	}
}
#endif