Norbyte / bg3se

Baldur's Gate 3 Script Extender
Other
1.15k stars 67 forks source link

Add enable/disable support from Lua to ImGui. #432

Closed FineRedMist closed 2 months ago

FineRedMist commented 3 months ago

Add support to enable and disable ImGui controls from Lua.

Norbyte commented 3 months ago

Hi,

This is already supported by setting the Disabled flag (it is exposed from ItemFlags).

ImGui::BeginDisabled(); and ImGui::EndDisabled(); is basically a special-case for the more generic ImGui::PushItemFlag and ImGui::PopItemFlag

FineRedMist commented 3 months ago

Ah! I'm on an older version without that code. I had issues with head rev crashing the game. This was based on a rev that corresponded (as close as I could tell) with the release.