14 lines
291 B
GDScript
14 lines
291 B
GDScript
tool
|
|
extends Reference
|
|
|
|
var script_path : String
|
|
var todos : Array
|
|
|
|
func get_short_path() -> String:
|
|
var temp_array := script_path.rsplit('/', false, 1)
|
|
var short_path : String
|
|
if !temp_array[1]:
|
|
short_path = "(!)" + temp_array[0]
|
|
else:
|
|
short_path = temp_array[1]
|
|
return short_path
|