mu3-mods/NaiveRating/MU3/patch_ANM_SWH_Profile.cs

23 lines
578 B
C#
Raw Permalink Normal View History

using MU3.User;
using MU3.Util;
namespace MU3;
2024-07-04 12:39:11 +00:00
class patch_ANM_SWH_Profile: ANM_SWH_Profile {
public extern void orig_setUpLogin();
// Fixes login display
public new void setUpLogin() {
2024-07-02 01:35:45 +00:00
UserManager instance = Singleton<UserManager>.instance;
2024-07-07 14:47:46 +00:00
var up = instance.userPreview;
if(NaiveRating.IsEnabled()) {
up.dispRating = 0;
instance.userPreview = up;
orig_setUpLogin();
up.dispRating = 2;
instance.userPreview = up;
} else {
orig_setUpLogin();
}
2024-07-02 01:35:45 +00:00
}
}