Skip to content

Commit

Permalink
- fix button mouse cursor being overrwritten by panel
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph-hart committed Oct 28, 2024
1 parent a21e1b8 commit 22fc800
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions hi_scripting/scripting/api/ScriptComponentWrappers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,14 @@ void ScriptCreatedComponentWrapper::sourceHasChanged(ComplexDataUIBase*, Complex

bool ScriptCreatedComponentWrapper::setMouseCursorFromParentPanel(ScriptComponent* sc, MouseCursor& c)
{
if(auto sb = dynamic_cast<ScriptingApi::Content::ScriptButton*>(sc))
{
auto mouseCursor = sb->getScriptObjectProperty(ScriptingApi::Content::ScriptButton::Properties::mouseCursor).toString();

if(mouseCursor != "ParentCursor")
return false;
}

if (sc == nullptr)
return false;

Expand Down

0 comments on commit 22fc800

Please sign in to comment.