VOID Draw_Detour(VOID) { CLabel* pThisLabel = (CLabel*)this; CHAR Buffer[MAX_STRING] = {0}; BOOL Found=FALSE; DWORD index; if (gAnonymize) { if (!bTrimnames) { #if !defined(ROF2EMU) && !defined(UFEMU) EzDetourwName(CAdvancedLootWnd__UpdateMasterLooter, &CLabelHook::CAdvancedLootWnd__UpdateMasterLooter_Detour, &CLabelHook::CAdvancedLootWnd__UpdateMasterLooter_Trampoline,"CAdvancedLootWnd__UpdateMasterLooter"); EzDetourwName(CComboWnd__GetChoiceText, &CLabelHook::CComboWnd__GetChoiceText_Detour, &CLabelHook::CComboWnd__GetChoiceText_Trampoline,"CComboWnd__GetChoiceText"); EzDetourwName(CComboWnd__InsertChoiceAtIndex, &CLabelHook::CComboWnd__InsertChoiceAtIndex_Detour, &CLabelHook::CComboWnd__InsertChoiceAtIndex_Trampoline,"CComboWnd__InsertChoiceAtIndex"); EzDetourwName(CAdvancedLootWnd__AddPlayerToList, &CLabelHook::CAdvancedLootWnd__AddPlayerToList_Detour, &CLabelHook::CAdvancedLootWnd__AddPlayerToList_Trampoline,"CAdvancedLootWnd__AddPlayerToList"); if (pAdvancedLootWnd && GetGameState() == GAMESTATE_INGAME) { CleanupLootCombo(true); } #endif EzDetourwName(CListWnd__AddString, &CLabelHook::CListWnd__AddString_Detour, &CLabelHook::CListWnd__AddString_Trampoline,"CListWnd__AddString"); EzDetourwName(CEverQuest__trimName, &CLabelHook::CEverQuest__trimName_Detour, &CLabelHook::CEverQuest__trimName_Trampoline,"CEverQuest__trimName"); EzDetourwName(__GetGaugeValueFromEQ, GetGaugeValueFromEQ_Detour, GetGaugeValueFromEQ_Trampoline,"__GetGaugeValueFromEQ"); EzDetourwName(__GetLabelFromEQ, GetLabelFromEQ_Detour, GetLabelFromEQ_Trampoline,"__GetLabelFromEQ"); bTrimnames = 1; } if (pThisLabel && pThisLabel->CGetWindowText()) { GetCXStr(pThisLabel->CGetWindowText(), Buffer); Anonymize(Buffer,MAX_STRING); } } else { if (bTrimnames) { bTrimnames = 0; #if !defined(ROF2EMU) && !defined(UFEMU) RemoveDetour(CComboWnd__GetChoiceText); RemoveDetour(CComboWnd__InsertChoiceAtIndex); RemoveDetour(CAdvancedLootWnd__AddPlayerToList); #endif RemoveDetour(CListWnd__AddString); RemoveDetour(CEverQuest__trimName); RemoveDetour(__GetGaugeValueFromEQ); RemoveDetour(__GetLabelFromEQ); #if !defined(ROF2EMU) && !defined(UFEMU) CleanupLootCombo(false); RemoveDetour(CAdvancedLootWnd__UpdateMasterLooter); #endif } } Draw_Trampoline(); if ((DWORD)pThisLabel->EQType==9999) { if (!pThisLabel->GetXMLToolTip()) { strcpy_s(Buffer,"BadCustom"); Found=TRUE; } else { //strcpy_s(Buffer,&pThisLabel->XMLToolTip->Text[0]); STMLToPlainText(&pThisLabel->GetXMLToolTip()->Text[0],Buffer); ParseMacroParameter(((PCHARINFO)pCharData)->pSpawn,Buffer); if (!strcmp(Buffer,"NULL")) Buffer[0]=0; Found=TRUE; } } else if (pThisLabel->EQType==1000) { for (index=0;Id_PMP[index].ID>0 && !Found;index++) { if (Id_PMP[index].ID==(DWORD)pThisLabel->EQType) { strcpy_s(Buffer,Id_PMP[index].PMP); ParseMacroParameter(((PCHARINFO)pCharData)->pSpawn,Buffer); if (!strcmp(Buffer,"NULL")) Buffer[0]=0; Found=TRUE; } } } if (Found) { pThisLabel->CSetWindowText(Buffer); //SetCXStr(&(pThisLabel->WindowText), Buffer); } }