feat: customizable panorama

additions
- customizable scroll speed + blur intensity via panorama.xml file
- grid feature that brings back the look of the classic minecraft panorama
uhhh yeah thats pretty much it lmao
This commit is contained in:
Fireblade
2026-07-13 02:22:52 -04:00
parent 48b80ba865
commit 3a860d442f
2 changed files with 255 additions and 27 deletions
@@ -8,14 +8,29 @@ private:
bool m_bShowingDay;
void EnsurePanoramaTexturesLoaded();
void DrawPanoramaBackgroundQuad(S32 width, S32 height);
int m_texPanoramaDay = -1;
int m_texPanoramaNight = -1;
bool m_bPanoramaTexturesLoaded = false;
wstring m_panoramaTextureRoot;
float m_panoramaAspect = 1.0f;
DWORD m_lastScrollTickMs = 0;
float m_panoramaScroll = 0.0f;
float m_panoramaScrollSpeed = 0.0001f / 16.6667f;
float m_panoramaBlurSigma = 0.5f;
bool m_panoramaGridEnabled = false;
float m_panoramaGridSizeX = 1.0f;
float m_panoramaGridSizeY = 1.0f;
int m_panoramaNativeWidth = 0;
int m_panoramaNativeHeight = 0;
bool m_panoramaGridScalingNearest = false;
public:
UIComponent_Panorama(int iPad, void *initData, UILayer *parentLayer);