LeviLamina
Loading...
Searching...
No Matches
TextToIconMapper.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
7#include "mc/deps/input/InputMode.h"
8#include "mc/input/NewInteractionModel.h"
9
10// auto generated forward declare list
11// clang-format off
12class RemappingLayout;
13// clang-format on
14
16public:
17 // member variables
18 // NOLINTBEGIN
19 ::ll::TypedStorage<8, 64, ::std::unordered_map<int, ::std::string>> mGamepadIconMap;
20 ::ll::TypedStorage<8, 64, ::std::unordered_map<int, ::std::string>> mGamepadTipsIconMap;
21 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, ::std::string>> mTouchIconMap;
22 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, ::std::string>> mTouchCrossairIconMap;
23 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, ::std::string>> mTouchClassicIconMap;
24 ::ll::TypedStorage<8, 32, ::std::string> mGamepadPrefix;
25 ::ll::TypedStorage<8, 32, ::std::string> mGamepadTipsPrefix;
26 // NOLINTEND
27
28public:
29 // virtual functions
30 // NOLINTBEGIN
31 virtual ~TextToIconMapper() /*override*/;
32 // NOLINTEND
33
34public:
35 // member functions
36 // NOLINTBEGIN
37 MCAPI TextToIconMapper();
38
39 MCAPI ::std::unordered_map<::std::string, ::std::string>
40 _getTouchIconMap(::NewInteractionModel interactionModel) const;
41
42 MCAPI void _init();
43
44 MCAPI ::std::string _mapInputIcon(
45 ::std::string const& action,
46 ::RemappingLayout* layout,
47 ::InputMode mode,
48 ::NewInteractionModel interactionModel,
49 bool isGameTip
50 );
51
52 MCAPI ::std::string _remapTouchIcon(::std::string const& action, ::NewInteractionModel interactionModel);
53
54 MCAPI bool
55 _trySwapGamepadButtonInPlace(::std::string& button, int gamepadButton1, int gamepadButton2, bool isGameTip) const;
56
57 MCAPI void preprocessText(
58 ::std::string& text,
59 ::RemappingLayout* layout,
60 ::InputMode mode,
61 bool swapGamepadButtonsAB,
62 bool swapGamepadButtonsXY,
63 ::NewInteractionModel interactionModel,
64 bool isGameTip
65 );
66
67 MCAPI ::std::string remapGamepadIcon(int key, bool isGameTip) const;
68 // NOLINTEND
69
70public:
71 // constructor thunks
72 // NOLINTBEGIN
73 MCAPI void* $ctor();
74 // NOLINTEND
75
76public:
77 // destructor thunk
78 // NOLINTBEGIN
79 MCAPI void $dtor();
80 // NOLINTEND
81
82public:
83 // vftables
84 // NOLINTBEGIN
85 MCNAPI static void** $vftable();
86 // NOLINTEND
87};
Definition EnableNonOwnerReferences.h:7
Definition RemappingLayout.h:5
Definition TextToIconMapper.h:5
static MCAPI void ** $vftable()