Git Product home page Git Product logo

Comments (15)

Catvert avatar Catvert commented on May 31, 2024 1

I thought the problem had to be internal!
Of course, as soon as I have a satisfying result, I will share screenshots!
Thanks again !

from imgui.

elect86 avatar elect86 commented on May 31, 2024

Salut!

I set a deep of integers to 100, maybe it's that (125 looks weird..)

Anyway, I increases to 500

pull again and let me know :)

Ps: cool screenshot! Once you reach a nice point, would you like to share it in a gallery?

from imgui.

Catvert avatar Catvert commented on May 31, 2024

Hi, I didn't check if the patch worked but apparently it doesn't work, I still have the same problem.

from imgui.

elect86 avatar elect86 commented on May 31, 2024

Uhm, I should debug that, is it always the same project? How can I reach that menu?

from imgui.

Catvert avatar Catvert commented on May 31, 2024

Yes, It's in Platform-Creator, the code is situate in the last commit to the components/graphics/AtlasComponent.kt line 307, and in the game, open the game, click on the button Jouer then on the button Nouveau then click on Crรฉer. Now in the editor, left click on the player, it should open a properties gameobject window, then open the collapsing header components, select the AtlasComponent then click on the ร‰diter button. It should open a window and in it just expand the collapsing header Ressources. You will now have the image buttons to change the texture of the gameobject, when there is a large number of image button, for example in the pack "elements", buttons with an index greater than ~ 100 no longer respond to the click. I hope I have been clear enough, if you have questions I am here. Thanks

from imgui.

elect86 avatar elect86 commented on May 31, 2024

Thanks for description, it was useful.

Anyway, problem had to do with the fact that

System.identityHashCode(++ptrIndices)

where

var ptrIndices = 0

didn't return always the same value for integers bigger than 125

I have no idea why, but I tested using bytes instead and it works (please don't ask why ^^, I'll open an issue on stackOverflow maybe)

Anyway, I don't have the possibility to test it now, so if you can I'm looking forward to know if it does work for you

from imgui.

Catvert avatar Catvert commented on May 31, 2024

I tested and the solution seemed to work but I then encounter another problem when there are more than 256 buttons, I get:

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 256
   at imgui.internal.Window.getId(classes.kt:505)
   at imgui.imgui.imgui_idScopes$DefaultImpls.pushId(idScopes.kt:19)
   at imgui.ImGui.pushId(imgui.kt:29)
   at imgui.imgui.imgui_widgetsMain$DefaultImpls.imageButton(widgetsMain.kt:115)
   at imgui.ImGui.imageButton(imgui.kt:29)
   at imgui.imgui.imgui_widgetsMain$DefaultImpls.imageButton$default(widgetsMain.kt:108)

I don't know if this problem is voluntary or not, but I can't find an effective way to fix it, I've tried to create a group every time there are more than 256 items but I still have this error that happens.

from imgui.

elect86 avatar elect86 commented on May 31, 2024

Doubled the size to 512, is it enough?

from imgui.

Catvert avatar Catvert commented on May 31, 2024

Yes it's perfect ! it works like a charm :)

from imgui.

elect86 avatar elect86 commented on May 31, 2024

Excellent ๐Ÿ‘

from imgui.

Catvert avatar Catvert commented on May 31, 2024

I have another question while we're at it ahah, when do you think the inputText will work? What's your problem with it? :)

from imgui.

elect86 avatar elect86 commented on May 31, 2024

I have another question while we're at it ahah,

sure dear ^^

when do you think the inputText will work? What's your problem with it? :)

:D I need to find time to seriously drive deep inside it, however if you point me out simple dead bugs I might be try to focus on that singularly at the moment (step by step)

from imgui.

Catvert avatar Catvert commented on May 31, 2024

Of course, I'd be happy to help you! I use a lot of inputText in my game so I can easily find some bugs. Do you want me to open a new issue to discuss in this one? :)

from imgui.

elect86 avatar elect86 commented on May 31, 2024

As you prefer, although maybe a separate issue may be more useful to distinguish from other ones and be easier to be tracked by users

from imgui.

Catvert avatar Catvert commented on May 31, 2024

Yeah, that's what I thought.

from imgui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.