Skip to content

guiSetAlpha does not affect edit box caret #421

Open
@qaisjp

Description

@qaisjp

Describe the bug
Changing the alpha of an edit box does not affect its caret and does not allow the cursor to blink.

To Reproduce
Steps to reproduce the behavior:

  1. crun edit = guiCreateEdit(500,500,100,20,"",false)
  2. Click the edit.
  3. crun guiSetAlpha(edit,0.2)
  4. You will see the edit caret is still 100% alpha.
  5. crun guiSetAlpha(edit,0) will not have any effect on edit caret.

Expected behavior
The alpha of the caret should be equal to the alpha of the edit box.

Additional context
From https://bugs.mtasa.com/view.php?id=9306

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggui

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions