Maintenance: Rename placeholder sub_XXXXXX functions to evidence-based names (Lua registration strings, log/error strings, packet ids
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.
This commit is contained in:
parent
7d09f47486
commit
f8d3e8622d
120 changed files with 991 additions and 993 deletions
|
|
@ -974,7 +974,7 @@ void UIWindowMgr::Shutdown() {
|
|||
|
||||
// OFFSET: 0x00AA6B80
|
||||
// FUNCTION: fn_17234
|
||||
void UIWindowMgr::sub_AA6B80() {
|
||||
void UIWindowMgr::ClearMapWindows() {
|
||||
if (!this->modalWindows.empty() && this->modalWindows.back()) {
|
||||
this->activeWindowId = 185;
|
||||
}
|
||||
|
|
@ -1626,10 +1626,10 @@ bool UIWindowMgr::ProcessKeyDown(int key, int keyData, int pressed) {
|
|||
}
|
||||
lastKey = key;
|
||||
|
||||
if ((key == 0x0D || key == 0x20) && this->sub_A8CA20()) {
|
||||
if ((key == 0x0D || key == 0x20) && this->ProcessEnterKey()) {
|
||||
return true;
|
||||
}
|
||||
if (!this->sub_AA35F0(action)) {
|
||||
if (!this->ProcessShortcutKey(action)) {
|
||||
return this->ProcessHotkeyAction(key, pressed);
|
||||
}
|
||||
if (this->IsHoverParentVisible() || this->IsHoverOnWindow01C8Button()) {
|
||||
|
|
@ -2134,19 +2134,19 @@ std::vector<unsigned char> UIWindowMgr::SaveReplayWindows() {
|
|||
return data;
|
||||
}
|
||||
|
||||
void __fastcall sub_DFF150(CSession* session);
|
||||
void __fastcall RefreshPartyWindows(CSession* session);
|
||||
|
||||
// OFFSET: 0x00A8C4B0
|
||||
// FUNCTION: fn_17132
|
||||
void UIWindowMgr::sub_A8C4B0(int id) {
|
||||
void UIWindowMgr::CloseMiniPartyWindow(int id) {
|
||||
g_session.EraseRecord0734(id);
|
||||
this->unknown_4F248.push_back(id);
|
||||
sub_DFF150(&g_session);
|
||||
RefreshPartyWindows(&g_session);
|
||||
}
|
||||
|
||||
// OFFSET: 0x00A8CA20
|
||||
// FUNCTION: fn_17139
|
||||
bool UIWindowMgr::sub_A8CA20() {
|
||||
bool UIWindowMgr::ProcessEnterKey() {
|
||||
if (g_replayAnimationScaling != 0) {
|
||||
return false;
|
||||
}
|
||||
|
|
@ -2253,7 +2253,7 @@ bool UIWindowMgr::sub_A8CA20() {
|
|||
|
||||
// OFFSET: 0x00A97580
|
||||
// FUNCTION: fn_17205
|
||||
UIWindow* UIWindowMgr::sub_A97580(int id, int x, int y, int width, int height) {
|
||||
UIWindow* UIWindowMgr::OpenSubChatWindow(int id, int x, int y, int width, int height) {
|
||||
if (x == -1 && y == -1) {
|
||||
x = (id + 10) * 10;
|
||||
y = (id + 5) * 20;
|
||||
|
|
@ -2627,7 +2627,7 @@ bool UIWindowMgr::ProcessHotkeyAction(int action, int pressed) {
|
|||
|
||||
case 13:
|
||||
if (pressed) {
|
||||
this->sub_A8CA20();
|
||||
this->ProcessEnterKey();
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
@ -4169,7 +4169,7 @@ void UIWindowMgr::ShowWaitDBSaveWindow() {
|
|||
|
||||
// OFFSET: 0x00AA35F0
|
||||
// FUNCTION: fn_17221
|
||||
bool UIWindowMgr::sub_AA35F0(int action) {
|
||||
bool UIWindowMgr::ProcessShortcutKey(int action) {
|
||||
if (action != 4) {
|
||||
return false;
|
||||
}
|
||||
|
|
@ -6744,7 +6744,7 @@ UIWindow* UIWindowMgr::EnsureWindow(int id) {
|
|||
}
|
||||
window->Show(1);
|
||||
static_cast<UISecondPasswordInputWnd*>(this->unknown_03B8)->CreateKeypad(g_session.m_loginAccountId);
|
||||
static_cast<UISecondPasswordInputWnd*>(this->unknown_03B8)->sub_90C970(0);
|
||||
static_cast<UISecondPasswordInputWnd*>(this->unknown_03B8)->SetInputMode(0);
|
||||
break;
|
||||
}
|
||||
case 200: {
|
||||
|
|
@ -6773,7 +6773,7 @@ UIWindow* UIWindowMgr::EnsureWindow(int id) {
|
|||
}
|
||||
window->Show(1);
|
||||
static_cast<UISecondPasswordInputWnd*>(this->unknown_03BC)->CreateKeypad(g_session.m_loginAccountId);
|
||||
static_cast<UISecondPasswordInputWnd*>(this->unknown_03BC)->sub_90C970(1);
|
||||
static_cast<UISecondPasswordInputWnd*>(this->unknown_03BC)->SetInputMode(1);
|
||||
break;
|
||||
}
|
||||
case 227:
|
||||
|
|
@ -7536,7 +7536,7 @@ UIWindow* UIWindowMgr::EnsureWindow(int id) {
|
|||
}
|
||||
break;
|
||||
default:
|
||||
if (Singleton<CUIRegisterMgr>::GetInstance()->sub_A970A0(id)) {
|
||||
if (Singleton<CUIRegisterMgr>::GetInstance()->IsRegistered(id)) {
|
||||
window = this->LookupWindow(id);
|
||||
if (window == nullptr) {
|
||||
window = Singleton<CUIRegisterMgr>::GetInstance()->Create(id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue