Skip to content

Commit

Permalink
add carousel
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas GUILLEMIN committed Jan 17, 2025
1 parent 9e8a8ce commit 702e31d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ OBJS = src/main.o\
src/kernel.o\
src/BasicFrame.o \
src/BackFrame.o \
src/CarrouselWindow.o \
src/SugarPiSetup.o\
src/Button.o\
src/ConfigurationManager.o\
Expand Down
14 changes: 13 additions & 1 deletion src/CarrouselWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ CarrouselWindow::CarrouselWindow(BasicFrame* display) :
bitmap_->GetSize(lw, lh);
logo_->Create(this, (w - lw) / 2,
(h/4 - lh) / 2, bitmap_);

}

CarrouselWindow::~CarrouselWindow()
Expand All @@ -31,6 +30,19 @@ CarrouselWindow::~CarrouselWindow()
delete bitmap_;
}

void CarrouselWindow::Create(Window* parent, int x, int y, unsigned int width, unsigned int height)
{
Window::Create(parent, x, y, width, height);

// Add internal windows :
// Screenshot window
// Description window
// Game selection stripe

// Fill inner game structure with "Carrousel" folder.

}

void CarrouselWindow::Clear()
{
Window::Clear();
Expand Down
12 changes: 11 additions & 1 deletion src/CarrouselWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,21 @@ class CarrouselWindow : public Window
CarrouselWindow(BasicFrame* display);
virtual ~CarrouselWindow();

virtual void Create(Window* parent, int x, int y, unsigned int width, unsigned int height);

virtual void Clear();

protected:
class GameDescription
{
public:
std::string name_;
std::string description_;

std::string sna_path_;
};

BitmapWindows* logo_;
MenuWindows* menu_;
SugarboxLogo* bitmap_;

};

0 comments on commit 702e31d

Please sign in to comment.