Skip to content

Commit

Permalink
Register CUICellItem in the UI focus system (#943)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Jan 6, 2025
1 parent 186e3d8 commit 2940221
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/xrGame/ui/UICellItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ CUICellItem::CUICellItem()
m_has_upgrade = false;

init();

UI().Focus().RegisterFocusable(this);
}

CUICellItem::~CUICellItem()
Expand All @@ -44,6 +46,8 @@ CUICellItem::~CUICellItem()
delete_data(m_childs);

delete_data(m_custom_draw);

UI().Focus().UnregisterFocusable(this);
}

void CUICellItem::init()
Expand Down

0 comments on commit 2940221

Please sign in to comment.