Could we have these imgui functions back?

Discussion in 'Programming' started by LiterallyAPastry, Jul 25, 2024.

  1. LiterallyAPastry

    LiterallyAPastry
    Expand Collapse

    Joined:
    Jun 15, 2021
    Messages:
    42


    I of course don't know why they were removed, but it'd be awesome if it was just an accident and they can be readded :(

    A lot of our stuff depends on it :p
     
  2. daniel-w

    daniel-w
    Expand Collapse
    BeamNG Team

    Joined:
    Jan 28, 2017
    Messages:
    282
    Which functions? And they would have been removed for security reasons
     
    • Like Like x 1
  3. stenyak

    stenyak
    Expand Collapse
    Programmer & Global Moderator
    BeamNG Team

    Joined:
    Aug 6, 2012
    Messages:
    2,014
    The removal is intentional and won't be reverted. For now, the alternative is to do what our in-game console does:
    local exec = im.InputText("##inputText", consoleInputField, ffi.sizeof(consoleInputField), flags, ffi.C.ImGuiInputTextCallbackLua, ffi.cast("void*","ConsoleInputCallback"))

    However, that approach might or might not also get removed in the future - we can't promise anything at this point.
     
    • Like Like x 1
  4. LiterallyAPastry

    LiterallyAPastry
    Expand Collapse

    Joined:
    Jun 15, 2021
    Messages:
    42
    Thanks for clearning it up!
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice