Skip to content

Document that EnableUserControl(true) fixes UI after DialogClear(dlg) on still displayed dialog #221

Description

@Slayer95

I met the broken UI issue randomly, and tried SetUserControlForceOn(bj_FORCE_ALL_PLAYERS) to fix it, and was fortunate enough that it worked.

Then I randomly found the docs on DialogClear:

Completely clears the dialog, its title and buttons, even if it is already open.
You must hide the dialog first, else the player will need to quit the game, because they will be unable to click anything or send a chat message.

Which agrees with the context in which the UI bug happened.

Goal is that these functions should refer to each other, in case someone experiences the same.

Note: SetUserControlForceOn(bj_FORCE_ALL_PLAYERS) is equivalent to EnableUserControl(true).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions