Author Topic: Load colour scheme by drag and drop  (Read 2653 times)

Offline jmkz

  • Workaholic artist
  • ***
  • Posts: 194
  • Gender: Male
    • jmkz Productions
  • Operating System: Windows Server 2012 R2
Load colour scheme by drag and drop
« on: August 12, 2010, 06:30:03 »
The title describes by itself, and a recognition in the treeview is requested too. Useful to load various and see what scheme likes or fits.
Little request  ::)

Offline Saga Musix

  • OpenMPT Developers
  • *****
  • Posts: 6,197
  • aka Jojo
    • Download music, samples, VST plugins: Saga Musix Website
  • Operating System: Windows 7 x64
Load colour scheme by drag and drop
« Reply #1 on: August 12, 2010, 11:10:36 »
I'm not sure if it's currently doable, since the colours are just stored in a normal INI file (same format as mptrack.ini for example) - and recognizing files by file extensions is not a good idea (MPT doesn't do that anywhere when it comes to _loading_ files). Maybe a solution can be found, but I can't promise anything right now.
» No support, bug reports, feature requests via private messages - they will not be answered. Use the forums and the issue tracker so that everyone can benefit from your post.

Offline jmkz

  • Workaholic artist
  • ***
  • Posts: 194
  • Gender: Male
    • jmkz Productions
  • Operating System: Windows Server 2012 R2
Re: Load colour scheme by drag and drop
« Reply #2 on: December 26, 2010, 08:17:55 »
Just a question: What happens or why is not a good idea with file extension recognition?

Offline Saga Musix

  • OpenMPT Developers
  • *****
  • Posts: 6,197
  • aka Jojo
    • Download music, samples, VST plugins: Saga Musix Website
  • Operating System: Windows 7 x64
Re: Load colour scheme by drag and drop
« Reply #3 on: December 26, 2010, 10:59:47 »
Just a question: What happens or why is not a good idea with file extension recognition?
Because a file extension doesn't tell you anything about the content; There are many wrongly-named files (like S3M files called foo.mod) which could not be loaded if loading was based on file extensions. Similary, many modules from the Amiga follow a different naming convention where the extension is in front of the file name (mod.foo), and websites like ModLand have added extensions like .m15 or something for 15-sample mods, while you could just call them .mod as well. All these special cases couldn't be handled with a file extension list.
» No support, bug reports, feature requests via private messages - they will not be answered. Use the forums and the issue tracker so that everyone can benefit from your post.