Batch #13412 by ragnarok-clanker: no function's compiled code changes; checked with 592 compiled unit(s), including every includer of Source/Client/Mode/CGameMode.h, Source/Client/Session.h, Source/Contents/Actors/GameActor.h, Source/Contents/CashEmotionMgr.h, Source/Contents/ClientItemLists.h, Source/Contents/ClientState.h, Source/Contents/Configuration/GameSettingsMgr.h, Source/Contents/Items/ItemInfo.h, Source/Contents/NavigationManager.h, Source/Contents/RenewQuestMgr.h, Source/Contents/ReputeMgr.h, Source/Contents/Schedule/TimeScheduler.h, Source/Contents/WorldView/WorldViewData.h, Source/UI/Buttons/UIDescriptRace.h, Source/UI/CashEmotion/UICashEmotionListWnd.h, Source/UI/Dialogs/UIPasswordWnd.h, Source/UI/Edit/UIEditCtrl.h, Source/UI/Edit/UIItemTagCtrl.h, Source/UI/GameSettings/GameSettingsUI.h, Source/UI/Item/UIItemStoreSubWnd.h, Source/UI/Items/UISwapEquipmentWnd.h, Source/UI/Lists/UIChatHisBox.h, Source/UI/Lists/UITagListBox.h, Source/UI/Quest/UIOngoingQuestInfo.h, Source/UI/Quest/UIRenewQuestUI.h, Source/UI/Rodex/UIRodexComposeWnd.h, Source/UI/Text/UIAchWnd.h, Source/UI/UIGradeEnchantWnd.h, Source/UI/UIIngredientInfoWnd.h, Source/UI/UIMacroUserInfoWnd.h, Source/UI/Window/UINewSkillListWnd.h, Source/UI/Window/UIRegisterMgr.h, Source/UI/Window/UIWindow.h, Source/UI/Window/UIWindowMgr.h, Source/Utility/JsonCppLoader.h.
65 lines
2.1 KiB
C++
65 lines
2.1 KiB
C++
#include "UI/Text/UIStaticText_LF.h"
|
|
|
|
#include <cstdint>
|
|
#include <string>
|
|
|
|
// OFFSET: 0x0094ECF0
|
|
// FUNCTION: fn_12915
|
|
void UIStaticText_LF::Paint() {
|
|
this->ClearSurface(0xFFFF00FF);
|
|
this->DrawWrappedFormattedText(
|
|
0, 0,
|
|
*reinterpret_cast<const std::string*>(reinterpret_cast<const char*>(this) + 0x7C),
|
|
this->geometry.width,
|
|
*reinterpret_cast<const int*>(reinterpret_cast<const char*>(this) + 0x94),
|
|
*reinterpret_cast<const int*>(reinterpret_cast<const char*>(this) + 0x98),
|
|
*reinterpret_cast<const int*>(reinterpret_cast<const char*>(this) + 0x9C),
|
|
*reinterpret_cast<const int*>(reinterpret_cast<const char*>(this) + 0xA0),
|
|
*reinterpret_cast<const std::uint32_t*>(reinterpret_cast<const char*>(this) + 0xA4),
|
|
*reinterpret_cast<const unsigned char*>(reinterpret_cast<const char*>(this) + 0xA8)
|
|
);
|
|
}
|
|
|
|
// OFFSET: 0x0094EEA0
|
|
// FUNCTION: fn_12920
|
|
void UIStaticText_LF::Slot25(int x, int y) {
|
|
if (this->parent) {
|
|
this->parent->Slot25(x, y);
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x0094EFA0
|
|
// FUNCTION: fn_12925
|
|
void UIStaticText_LF::Slot31(int x, int y) {
|
|
if (this->parent) {
|
|
this->parent->Slot31(x, y);
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x0094F300
|
|
// FUNCTION: fn_12936
|
|
void UIStaticText_LF::Slot35(int delta) {
|
|
if (this->parent) {
|
|
this->parent->Slot35(delta);
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x00951BF0
|
|
// FUNCTION: fn_12966
|
|
void UIStaticText_LF::SetText(std::string text) {
|
|
*reinterpret_cast<std::string*>(reinterpret_cast<char*>(this) + 0x7C) = text;
|
|
std::list<std::string> lines;
|
|
this->WrapFormattedText(
|
|
text, &lines, this->geometry.width,
|
|
*reinterpret_cast<const int*>(reinterpret_cast<const char*>(this) + 0x9C),
|
|
*reinterpret_cast<const int*>(reinterpret_cast<const char*>(this) + 0xA0),
|
|
*reinterpret_cast<const unsigned char*>(reinterpret_cast<const char*>(this) + 0xA8)
|
|
);
|
|
const int count = static_cast<int>(lines.size());
|
|
this->Resize(
|
|
this->geometry.width,
|
|
(count - 1) * *reinterpret_cast<const int*>(reinterpret_cast<const char*>(this) + 0x94) +
|
|
*reinterpret_cast<const int*>(reinterpret_cast<const char*>(this) + 0xA0) * count
|
|
);
|
|
this->Invalidate();
|
|
}
|