3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/controls/renderers/MinecraftUICustomRenderer.h"
7#include "mc/deps/minecraft_renderer/renderer/TexturePtr.h"
31 enum class Type :
int {
39 ::ll::TypedStorage<4, 4, ::CreditsRenderer::CreditsContent::Type> mType;
40 ::ll::TypedStorage<4, 4, int> mHeight;
41 ::ll::TypedStorage<4, 4, int> mPaddingAfter;
42 ::ll::TypedStorage<8, 32, ::std::string> mText;
43 ::ll::TypedStorage<1, 1, bool> mCentered;
44 ::ll::TypedStorage<8, 32, ::mce::TexturePtr> mTexturePtr;
54 MCAPI CreditsContent(::std::string
const& text,
int height,
bool centered,
int paddingAfter);
60 MCAPI
void* $ctor(::std::string
const& text,
int height,
bool centered,
int paddingAfter);
64 using clock_type = ::std::chrono::steady_clock;
66 using duration_sec = ::std::chrono::duration<float, ::std::ratio<1, 1>>;
71 ::ll::TypedStorage<1, 1, bool> mInitialized;
72 ::ll::TypedStorage<4, 8, ::glm::vec2> mOwnerSize;
73 ::ll::TypedStorage<8, 24, ::std::vector<::CreditsRenderer::CreditsContent>> mContent;
74 ::ll::TypedStorage<4, 4, uint> mIndex;
75 ::ll::TypedStorage<4, 4, float> mCurrentOffset;
76 ::ll::TypedStorage<8, 32, ::std::string> mPlayerName;
77 ::ll::TypedStorage<4, 4, float> mScrollSpeed;
78 ::ll::TypedStorage<1, 1, bool> mFinished;
79 ::ll::TypedStorage<8, 24, ::std::vector<::ScreenEvent>> mScreenEvents;
80 ::ll::TypedStorage<4, 4, uint> mCreditsEndEventId;
81 ::ll::TypedStorage<8, 8, double> mTimeNowSeconds;
82 ::ll::TypedStorage<8, 8, double> mTimeLastSeconds;
83 ::ll::TypedStorage<8, 8, double> mDeltaTimeSeconds;
93 virtual ~CreditsRenderer() =
default;
95 virtual ::std::shared_ptr<::UICustomRenderer> clone() const ;
97 virtual
bool update(::IClientInstance& client, ::UIControl& owner, ::UIScene const& scene) ;
100 render(::MinecraftUIRenderContext& renderContext, ::IClientInstance& client, ::UIControl& owner,
int) ;
103 collectScreenEvents(::std::queue<::ScreenEvent, ::std::deque<::ScreenEvent>>& screenEvents) ;
109 MCAPI explicit CreditsRenderer(::UIResolvedDef const& def);
112 _parseFiles(::IClientInstance& client, ::UIControl& owner, ::std::vector<::std::
string> const& filePaths);
118 MCAPI
void* $ctor(::UIResolvedDef const& def);
124 MCAPI ::std::shared_ptr<::UICustomRenderer> $clone() const;
126 MCAPI
bool $update(::IClientInstance& client, ::UIControl& owner, ::UIScene const& scene);
128 MCAPI
void $render(::MinecraftUIRenderContext& renderContext, ::IClientInstance& client, ::UIControl& owner,
int);
130 MCAPI
void $collectScreenEvents(::std::queue<::ScreenEvent, ::std::deque<::ScreenEvent>>& screenEvents);
Definition CreditsRenderer.h:5
static MCAPI void ** $vftable()
Definition IClientInstance.h:5
Definition MinecraftUICustomRenderer.h:5
Definition MinecraftUIRenderContext.h:5
Definition UICustomRenderer.h:5
Definition UIResolvedDef.h:5
Definition CreditsRenderer.h:13
Definition ScreenEvent.h:5