LeviLamina
Loading...
Searching...
No Matches
SkinPickerScreenController.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/DirtyFlag.h"
7#include "mc/client/gui/GameEventNotification.h"
8#include "mc/client/gui/ViewRequest.h"
9#include "mc/client/gui/screens/controllers/MainMenuScreenController.h"
10#include "mc/client/player/SkinHandle.h"
11
12// auto generated forward declare list
13// clang-format off
16struct SkinRepository;
17// clang-format on
18
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<8, 8, ::SkinPackCollectionModel&> mSkinPackCollection;
24 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::SkinRepository>> mSkinRepository;
25 ::ll::TypedStorage<1, 1, bool> mSearchedSkins;
26 ::ll::TypedStorage<4, 4, int> mHoverPack;
27 ::ll::TypedStorage<4, 4, int> mHoverSkin;
28 ::ll::TypedStorage<8, 112, ::SkinHandle> mPreviewSkinHandle;
29 ::ll::TypedStorage<8, 112, ::SkinHandle const> mCustomSkinHandleSkinny;
30 ::ll::TypedStorage<8, 112, ::SkinHandle const> mCustomSkinHandleFat;
31 ::ll::TypedStorage<8, 112, ::SkinHandle const> mCustomSkinHandleDummy;
32 ::ll::TypedStorage<8, 112, ::SkinHandle> mInitialSkinHandle;
33 ::ll::TypedStorage<8, 40, ::std::deque<::SkinHandle>> mSkinUndoList;
34 ::ll::TypedStorage<1, 1, bool> mForceUpdatePreviewSkin;
35 ::ll::TypedStorage<1, 1, bool> mForceUpdateRecentSkin;
36 ::ll::TypedStorage<1, 1, bool> mForceUpdateCustomSkin;
37 ::ll::TypedStorage<1, 1, bool> mContentAreaActive;
38 ::ll::TypedStorage<1, 1, bool> mSkinStatusHovered;
39 ::ll::TypedStorage<1, 1, bool> mNewCustomSkinPicked;
40 ::ll::TypedStorage<1, 1, bool> mCapeChanged;
41 ::ll::TypedStorage<1, 1, bool> mEventHandlersRegistered;
42 // NOLINTEND
43
44public:
45 // prevent constructor by default
46 SkinPickerScreenController& operator=(SkinPickerScreenController const&);
47 SkinPickerScreenController(SkinPickerScreenController const&);
48 SkinPickerScreenController();
49
50public:
51 // virtual functions
52 // NOLINTBEGIN
53 virtual ~SkinPickerScreenController() /*override*/;
54
55 virtual void onOpen() /*override*/;
56
57 virtual void onTerminate() /*override*/;
58
59 virtual ::ui::ViewRequest tryExit() /*override*/;
60
61 virtual ::ui::DirtyFlag tick() /*override*/;
62
63 virtual ::ui::DirtyFlag handleGameEventNotification(::ui::GameEventNotification) /*override*/;
64
65 virtual ::std::string _getButtonBDescription() /*override*/;
66 // NOLINTEND
67
68public:
69 // member functions
70 // NOLINTBEGIN
71 MCAPI SkinPickerScreenController(
72 ::std::shared_ptr<::MainMenuScreenModel> model,
73 ::std::shared_ptr<::SkinRepository> skinRepository
74 );
75
76 MCAPI ::ui::ViewRequest _equipPreviewedSkin();
77
78 MCAPI bool _getAcceptButtonEnabled() const;
79
80 MCAPI ::std::string _getSkinName(::SkinHandle const& handle) const;
81
82 MCAPI ::std::string _getSkinPackName(int index) const;
83
84 MCAPI bool _isCustomSkin(::SkinHandle const& skin) const;
85
86 MCAPI bool _isEquipablePreviewHandle() const;
87
88 MCAPI bool _isLimitedUsagePreviewHandle() const;
89
90 MCAPI void _pickCustomSkin();
91
92 MCAPI void _registerBindings();
93
94 MCAPI void _registerEventHandlers();
95
96 MCAPI void setPreviewSkin(::SkinHandle const& newSkin);
97 // NOLINTEND
98
99public:
100 // static variables
101 // NOLINTBEGIN
102 MCAPI static ::std::string const& MINECON_2012_CAPE_ID();
103
104 MCAPI static ::std::string const& MOJANG_CAPE_ID();
105 // NOLINTEND
106
107public:
108 // constructor thunks
109 // NOLINTBEGIN
110 MCAPI void*
111 $ctor(::std::shared_ptr<::MainMenuScreenModel> model, ::std::shared_ptr<::SkinRepository> skinRepository);
112 // NOLINTEND
113
114public:
115 // destructor thunk
116 // NOLINTBEGIN
117 MCAPI void $dtor();
118 // NOLINTEND
119
120public:
121 // virtual function thunks
122 // NOLINTBEGIN
123 MCAPI void $onOpen();
124
125 MCAPI void $onTerminate();
126
127 MCAPI ::ui::ViewRequest $tryExit();
128
129 MCAPI ::ui::DirtyFlag $tick();
130
131 MCAPI ::std::string $_getButtonBDescription();
132 // NOLINTEND
133
134public:
135 // vftables
136 // NOLINTBEGIN
138
139 MCNAPI static void** $vftableForScreenController();
140 // NOLINTEND
141};
Definition MainMenuScreenController.h:5
Definition MainMenuScreenModel.h:5
Definition SkinPackCollectionModel.h:5
Definition SkinPickerScreenController.h:5
static MCAPI void ** $vftableForScreenController()
static MCAPI void ** $vftableForEnableNonOwnerReferences()
Definition SkinRepository.h:5