mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-04-02 18:25:30 +02:00
Setting code formatting standard to allman.
This commit is contained in:
@@ -16,56 +16,68 @@ class Sound;
|
||||
class Page : public MenuNotifierInterface
|
||||
{
|
||||
public:
|
||||
enum ScrollDirection
|
||||
{
|
||||
ScrollDirectionForward,
|
||||
ScrollDirectionBack,
|
||||
ScrollDirectionIdle
|
||||
enum ScrollDirection
|
||||
{
|
||||
ScrollDirectionForward,
|
||||
ScrollDirectionBack,
|
||||
ScrollDirectionIdle
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
Page(std::string collectionName);
|
||||
virtual ~Page();
|
||||
virtual void OnNewItemSelected(Item *);
|
||||
void SetItems(std::vector<Item *> *items);
|
||||
void SetMenu(ScrollingList *s);
|
||||
void SetLoadSound(Sound *chunk) { LoadSoundChunk = chunk; }
|
||||
void SetUnloadSound(Sound *chunk) { UnloadSoundChunk = chunk; }
|
||||
void SetHighlightSound(Sound *chunk) { HighlightSoundChunk = chunk; }
|
||||
void SetSelectSound(Sound *chunk) { SelectSoundChunk = chunk; }
|
||||
bool AddComponent(Component *c);
|
||||
void PageScroll(ScrollDirection direction);
|
||||
void Start();
|
||||
void Stop();
|
||||
void SetScrolling(ScrollDirection direction);
|
||||
Item *GetSelectedItem();
|
||||
Item *GetPendingSelectedItem();
|
||||
void RemoveSelectedItem();
|
||||
bool IsIdle();
|
||||
bool IsHidden();
|
||||
void Update(float dt);
|
||||
void Draw();
|
||||
void FreeGraphicsMemory();
|
||||
void AllocateGraphicsMemory();
|
||||
void LaunchEnter();
|
||||
void LaunchExit();
|
||||
const std::string& GetCollectionName() const;
|
||||
Page(std::string collectionName);
|
||||
virtual ~Page();
|
||||
virtual void OnNewItemSelected(Item *);
|
||||
void SetItems(std::vector<Item *> *items);
|
||||
void SetMenu(ScrollingList *s);
|
||||
void SetLoadSound(Sound *chunk)
|
||||
{
|
||||
LoadSoundChunk = chunk;
|
||||
}
|
||||
void SetUnloadSound(Sound *chunk)
|
||||
{
|
||||
UnloadSoundChunk = chunk;
|
||||
}
|
||||
void SetHighlightSound(Sound *chunk)
|
||||
{
|
||||
HighlightSoundChunk = chunk;
|
||||
}
|
||||
void SetSelectSound(Sound *chunk)
|
||||
{
|
||||
SelectSoundChunk = chunk;
|
||||
}
|
||||
bool AddComponent(Component *c);
|
||||
void PageScroll(ScrollDirection direction);
|
||||
void Start();
|
||||
void Stop();
|
||||
void SetScrolling(ScrollDirection direction);
|
||||
Item *GetSelectedItem();
|
||||
Item *GetPendingSelectedItem();
|
||||
void RemoveSelectedItem();
|
||||
bool IsIdle();
|
||||
bool IsHidden();
|
||||
void Update(float dt);
|
||||
void Draw();
|
||||
void FreeGraphicsMemory();
|
||||
void AllocateGraphicsMemory();
|
||||
void LaunchEnter();
|
||||
void LaunchExit();
|
||||
const std::string& GetCollectionName() const;
|
||||
|
||||
private:
|
||||
void Highlight();
|
||||
std::string CollectionName;
|
||||
ScrollingList *Menu;
|
||||
static const unsigned int NUM_LAYERS = 8;
|
||||
std::vector<Component *> LayerComponents[NUM_LAYERS];
|
||||
std::vector<Item *> *Items;
|
||||
bool ScrollActive;
|
||||
Item *SelectedItem;
|
||||
bool SelectedItemChanged;
|
||||
Sound *LoadSoundChunk;
|
||||
Sound *UnloadSoundChunk;
|
||||
Sound *HighlightSoundChunk;
|
||||
Sound *SelectSoundChunk;
|
||||
bool HasSoundedWhenActive;
|
||||
bool FirstSoundPlayed;
|
||||
void Highlight();
|
||||
std::string CollectionName;
|
||||
ScrollingList *Menu;
|
||||
static const unsigned int NUM_LAYERS = 8;
|
||||
std::vector<Component *> LayerComponents[NUM_LAYERS];
|
||||
std::vector<Item *> *Items;
|
||||
bool ScrollActive;
|
||||
Item *SelectedItem;
|
||||
bool SelectedItemChanged;
|
||||
Sound *LoadSoundChunk;
|
||||
Sound *UnloadSoundChunk;
|
||||
Sound *HighlightSoundChunk;
|
||||
Sound *SelectSoundChunk;
|
||||
bool HasSoundedWhenActive;
|
||||
bool FirstSoundPlayed;
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user