Pages: 1
Posted on 09-02-12, 05:42 pm
Banned for being a complete idiot.

Karma: 529
Posts: 956/987
Since: 07-09-11
I got an idea for a nicer looking sprite selection menu.

You can group sprites according to the way you grouped it in the Sprite Database in a expandable tree, so it'll be easier to see all the objects avaliable.

Also, I'm not sure how this will work exactly, but you can show a thumbnail of that sprite next to the sprite name so people will know what it looks like without needing to place it first to see what it looks like. But the 1st request is a higher priority.
Posted on 09-02-12, 07:07 pm
Fire Brother
Eugene

Karma: 3646
Posts: 57/1120
Since: 11-29-11
interesting...
That's a good idea!
Posted on 09-02-12, 09:50 pm
Fuzzy
Full mod

Karma: 1183
Posts: 501/785
Since: 06-28-11
Sounds like a good idea, but I don't think the sprite categories are stored in the sprite data file right now. Would be an easy fix, but could cause compatibility issues for older versions of the editor.

For the sprite selector, we could use a treeview control. They have support for owner drawing, so the invalid sprites could still be displayed red and all sprites could have their sprite set number displayed on the right. I just don't know if this is the most effective method because expanding and collapsing treeviews is pretty slow. I think a listbox control that operates kind of like the directory structure in windows explorer would work well. You can double click (or single click maybe) a category and that will refill the list with all sprites in that category. Then you can click a back button to go back to the category list.

The sprite icons sounds like a good idea too, but it would be a decent amount of work to make all of these. We would have to have 16x16 icons for each sprite or it would take up too much room. Getting icons this small for all sprites that are still representative of them could be hard.
Posted on 09-02-12, 09:55 pm
Birdo


Karma: 3304
Posts: 617/2021
Since: 06-28-11
Pretty much anything that could organize the sprites would be good, as for now, you have to know the number they are, and sometimes, I cant find a sprite I want...
_________________________

Posted on 09-02-12, 09:57 pm
Fuzzy
Full mod

Karma: 1183
Posts: 502/785
Since: 06-28-11
Posted by gridatttack
Pretty much anything that could organize the sprites would be good, as for now, you have to know the number they are, and sometimes, I cant find a sprite I want...

It can be a pain to find stuff in that large list, but that's why the search bar is there. I usually know what a sprite is called and can find it easily with that.
Posted on 09-02-12, 09:59 pm


Karma: 3752
Posts: 1479/2112
Since: 06-28-11
Personally I don't need any changes in the sprite system. I am happy how it is right now.
Posted on 09-02-12, 10:02 pm
Birdo


Karma: 3304
Posts: 618/2021
Since: 06-28-11
Posted by Piranhaplant
Posted by gridatttack
Pretty much anything that could organize the sprites would be good, as for now, you have to know the number they are, and sometimes, I cant find a sprite I want...

It can be a pain to find stuff in that large list, but that's why the search bar is there. I usually know what a sprite is called and can find it easily with that.


Well, I dont know how I missed that function... <_<

_________________________

Posted on 09-03-12, 01:17 am
Super Mario
( ͡° ͜ʖ ͡°)

Karma: 10010
Posts: 2423/4457
Since: 06-08-11
I dunno if the current sprite data file stores categories. Anyways when I updated the DB, I added support for exporting XML. That one does contain category info. We should adapt NSMBe to work with it, this way we'll get no more "bad spritedata.txt" errors.

The file itself is here: http://nsmbhd.net/spritexml.php

As for the UI part, I'd do a "Category" dropdown box, that contains all the categories plus an "Everything" category.
And we should make search play well with categorizing somehow, of course.

About the sprite preview thing, we could reuse the existing system for sprite drawing somehow, but I don't think it'd be too useful.
Posted on 09-03-12, 01:51 am
Fuzzy
Full mod

Karma: 1183
Posts: 504/785
Since: 06-28-11
The current format doesn't store categories, so we'll need to upgrade to the XML format. I'll work on converting the editor over to the XML format, although I think parsing XML is harder despite the built in classes for doing so.

A dropdown box for the categories will work very well and I think that's what we should go with. For the search, I think it should search the sprites only in the currently selected category.

I think I'm going to nix the sprite preview thing though. Unless someone else wants to make a bunch of images for this, I don't want to put in that much work for something with little payoff.
Posted on 09-03-12, 02:04 am
Super Mario
( ͡° ͜ʖ ͡°)

Karma: 10010
Posts: 2426/4457
Since: 06-08-11
 Arisotura made XML reading in SM64DSe, you might want to look at how he did it: http://code.google.com/p/sm64dse/

And yeah I agree, the preview thing is overkill.
Posted on 09-03-12, 02:26 am
Fuzzy
Full mod

Karma: 1183
Posts: 505/785
Since: 06-28-11
Thanks! I'm taking a look at it right now and it shouldn't be too difficult to implement.
Posted on 09-04-12, 02:47 am
Fuzzy
Full mod

Karma: 1183
Posts: 509/785
Since: 06-28-11
Implemented in build 339. It works nice and definitely makes it easier to find sprites, although some sprites need to be recategorized in the DB.
Pages: 1