Jump to content

"PKHeX.Util+cbItem" appearing in egg memories.


Ceveth

Recommended Posts

It looks like you did everything correctly, that's definitely a bug in the code.

Make sure you're using the latest version. I looked at the latest code, and either it will be fixed in the next release, or I'm missing something since I don't have any saves to test it with.

Kaphotics, I think you're making it harder on yourself than you need to. Instead of setting the ComboBox display field and value fields, you can have PKHeX.Util.cbItem override ToString, returning cbItem.Text. That way, when you add it to a dropdown box, it will display whatever the ToString function returns.

Link to comment
Share on other sites

Fixed in the latest commit, didn't cast it properly. I also improved the loading speed by reducing unneeded operations ;)

[TABLE=class: diff-table tab-size-8 file-diff-split, width: 1781]

[TR]

[TD=class: blob-code blob-code-deletion base, bgcolor: #FFECEC]- string a = arg.Text;[/TD]

[TD=class: blob-num blob-num-addition head js-linkable-line-number, bgcolor: #DBFFDB, align: right][/TD]

[TD=class: blob-code blob-code-addition head, bgcolor: #EAFFEA]+ string a = ((Util.cbItem)(arg.SelectedItem)).Text;[/TD]

[/TR]

[/TABLE]

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...