Hi @thomthom and folks,
I just managed to insert custom cursors to this usefull plugin.
Attached are the .png files.
The images are in the same folder than "core.rb"
And this is the code :
def initialize(settings)
@settings = settings
folder_path = File.dirname(__FILE__)
cursor_name = 'cursor_select_curve.png'
cursor_select_curve_path = File.join(folder_path, cursor_name)
@result = File.file?(cursor_select_curve_path)
unless @result
msg = "Can't find the 'cursor icon' path"
UI.messagebox(msg, MB_OK)
return
end
cursor_name = 'cursor_select_curve_plus.png'
cursor_select_curve_plus_path = File.join(folder_path, cursor_name)
@result = File.file?(cursor_select_curve_plus_path)
unless @result
msg = "Can't find the 'cursor icon' path"
UI.messagebox(msg, MB_OK)
return
end
cursor_name = 'cursor_select_curve_minus.png'
cursor_select_curve_minus_path = File.join(folder_path, cursor_name)
@result = File.file?(cursor_select_curve_minus_path)
unless @result
msg = "Can't find the 'cursor icon' path"
UI.messagebox(msg, MB_OK)
return
end
cursor_name = 'cursor_select_curve_plus_minus.png'
cursor_select_curve_plus_minus_path = File.join(folder_path, cursor_name)
@result = File.file?(cursor_select_curve_plus_minus_path)
unless @result
msg = "Can't find the 'cursor icon' path"
UI.messagebox(msg, MB_OK)
return
end
@cursor_select = UI.create_cursor(cursor_select_curve_path, 9, 5)
# @cursor_select = TT;;Cursor.get_id( ;select )
@cursor_select_add = UI.create_cursor(cursor_select_curve_plus_path, 9, 5)
# @cursor_select_add = TT;;Cursor.get_id( ;select_add )
@cursor_select_remove = UI.create_cursor(cursor_select_curve_minus_path, 9, 5)
# @cursor_select_remove = TT;;Cursor.get_id( ;select_remove )
@cursor_select_toggle = UI.create_cursor(cursor_select_curve_plus_minus_path, 9, 5)
# @cursor_select_toggle = TT;;Cursor.get_id( ;select_toggle )
@ctrl = false
@shift = false
end
(I'm not good in Ruby, sorry)
Hope this helps.
Renaud
cursor_select_curve.png
cursor_select_curve_minus.png
cursor_select_curve_plus.png
cursor_select_curve_plus_minus.png