diff --git a/assets/bitmaps/button.png b/assets/bitmaps/button.png new file mode 100644 index 0000000..10a31f1 Binary files /dev/null and b/assets/bitmaps/button.png differ diff --git a/assets/bitmaps/ui_elements.txt b/assets/bitmaps/ui_elements.txt index 9edcebc..34cba6f 100644 --- a/assets/bitmaps/ui_elements.txt +++ b/assets/bitmaps/ui_elements.txt @@ -1,2 +1,2 @@ symtex_glyphs ../fonts/symtex.png -sdl_logo sdl.png \ No newline at end of file +button button.png \ No newline at end of file diff --git a/private/sdl_gpu_test/6_ui/app.cpp b/private/sdl_gpu_test/6_ui/app.cpp index 6958704..a6802fe 100644 --- a/private/sdl_gpu_test/6_ui/app.cpp +++ b/private/sdl_gpu_test/6_ui/app.cpp @@ -78,6 +78,11 @@ void UIApp::init(const AppInitArgs& args) .posX = 100, .posY = 100 }); + mButton = mWidgetTree.getRootWidget().emplaceChild