Added hint_tooltip to file brushes

- File brushes now have their file name as their hint_tooltip.
- Changed horizontal & vertical ruler minor_subdivision to 4.
This commit is contained in:
OverloadedOrama 2019-11-25 18:56:53 +02:00
parent e940029979
commit 8132c8dcc5
4 changed files with 5 additions and 4 deletions

View file

@ -132,7 +132,7 @@ func _ready() -> void:
if err == OK:
image.convert(Image.FORMAT_RGBA8)
Global.custom_brushes.append(image)
Global.create_brush_button(image, Global.BRUSH_TYPES.FILE)
Global.create_brush_button(image, Global.BRUSH_TYPES.FILE, file)
file = brushes_dir.get_next()
brushes_dir.list_dir_end()
Global.brushes_from_files = Global.custom_brushes.size()