Maintenance: Second pass: name remaining numeric switch case labels (identifier-only; no code change). ~3,500 more labels across 150
Batch #14936 by ragnarok-clanker: no function's compiled code changes; checked with 158 compiled unit(s), including every includer of Source/Client/Mode/GameModeEnums.h, Source/Client/Mode/ModeMessage.h, Source/Contents/Actors/ActorEnums.h, Source/Contents/Actors/PetEnums.h, Source/Contents/Combat/CombatTypes.h, Source/Contents/Configuration/ServiceEnums.h, Source/Contents/Effects/EffectPrimId.h, Source/Contents/Hotkeys/InterfaceHotkey.h, Source/Contents/Items/ItemId.h, Source/Contents/Items/ItemType.h, Source/Network/Packets/ModeResultEnums.h, Source/Network/Packets/NoticeEnums.h, Source/Network/Packets/PacketId.h, Source/UI/Window/UIEnums.h, Source/UI/Window/WindowId.h.
This commit is contained in:
parent
71559e0fc0
commit
858265cc69
159 changed files with 5409 additions and 3560 deletions
|
|
@ -1,4 +1,5 @@
|
|||
#include "Client/Mode/CMode.h"
|
||||
#include "UI/Window/UIEnums.h"
|
||||
#include "UI/Dialogs/UIEditctrlWnd.h"
|
||||
|
||||
#include "Client/Application/Launcher.h"
|
||||
|
|
@ -247,9 +248,9 @@ void UIMiniMapWnd::ResetCursor(int, int) {
|
|||
// FUNCTION: fn_13562
|
||||
int UIEditctrlWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argument1, std::intptr_t argument2, std::intptr_t argument3, std::intptr_t argument4) {
|
||||
switch (message) {
|
||||
case 6:
|
||||
case UM_COMMAND:
|
||||
switch (argument1) {
|
||||
case 184: {
|
||||
case ID_OK: {
|
||||
std::string text = FormatOwnedString(g_miniMapMemoPath, g_applicationDirectory, g_session.m_navigationPlayerMap);
|
||||
FILE* file = std::fopen(text.c_str(), "ab");
|
||||
if (file) {
|
||||
|
|
@ -264,12 +265,12 @@ int UIEditctrlWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argument
|
|||
}
|
||||
return 0;
|
||||
}
|
||||
case 201:
|
||||
case ID_CLOSE:
|
||||
g_windowMgr.CloseWindow(274);
|
||||
return 0;
|
||||
}
|
||||
return 0;
|
||||
case 0:
|
||||
case UM_DEFPUSH:
|
||||
if (this->edit == sender && this->edit->Length() > 0) {
|
||||
this->SendMsg(this->edit, 6, 184, 0, 0, 0);
|
||||
return 0;
|
||||
|
|
@ -373,7 +374,7 @@ void UIMiniMapWnd::Paint() {
|
|||
// FUNCTION: fn_13563
|
||||
int UIMiniMapWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argument1, std::intptr_t argument2, std::intptr_t argument3, std::intptr_t argument4) {
|
||||
switch (message) {
|
||||
case 6:
|
||||
case UM_COMMAND:
|
||||
switch (argument1) {
|
||||
case 194: {
|
||||
const bool enabled = this->unknown_0120->geometry.unknown_0030 != 0;
|
||||
|
|
@ -385,7 +386,7 @@ int UIMiniMapWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argument1
|
|||
}
|
||||
case 200:
|
||||
return 0;
|
||||
case 201:
|
||||
case ID_CLOSE:
|
||||
g_windowMgr.CloseWindow(273);
|
||||
return 0;
|
||||
case 356:
|
||||
|
|
@ -452,7 +453,7 @@ int UIMiniMapWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argument1
|
|||
return 0;
|
||||
}
|
||||
|
||||
case 34:
|
||||
case UM_SETINFO:
|
||||
this->m_saved = reinterpret_cast<MiniMapWndInfo*>(argument1);
|
||||
if (!this->m_saved->IsValid()) {
|
||||
this->m_saved->Reset();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue