rodecomp/Source/Client/Input/Language.h
ragnarok-clanker 95e750c526 Decompile 4 functions in Source/Client/Input/Language.cpp, Source/Client/Input/Language.h, ...
Batch #5400 by Yommy: 1 byte-identical, 3 confirmed by peer review.

- fn_45450 SuggestChatCommand: logic confirmed by peer review
- fn_17806 SubACFCE0: byte-identical
- fn_17807 GetLicenceText: logic confirmed by peer review
- fn_17808 InitializeServiceStrings: logic confirmed by peer review

Peer-reviewed-by: willerthal, SapitoSucio, ragnarok-clanker, tayoba, bigodeira
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-10-30 12:22:01 +00:00

64 lines
1.6 KiB
C++

#ifndef RAGNAROK_SOURCE_CLIENT_INPUT_LANGUAGE_H
#define RAGNAROK_SOURCE_CLIENT_INPUT_LANGUAGE_H
#include <string>
#include <windows.h>
class UIWindow;
class WindowManagerWindows;
class TextInputSuggestions {
public:
virtual void Update(const char* text) = 0;
protected:
~TextInputSuggestions() = default;
};
struct CLanguage {
std::string& text;
int& cursor;
int& anchor;
std::string& composition;
std::string& candidate;
int& compositionState;
HWND& window;
const bool& suggestionsEnabled;
UIWindow* const& focused;
UIWindow* const& chatInput;
const bool& chatOpen;
TextInputSuggestions& suggestions;
void ResetInput();
void DeleteSelection();
void Insert(const char* value);
void Select(int anchor, int cursor);
void CopyDisplayText(std::string& output) const;
void Selection(int& anchor, int& cursor) const;
void SelectionRange(int& begin, int& end) const;
void RefreshComposition(unsigned codePage);
void CopySelection(bool password);
void Paste(UIWindow* blockedFocus, WindowManagerWindows& windows);
void MoveBack(unsigned codePage);
void IncreaseSelection(unsigned codePage);
void SetFlag8C(unsigned char value);
void AdvanceCursor(int delta);
void RetreatCursor(int delta);
void Character(unsigned value, LPARAM unused, unsigned codePage);
void KeyDown(
unsigned key, LPARAM unused, unsigned codePage, bool password, UIWindow* blockedPasteFocus, WindowManagerWindows& windows, UIWindow* const& chatArrows
);
};
void __stdcall SubACDD10();
void SuggestChatCommand(const char* text);
int SubACFCE0();
#endif