src/pause_tweaks.cpp
void RestoreButtonText() {
        getLogger().info("Restoring changed button text . . .");
        for(auto& entry : previousButtonText) {
            // Change the text back to what it was
            TextMeshProUGUI* textMesh = entry.first->GetComponentInChildren<TextMeshProUGUI*>();
            textMesh->set_text(il2cpp_utils::createcsstr(entry.second));
        }
        previousButtonText.clear(); // Empty the map - no buttons are overridden
    }
// Changes all the buttons back to their default text if it was changed
Changes all the buttons back to their default text if it was changed
Changes all the buttons back to their default text if it was changed
void RestoreButtonText() {
        getLogger().info("Restoring changed button text . . .");
        for(auto& entry : previousButtonText) {
            TextMeshProUGUI* textMesh = entry.first->GetComponentInChildren<TextMeshProUGUI*>();
            textMesh->set_text(il2cpp_utils::createcsstr(entry.second));
        }
        previousButtonText.clear(); 
    }
void RestoreButtonText ( ) { getLogger ( ) . info ( " " ) ; for ( auto & entry : previousButtonText ) { TextMeshProUGUI * textMesh = entry . first -> GetComponentInChildren < TextMeshProUGUI * > ( ) ; textMesh -> set_text ( il2cpp_utils :: createcsstr ( entry . second ) ) ; } previousButtonText . clear ( ) ; }
Changes all the buttons back to their default text if it was changed
Changes all the buttons back to their default text if it was changed
// Change the text back to what it was // Empty the map - no buttons are overridden