static RoR2.UI.TooltipContent Tooltip(RoR2.UserProfile userProfile, RoR2.UI.LogBook.Entry entry, RoR2.UI.LogBook.EntryStatus entryStatus) { var tooltip = new RoR2.UI.TooltipContent(); tooltip.titleToken = entry.nameToken; tooltip.titleColor = Color.blue; tooltip.bodyToken = ((ExtraData)entry.extraData).Data; return(tooltip); }
static RoR2.UI.LogBook.EntryStatus IsAvailable(RoR2.UserProfile userProfile, RoR2.UI.LogBook.Entry entry) { return(RoR2.UI.LogBook.EntryStatus.Available); }
private void UserProfile_OnLogin(UserProfile.orig_OnLogin orig, RoR2.UserProfile self) { user = self.name; UserProfile.OnLogin -= UserProfile_OnLogin; orig(self); }