Skip to content

Commit

Permalink
xrGame/ui/UIAchievements.cpp: register achievement entries as focusab…
Browse files Browse the repository at this point in the history
…le (#943)
  • Loading branch information
Xottab-DUTY committed Feb 1, 2025
1 parent 2c1bb68 commit 19b1fe7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/xrGame/ui/UIAchievements.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,16 @@
#include "xrScriptEngine/script_engine.hpp"

CUIAchievements::CUIAchievements(CUIScrollView* parent)
: CUIWindow(CUIAchievements::GetDebugType()), m_parent(parent) {}
: CUIWindow(CUIAchievements::GetDebugType()), m_parent(parent)
{
UI().Focus().RegisterFocusable(this);
}

CUIAchievements::~CUIAchievements() { xr_delete(m_hint); }
CUIAchievements::~CUIAchievements()
{
xr_delete(m_hint);
UI().Focus().UnregisterFocusable(this);
}

void CUIAchievements::init_from_xml(CUIXml& xml)
{
Expand Down

0 comments on commit 19b1fe7

Please sign in to comment.