aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Common/UI/UIComponent_Panorama.h
diff options
context:
space:
mode:
authordaoge_cmd <3523206925@qq.com>2026-03-01 12:16:08 +0800
committerdaoge_cmd <3523206925@qq.com>2026-03-01 12:16:08 +0800
commitb691c43c44ff180d10e7d4a9afc83b98551ff586 (patch)
tree3e9849222cbc6ba49f2f1fc6e5fe7179632c7390 /Minecraft.Client/Common/UI/UIComponent_Panorama.h
parentdef8cb415354ac390b7e89052a50605285f1aca9 (diff)
Initial commit
Diffstat (limited to 'Minecraft.Client/Common/UI/UIComponent_Panorama.h')
-rw-r--r--Minecraft.Client/Common/UI/UIComponent_Panorama.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/Minecraft.Client/Common/UI/UIComponent_Panorama.h b/Minecraft.Client/Common/UI/UIComponent_Panorama.h
new file mode 100644
index 00000000..99dc115c
--- /dev/null
+++ b/Minecraft.Client/Common/UI/UIComponent_Panorama.h
@@ -0,0 +1,40 @@
+#pragma once
+
+#include "UIScene.h"
+
+class UIComponent_Panorama : public UIScene
+{
+private:
+ bool m_bSplitscreen;
+ bool m_bShowingDay;
+
+protected:
+ IggyName m_funcShowPanoramaDay;
+ UI_BEGIN_MAP_ELEMENTS_AND_NAMES(UIScene)
+ UI_MAP_NAME(m_funcShowPanoramaDay, L"ShowPanoramaDay");
+ UI_END_MAP_ELEMENTS_AND_NAMES()
+
+public:
+ UIComponent_Panorama(int iPad, void *initData, UILayer *parentLayer);
+
+protected:
+ // TODO: This should be pure virtual in this class
+ virtual wstring getMoviePath();
+
+public:
+ virtual EUIScene getSceneType() { return eUIComponent_Panorama;}
+
+ // Returns true if this scene handles input
+ virtual bool stealsFocus() { return false; }
+
+ // Returns true if this scene has focus for the pad passed in
+ virtual bool hasFocus(int iPad) { return false; }
+
+ virtual void tick();
+
+ // RENDERING
+ virtual void render(S32 width, S32 height, C4JRender::eViewportType viewport);
+
+private:
+ void setPanorama(bool isDay);
+};