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)
74 lines
1.6 KiB
C++
74 lines
1.6 KiB
C++
#pragma once
|
|
|
|
#include "UIScene.h"
|
|
|
|
struct FriendMenuInitData
|
|
{
|
|
wstring name;
|
|
wstring onlineId;
|
|
wstring status;
|
|
bool friendOnline;
|
|
bool friendInWorld;
|
|
int friendIndex;
|
|
void (*onRemove)(void *param, int friendIndex);
|
|
void (*onBlock)(void *param, int friendIndex);
|
|
void (*onInvite)(void *param, int friendIndex);
|
|
void *param;
|
|
};
|
|
|
|
class UIScene_FriendMenu : public UIScene
|
|
{
|
|
private:
|
|
enum EControls
|
|
{
|
|
eControl_MultiList = 0,
|
|
};
|
|
|
|
enum EItems
|
|
{
|
|
eItem_JoinGame = 0,
|
|
eItem_Invite,
|
|
eItem_RemoveFriend,
|
|
eItem_Block,
|
|
};
|
|
|
|
UIControl_MultiList m_multiList;
|
|
FriendMenuInitData m_data;
|
|
bool m_bNeedsPopulate;
|
|
bool m_bPopulatedOnce = false;
|
|
bool m_bPendingBlock;
|
|
bool m_bPendingJoin;
|
|
FriendSessionInfo m_joinSession;
|
|
JoinMenuInitData m_joinData;
|
|
|
|
bool isFriendHosting();
|
|
void startJoin(bool skipBlockedCheck);
|
|
|
|
static int BlockConfirmCallback(LPVOID lpParam, int iPad, const C4JStorage::EMessageResult result);
|
|
static int BlockedWarningCallback(LPVOID lpParam, int iPad, const C4JStorage::EMessageResult result);
|
|
|
|
UI_BEGIN_MAP_ELEMENTS_AND_NAMES(UIScene)
|
|
UI_END_MAP_ELEMENTS_AND_NAMES()
|
|
|
|
void populateList();
|
|
bool isLocalPlayerInGame();
|
|
|
|
public:
|
|
UIScene_FriendMenu(int iPad, void *initData, UILayer *parentLayer);
|
|
|
|
virtual EUIScene getSceneType() { return eUIScene_FriendMenu; }
|
|
|
|
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);
|
|
};
|