1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-02-20 12:33:14 +00:00

Added pattern file name as a tooltip for their buttons

This commit is contained in:
OverloadedOrama 2020-07-13 03:44:08 +03:00
parent b47685e857
commit e04b79dd4b

View file

@ -221,7 +221,8 @@ func import_patterns(priority_ordered_search_path: Array) -> void:
var err := image.load(path.plus_file(pattern))
if err == OK:
image.convert(Image.FORMAT_RGBA8)
Global.patterns_popup.add(image)
var tooltip_name = pattern.get_basename()
Global.patterns_popup.add(image, tooltip_name)
func import_gpl(path : String, text : String) -> Palette: