forked from akanyan/mu3-mods
19 lines
625 B
C#
19 lines
625 B
C#
using MU3.Collab;
|
|
using UnityEngine;
|
|
|
|
namespace MU3.SceneObject;
|
|
|
|
class patch_ANM_SWH_LocalMatching_User: ANM_SWH_LocalMatching_User {
|
|
private GameObject _objRatingNum;
|
|
private GameObject _objRatingMask;
|
|
|
|
private extern void orig_set_sub(Party.UserInfo userInfo, bool isHost, bool isWaitPlay, bool forRecruit);
|
|
private void set_sub(Party.UserInfo userInfo, bool isHost, bool isWaitPlay, bool forRecruit) {
|
|
orig_set_sub(userInfo, isHost, isWaitPlay, forRecruit);
|
|
|
|
var flag = userInfo._optRatingID >= 1;
|
|
_objRatingNum.SetActive(flag);
|
|
_objRatingMask.SetActive(!flag);
|
|
}
|
|
}
|