forked from akanyan/mu3-mods
28 lines
1.0 KiB
C#
28 lines
1.0 KiB
C#
using MU3.CustomUI;
|
|
using MU3.User;
|
|
using UnityEngine;
|
|
|
|
namespace MU3;
|
|
|
|
class patch_OptionMiniSummaryController: OptionMiniSummaryController {
|
|
private GameObject[] arrayIcon = new GameObject[35];
|
|
private extern void orig_setParam(UserOption.OptionName id, int value);
|
|
private void setParam(UserOption.OptionName id, int value) {
|
|
if(id == UserOption.OptionName.Rating) {
|
|
switch(value) {
|
|
case 0:
|
|
arrayIcon[(int)id].transform.Find("NUL_Option_mini_Icon/TXT_Option_mini").GetComponent<MU3Text>().text = "OFF";
|
|
break;
|
|
case 1:
|
|
arrayIcon[(int)id].transform.Find("NUL_Option_mini_Icon/TXT_Option_mini").GetComponent<MU3Text>().text = "TYPE-A";
|
|
break;
|
|
case 2:
|
|
arrayIcon[(int)id].transform.Find("NUL_Option_mini_Icon/TXT_Option_mini").GetComponent<MU3Text>().text = "TYPE-B";
|
|
break;
|
|
}
|
|
} else {
|
|
orig_setParam(id, value);
|
|
}
|
|
}
|
|
}
|