Files
Racoon-MinecraftConsoles/Minecraft.Client/Common/UI/UIScene_LceLiveLinking.h
veroxsity e93d57b2bc Add LceLive Friends and Requests UI Scenes
- Implement UIScene_LceLiveFriends for managing friends list with options to add, refresh, and remove friends.
- Implement UIScene_LceLiveRequests for handling incoming and outgoing friend requests with options to accept or decline requests.
- Introduce UIScene_LceLiveLinking for device linking functionality.
- Update CMake files to include new UI scene source files.
- Add necessary UI components and logic for displaying and interacting with friends and requests.
- Ensure compatibility with Windows64 builds and handle UI updates accordingly.
2026-04-17 00:11:35 +01:00

57 lines
1.4 KiB
C++

#pragma once
#include "UIScene.h"
// LceLive sub-scene: device-link / sign-in / sign-out flow.
// This is the original UIScene_LceLive content, now a child of the LceLive hub.
class UIScene_LceLiveLinking : public UIScene
{
private:
enum EControls
{
eControl_PrimaryAction,
};
bool m_buttonEnabled;
bool m_descriptionApplied;
std::wstring m_lastButtonLabel;
std::wstring m_lastDescription;
UIControl_Button m_buttonPrimaryAction;
UIControl_Label m_labelTitle;
UIControl_Label m_labelDescription;
IggyName m_funcInit;
IggyName m_funcAutoResize;
UI_BEGIN_MAP_ELEMENTS_AND_NAMES(UIScene)
UI_MAP_ELEMENT(m_buttonPrimaryAction, "Button3")
UI_MAP_ELEMENT(m_labelTitle, "Title")
UI_MAP_ELEMENT(m_labelDescription, "Content")
UI_MAP_NAME(m_funcInit, L"Init")
UI_MAP_NAME(m_funcAutoResize, L"AutoResize")
UI_END_MAP_ELEMENTS_AND_NAMES()
public:
UIScene_LceLiveLinking(int iPad, void *initData, UILayer *parentLayer);
~UIScene_LceLiveLinking();
virtual EUIScene getSceneType() { return eUIScene_LceLiveLinking; }
virtual void updateTooltips();
virtual void updateComponents();
virtual void tick();
protected:
virtual wstring getMoviePath();
virtual void handleReload();
public:
virtual void handleInput(int iPad, int key, bool repeat, bool pressed, bool released, bool &handled);
protected:
void handlePress(F64 controlId, F64 childId);
private:
void RefreshUi(bool force);
void ApplyDescription(const std::wstring &description);
};