forked from akanyan/mu3-mods
feat!: NaiveRating -> MoreProfileOptions
This commit is contained in:
@ -0,0 +1,55 @@
|
||||
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) {
|
||||
var comp = arrayIcon[(int)id].transform.Find("NUL_Option_mini_Icon/TXT_Option_mini").GetComponent<MU3Text>();
|
||||
if(id == UserOption.OptionName.Rating) {
|
||||
switch(value) {
|
||||
case 0:
|
||||
comp.text = "OFF";
|
||||
break;
|
||||
case 1:
|
||||
comp.text = "TYPE-A";
|
||||
break;
|
||||
case 2:
|
||||
comp.text = "TYPE-B";
|
||||
break;
|
||||
}
|
||||
} else if(id == UserOption.OptionName.Abort) {
|
||||
switch(value) {
|
||||
case 0:
|
||||
comp.text = "OFF";
|
||||
break;
|
||||
case 1:
|
||||
comp.text = "S未達で中断";
|
||||
break;
|
||||
case 2:
|
||||
comp.text = "SS未達で中断";
|
||||
break;
|
||||
case 3:
|
||||
comp.text = "SSS未達で中断";
|
||||
break;
|
||||
case 4:
|
||||
comp.text = "SSS+未達で中断";
|
||||
break;
|
||||
case 5:
|
||||
comp.text = "PB未達で中断";
|
||||
break;
|
||||
case 6:
|
||||
comp.text = "FB未達で中断";
|
||||
break;
|
||||
case 7:
|
||||
comp.text = "スコア表示";
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
orig_setParam(id, value);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user