kotlin-graphics / imgui

Bloat-free Immediate Mode Graphical User interface for JVM with minimal dependencies (rewrite of dear imgui)
MIT License
603 stars 36 forks source link

[Java] Drag drop payload always returning an empty byte array #58

Closed swidku closed 5 years ago

swidku commented 6 years ago

Example

No matter what I set the payload to it only returns empty bytes in the return array. Is there something I'm missing here?

elect86 commented 6 years ago

Uhm, no idea because I never had a chance to use it..

Is it urgent? Because I'd like first to catch up the original and then try to fix it, I guess a week or so..

swidku commented 6 years ago

Not an urgent issue. I'm not very familiar with koltin but from what I see in the dragDropSource function the only two things implemented to be put into the payload is vec2's and integers.

elect86 commented 6 years ago

Hi, quick info: my machine got broken, I'll be back asap

elect86 commented 6 years ago

There seems to be a bug with the hash function.. it fire an IndexOutOfBounds exception..

elect86 commented 5 years ago

Hey @KuliuTho,

sorry for the huge delay, but many things came in the way..

Anyway, this was quite tricky because the hash function was failing since I had to pass a String, but the problem was that special values, such as -23 arent valid and they get automatically changed. This happens because the default charset used is UTF8. Instead, with ISO-8859-1 all values are valid

Give it a try, I also filled all the other possibilities, Vec2 included

Sylvyrfysh commented 5 years ago

Hi! Friendly reminder that there has been no activity here for over a month and this appears to be fixed. If you wish to keep this open, please respond with what still is an issue, or this will be closed in a week. Thanks!