Batch #13796 by eAthena: 46 byte-identical, 9 confirmed by peer review. - fn_14005 AdventureGuide::CUIMonsterInfo::Slot15: logic confirmed by peer review - fn_14007 AdventureGuide::CUIQuestInfo::Slot15: logic confirmed by peer review - fn_14009 AdventureGuide::CUITab::Slot15: byte-identical - fn_14010 AdventureGuide::CUITabInfo::Slot15: logic confirmed by peer review - fn_14680 CUIStaticText::SetText: byte-identical - fn_14702 CUITitleBar::SetTitle: byte-identical - fn_14766 CUIListBoxEx<EnchantUI::CUIEnchantItem,EnchantUI::CEnchantItemData>::CUIListBoxEx<EnchantUI::CUIEnchantItem,EnchantUI::CEnchantItemData>: byte-identical (already on main) - fn_14767 CUIListBoxEx<EnchantUI::CUITargetItem,ITEM_INFO>::CUIListBoxEx<EnchantUI::CUITargetItem,ITEM_INFO>: byte-identical (already on main) - fn_14768 EnchantUI::CUIEnchantPage::CUIEnchantPage: byte-identical (already on main) - fn_14769 CUIGameItem::CUIGameItem: logic confirmed by peer review (already on main) - fn_14770 EnchantUI::CUIMainPage::CUIMainPage: byte-identical (already on main) - fn_14771 CUITab::CUITab: byte-identical (already on main) - fn_14812 EnchantUI::CUIEnchantPage::CreateIngredient: byte-identical (already on main) - fn_14816 EnchantUI::CUIEnchantItem::Slot15: byte-identical - fn_14820 EnchantUI::CUINormalPerfect::Slot15: byte-identical - fn_14821 EnchantUI::CUINormalRandom::Slot15: byte-identical - fn_14822 EnchantUI::CUIReset::Slot15: byte-identical - fn_14830 EnchantUI::CUIUpgradePerfect::Slot15: byte-identical - fn_14831 EnchantUI::CUIUpgradeRandom::Slot15: byte-identical - fn_15164 CUIEquipmentPropertiesWnd::BindLine: logic confirmed by peer review - fn_15180 CUIListBoxEx<ExchangeUI::CUIItem,ExchangeUI::CItemData>::CUIListBoxEx<ExchangeUI::CUIItem,ExchangeUI::CItemData>: byte-identical (already on main) - fn_15341 CUIListBoxEx<GameSettingsUI::CUIComboItem,RenderAdapter>::CUIListBoxEx<GameSettingsUI::CUIComboItem,RenderAdapter>: byte-identical (already on main) - fn_15342 CUIListBoxEx<GameSettingsUI::CUIComboItem,DisplayMode>::CUIListBoxEx<GameSettingsUI::CUIComboItem,DisplayMode>: byte-identical (already on main) - fn_15343 CUIListBoxEx<GameSettingsUI::CUIComboItem,RenderBackend>::CUIListBoxEx<GameSettingsUI::CUIComboItem,RenderBackend>: byte-identical (already on main) - fn_15344 CUIListBoxEx<GameSettingsUI::CUIComboItem,std::basic_string<char,std::char_traits<char>,std::allocator<char> > >::CUIListBoxEx<GameSettingsUI::CUIComboItem,std::basic_string<char,std::char_traits<char>,std::allocator<char> > >: byte-identical (already on main) - fn_15345 CUIListBoxEx<GameSettingsUI::CUIOptionItem,TALKTYPE>::CUIListBoxEx<GameSettingsUI::CUIOptionItem,TALKTYPE>: byte-identical (already on main) - fn_15402 GameSettingsUI::CUIGroupSpriteDetailLevel::Slot15: logic confirmed by peer review - fn_15886 GameSettingsUI::CUIBasicPage::CUIBasicPage: byte-identical (already on main) - fn_15889 GameSettingsUI::CUIGraphicsPage::CUIGraphicsPage: byte-identical (already on main) - fn_15902 GameSettingsUI::CUIListPage::CUIListPage: byte-identical (already on main) - fn_15976 GameSettingsUI::CUIGroupSound::Apply: logic confirmed by peer review - fn_15986 CUIGameSettingsUI::Slot16: byte-identical - fn_15987 GameSettingsUI::CUIGroupEmblem::Slot16: byte-identical - fn_15988 GameSettingsUI::CUIGroupFullscreen::Slot16: byte-identical - fn_15990 GameSettingsUI::CUIGroupGraphicsAPI::Slot16: logic confirmed by peer review - fn_15993 GameSettingsUI::CUIGroupRodexSpam::Slot16: byte-identical - fn_15994 GameSettingsUI::CUIGroupSkin::Slot16: logic confirmed by peer review - fn_15995 GameSettingsUI::CUIGroupSound::Slot16: byte-identical - fn_15996 GameSettingsUI::CUIGroupSpriteDetailLevel::Slot16: byte-identical - fn_15997 GameSettingsUI::CUIGroupTextureDetailLevel::Slot16: byte-identical - fn_15998 GameSettingsUI::CUIGroupTrilinear::Slot16: byte-identical - fn_16108 CUIListBoxEx<ProbabilityTable::CUIItem,ProbabilityTable::CItemData>::CUIListBoxEx<ProbabilityTable::CUIItem,ProbabilityTable::CItemData>: byte-identical (already on main) - fn_16217 CUIListBoxEx<OngoingQuestInfo::CUIRewardItem,OngoingQuestInfo::CRewardItemData>::CUIListBoxEx<OngoingQuestInfo::CUIRewardItem,OngoingQuestInfo::CRewardItemData>: byte-identical (already on main) - fn_16289 OngoingQuestInfo::CUIContents::CUIContents: byte-identical (already on main) - fn_16292 OngoingQuestInfo::CUIRewards::CUIRewards: byte-identical (already on main) - fn_16293 OngoingQuestInfo::CUIScrollWindow::CUIScrollWindow: byte-identical (already on main) - fn_16311 OngoingQuestInfo::CUIScrollWindow::Slot16: byte-identical - fn_16339 RecommendedQuestInfo::CUIQuestInfo::CUIQuestInfo: byte-identical (already on main) - fn_16341 RecommendedQuestInfo::CUIScrollWindow::CUIScrollWindow: byte-identical (already on main) - fn_16366 CUIListBoxEx<RenewQuestUI::CUIQuestItem,unsigned long>::CUIListBoxEx<RenewQuestUI::CUIQuestItem,unsigned long>: byte-identical (already on main) - fn_16367 CUIEditBoxEx::CUIEditBoxEx: byte-identical (already on main) - fn_16598 RenewQuestUI::CUIQuestList::CUIQuestList: byte-identical (already on main) - fn_16665 SelectPackageItemBox::CUITabInfo::Slot15: byte-identical - fn_16799 CUIListBoxEx<SkillDelayInfo::CUIDelayItem,SkillDelayInfo::CDelayItemData>::CUIListBoxEx<SkillDelayInfo::CUIDelayItem,SkillDelayInfo::CDelayItemData>: byte-identical (already on main) - fn_16873 SkillDelayInfo::CUITime::CUITime: byte-identical (already on main) Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
68 lines
2 KiB
C++
68 lines
2 KiB
C++
#ifndef RAGNAROK_SOURCE_UI_TEXT_UISTATICTEXTCONTROL_H
|
|
#define RAGNAROK_SOURCE_UI_TEXT_UISTATICTEXTCONTROL_H
|
|
|
|
#include "UI/Window/UIControl.h"
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
#include <string>
|
|
#include <string_view>
|
|
|
|
class CUIVScrollBar;
|
|
|
|
class CUIStaticText : public CUIControl {
|
|
public:
|
|
CUIStaticText();
|
|
|
|
void Slot28(int x, int y) override;
|
|
void Paint() override;
|
|
void UpdateText();
|
|
void SetAlign(int horizontal, int vertical);
|
|
void SetFitText(bool enabled);
|
|
void SetBold(unsigned char enabled);
|
|
void SetColor(std::uint32_t color);
|
|
void SetFontHeight(int height);
|
|
void SetFont(const std::string& name);
|
|
void SetOutline(bool enabled, std::uint32_t color);
|
|
void SetShadow(bool enabled, std::uint32_t color);
|
|
__declspec(noinline) void SetText(std::string_view value);
|
|
// INLINED
|
|
void SetText(const char* value, std::size_t length) {
|
|
this->SetText(std::string_view(value, length));
|
|
}
|
|
void SetTooltip(const char* value, std::size_t length);
|
|
|
|
std::string& Tooltip() {
|
|
return *reinterpret_cast<std::string*>(this->unknown_00B0);
|
|
}
|
|
|
|
|
|
/* 0080 */ std::string text;
|
|
/* 0098 */ std::string unknown_0098;
|
|
/* 00B0 */ unsigned char unknown_00B0[0x10];
|
|
/* 00C0 */ CUIVScrollBar* scrollBar;
|
|
/* 00C4 */ unsigned char unknown_00C4[0x04];
|
|
/* 00C8 */ bool fitText;
|
|
/* 00CC */ int horizontalAlign;
|
|
/* 00D0 */ int verticalAlign;
|
|
/* 00D4 */ int fontIndex;
|
|
/* 00D8 */ int fontHeight;
|
|
/* 00DC */ unsigned char bold;
|
|
/* 00E0 */ std::uint32_t color;
|
|
/* 00E4 */ bool shadow;
|
|
/* 00E8 */ std::uint32_t shadowColor;
|
|
/* 00EC */ bool outline;
|
|
/* 00F0 */ std::uint32_t outlineColor;
|
|
/* 00F4 */ int textX;
|
|
/* 00F8 */ int textY;
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(CUIStaticText) == 0xFC);
|
|
static_assert(offsetof(CUIStaticText, unknown_0098) == 0x98);
|
|
static_assert(offsetof(CUIStaticText, scrollBar) == 0xC0);
|
|
static_assert(offsetof(CUIStaticText, color) == 0xE0);
|
|
static_assert(offsetof(CUIStaticText, outlineColor) == 0xF0);
|
|
#endif
|
|
|
|
#endif
|