Maintenance: [forced, user-approved] Remove fabricated UIListBoxContext and NavigationDestination (family B; follow-up to #10188). Ev
Batch #10189 by ragnarok-clanker: forced by an admin (15 lower score(s), 71 changed function(s)); checked with 118 compiled unit(s), including every includer of Source/UI/Buttons/UINaviLinkButton.h, Source/UI/Chat/UISubChatHisWnd.h, Source/UI/Dialogs/UIChooseWarpWnd.h, Source/UI/Dialogs/UIChooseWnd.h, Source/UI/Edit/UIEditCtrl.h, Source/UI/EntryQueue/UIEntryQueueWnd.h, Source/UI/Guild/UIAgitWnd.h, Source/UI/Guild/UIGuildWnd.h, Source/UI/Items/UIItemRepairWnd.h, Source/UI/Items/UIMakeTargetListWnd.h, Source/UI/Items/UIWeaponRefineWnd.h, Source/UI/Lists/UIChatHisBox.h, Source/UI/Lists/UIComboBox.h, Source/UI/Lists/UIComboBoxEx.h, Source/UI/Lists/UIListBox.h, Source/UI/Lists/UIListBoxEx.h, Source/UI/Lists/UIListBoxNavi.h, Source/UI/Lists/UIListBoxNaviSearch.h, Source/UI/Lists/UIMemberListBox.h, Source/UI/Lists/UIPackageBoxNameList.h, Source/UI/Lists/UIReplayListBox.h, Source/UI/Navigation/UINavigationV4Wnd.h, Source/UI/Text/TextMarkup.h, Source/UI/Text/UITextViewer.h, Source/UI/UIRoundBoxTooltipWnd.h, Source/UI/Window/UIChatRoomWnd.h, Source/UI/Window/UINavigationWnd.h, Source/UI/Window/UISecondCostumeWnd.h, Source/UI/Window/UISelectReplayDataWnd.h, Source/UI/Window/UIShowWarpWnd.h.
This commit is contained in:
parent
5e424af693
commit
e844522fe1
65 changed files with 152 additions and 227 deletions
|
|
@ -1,3 +1,4 @@
|
|||
#include "UI/Text/ColoredText.h"
|
||||
#include "UI/Text/TextMarkup.h"
|
||||
|
||||
#include <windows.h>
|
||||
|
|
@ -10,19 +11,6 @@ namespace {
|
|||
}
|
||||
|
||||
// INLINED
|
||||
bool Color(const char* text, const char* end) {
|
||||
if (*text != '^' || end - text < 6) {
|
||||
return false;
|
||||
}
|
||||
|
||||
for (int index = 1; index <= 6; ++index) {
|
||||
if (!Hex(static_cast<unsigned char>(text[index]))) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// GLOBAL: gl_24593
|
||||
|
|
@ -102,18 +90,13 @@ std::string ExpandTextEscapes(std::string text) {
|
|||
|
||||
// OFFSET: 0x00A7EDC0
|
||||
// FUNCTION: fn_16961
|
||||
std::string RemoveTextColors(const char* text, unsigned short codePage) {
|
||||
std::string RemoveTextColors(const char* text) {
|
||||
const char* end = text + std::char_traits<char>::length(text);
|
||||
const char* current = text;
|
||||
std::string result;
|
||||
|
||||
while (current < end) {
|
||||
const char* next = current;
|
||||
|
||||
while (next < end && !Color(next, end)) {
|
||||
next = CharNextExA(codePage, next, 0);
|
||||
}
|
||||
|
||||
const char* next = SegmentEnd(current, end);
|
||||
result.append(current, next);
|
||||
|
||||
if (next >= end) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue