It would be nice to take a leaf from MSVC and modern browsers and implement a mini search bar that pops up at the top of the script view when you press Ctrl+F and highlights text as you type.
I assume it'll be implemented via search-and-replace on the pixels themselves?
Oh, BTW I'm adding a new feature, the master palette. It's attached to the ImageEditControl, what it does is shows you the palette used by the whole image. If you change a color there, it changes every pixel automatically. It's useful for map editing when you want to edit multiple tiles pixel colors all at once than painstakingly selecting them one at a time.
As for the palette selector, I have finished it. The hardest part is ordering the colors correctly. Right now I'm just ordering by Hue. But there always seem to be outliers in the sort. That's because 3 components make up a color: HSL or RGB. But by ordering by lightness curves, etc. it is still not perfect. In fact I have found no good algorithm for this. A very few solutions online are quite accurate, but still they only get it right about 90% of the time. But for our human eye, we know how to sort colors, a problem devilishly complex for a computer to solve.Do you guys care about perfectly sorted colors?
Nice job!I haven't tried it out, so this is just a list to make sure the UX is decent:1. Make it so that when you select a word and hit Ctrl+F, it pre-populates the dialog like in Visual Studio. 2. And make it so that when you do that with Ctrl+F, hitting Ctrl+H turns it into the Search & Replace without losing the settings.3. Then if the dialog is popped up and you hit enter, either search or search & replace the text in the text boxes. This is about focus, we shouldn't have to click on the box when we hit Ctrl +F to search and replace your brain is in "search and replace mode".With those 3 things working, the search and replace will feel like it's not there.
All your points above should be covered. I went to great pains to make it behave exactly like MSVC's search box, which involved a lot of screwing around and trying different things (basically the same method I used to make minisphere compatible with Sphere 1.x -- brute-force reverse engineering )
That highlighting feature is something I would love to see in Sphere Studio someday, but alas, Scintilla isn't quite that powerful.