Batch #1767 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_09430 UICashEmotionMiniWnd::Refresh: logic confirmed by peer review Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
82 lines
1.6 KiB
C++
82 lines
1.6 KiB
C++
#ifndef RAGNAROK_SOURCE_UI_CHAT_CHATSUGGESTIONS_H
|
|
#define RAGNAROK_SOURCE_UI_CHAT_CHATSUGGESTIONS_H
|
|
|
|
#include <array>
|
|
#include <cstdint>
|
|
#include <vector>
|
|
|
|
class UIWindow;
|
|
class WindowManagerWindows;
|
|
class UIEditCtrl;
|
|
struct InputFocus;
|
|
struct ItemTagRetirement;
|
|
|
|
struct ChatSuggestions {
|
|
UIWindow& chat;
|
|
UIWindow* const& window;
|
|
UIEditCtrl* const& input;
|
|
|
|
bool Visible() const;
|
|
|
|
void Show(std::uint8_t visible);
|
|
};
|
|
|
|
struct ChatInputLayout {
|
|
UIWindow& chat;
|
|
const std::uint8_t& open;
|
|
const int& inputHeight;
|
|
std::array<UIWindow**, 6> children;
|
|
|
|
void Apply();
|
|
};
|
|
|
|
struct ChatHeaderLayout {
|
|
const std::uint8_t& enabled;
|
|
const std::uint32_t& mode;
|
|
const int& width;
|
|
std::array<UIWindow**, 4> buttons;
|
|
|
|
void Apply();
|
|
};
|
|
|
|
struct ChatButtonLayout {
|
|
const std::uint8_t& expanded;
|
|
const int& width;
|
|
std::array<UIWindow**, 3> buttons;
|
|
|
|
void Apply();
|
|
};
|
|
|
|
struct ChatRowLayout {
|
|
ChatInputLayout& input;
|
|
ChatHeaderLayout& header;
|
|
WindowManagerWindows& windows;
|
|
UIWindow* const& capture;
|
|
UIWindow* const& popup26;
|
|
const std::vector<UIWindow*>& rows;
|
|
const int& selected;
|
|
const int& headerHeight;
|
|
const int& headerCellWidth;
|
|
UIWindow* const& headerChild;
|
|
UIWindow* const& suggestions;
|
|
|
|
void Resize(int count);
|
|
};
|
|
|
|
struct ChatInputFocus {
|
|
ChatInputLayout& layout;
|
|
ChatRowLayout& rows;
|
|
InputFocus& focus;
|
|
std::uint8_t& open;
|
|
const std::uint8_t& alternate;
|
|
UIEditCtrl* const& primary;
|
|
UIEditCtrl* const& secondary;
|
|
UIWindow*& pressedRoot;
|
|
ItemTagRetirement* const& tags;
|
|
|
|
void Toggle();
|
|
|
|
void DismissOutside(ChatSuggestions& suggestions, UIWindow* companion, int button, int x, int y);
|
|
};
|
|
|
|
#endif
|