Skip to content

Commit

Permalink
Update sample LuckyDraw use the UI Interface
Browse files Browse the repository at this point in the history
  • Loading branch information
ducphamhong committed Aug 19, 2024
1 parent 1a65425 commit 7813d60
Show file tree
Hide file tree
Showing 11 changed files with 128 additions and 572 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ namespace Skylicht
CUIBase::~CUIBase()
{
CUIEventManager* eventMgr = CUIEventManager::getInstance();
if (eventMgr->getFocus() == this)
if (eventMgr && eventMgr->getFocus() == this)
eventMgr->setFocus(NULL);

for (int i = 0, n = (int)EMotionEvent::NumEvent; i < n; i++)
Expand Down
1 change: 1 addition & 0 deletions Samples/LuckyDraw/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ include_directories(
${SKYLICHT_ENGINE_PROJECT_DIR}/Skylicht/Client/Source
${SKYLICHT_ENGINE_PROJECT_DIR}/Skylicht/Lightmapper/Source
${SKYLICHT_ENGINE_PROJECT_DIR}/Skylicht/Audio/Source
${SKYLICHT_ENGINE_PROJECT_DIR}/Skylicht/UserInterface/Source
${SKYLICHT_ENGINE_PROJECT_DIR}/ThirdParty/source/freetype2/include
)

Expand Down
158 changes: 0 additions & 158 deletions Samples/LuckyDraw/Source/CButton.cpp

This file was deleted.

41 changes: 0 additions & 41 deletions Samples/LuckyDraw/Source/CButton.h

This file was deleted.

Loading

0 comments on commit 7813d60

Please sign in to comment.