mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-12-02 22:18:09 +01:00
+Discord account connection +Friends List +UPnP Connection +Cosmetics (Iggy menus need to be fixed up a little)
66 lines
1.4 KiB
C++
66 lines
1.4 KiB
C++
#pragma once
|
|
|
|
#include "UIScene.h"
|
|
|
|
struct PendingRequestsInitData
|
|
{
|
|
vector<wstring> *requests;
|
|
void (*onRespond)(void *param, const wstring &name, bool accept);
|
|
void *param;
|
|
};
|
|
|
|
class UIScene_PendingRequestsMenu : public UIScene
|
|
{
|
|
private:
|
|
enum EControls
|
|
{
|
|
eControl_MultiList = 0,
|
|
};
|
|
|
|
enum EItems
|
|
{
|
|
eItem_RequestBase = 100,
|
|
};
|
|
|
|
enum EPendingAction
|
|
{
|
|
ePending_None = 0,
|
|
ePending_Accept,
|
|
ePending_Decline,
|
|
};
|
|
|
|
UIControl_MultiList m_multiList;
|
|
PendingRequestsInitData m_data;
|
|
bool m_bNeedsPopulate;
|
|
bool m_bPopulatedOnce = false;
|
|
bool m_bBusy;
|
|
int m_selectedRequest;
|
|
int m_pendingAction;
|
|
|
|
UI_BEGIN_MAP_ELEMENTS_AND_NAMES(UIScene)
|
|
UI_END_MAP_ELEMENTS_AND_NAMES()
|
|
|
|
void populateList();
|
|
void showRequestOptions(int requestIndex);
|
|
|
|
static int RequestOptionsCallback(LPVOID lpParam, int iPad, const C4JStorage::EMessageResult result);
|
|
|
|
public:
|
|
UIScene_PendingRequestsMenu(int iPad, void *initData, UILayer *parentLayer);
|
|
|
|
virtual EUIScene getSceneType() { return eUIScene_PendingRequestsMenu; }
|
|
|
|
virtual void tick();
|
|
virtual void updateTooltips();
|
|
virtual void updateComponents();
|
|
virtual void handleReload();
|
|
virtual void handleGainFocus(bool navBack);
|
|
|
|
protected:
|
|
virtual wstring getMoviePath();
|
|
|
|
public:
|
|
virtual void handleInput(int iPad, int key, bool repeat, bool pressed, bool released, bool &handled);
|
|
virtual void handlePress(F64 controlId, F64 childId);
|
|
};
|