public static void ItemIconLoadDegreeIconTexture(ItemIcon item_icon, DEGREE_TYPE type, Action <ItemIcon, Texture, DEGREE_TYPE> callback) { LoadIconTexture(item_icon, RESOURCE_CATEGORY.COMMON, ResourceName.GetDegreeIcon(type), null, delegate(Texture tex) { if (callback != null) { callback(item_icon, tex, type); } }); }
public static string GetDegreeIcon(DEGREE_TYPE degreeType) { return($"DIC_{degreeType.ToString()}"); }
private void SetTab(WORD_TAB selectTab, DEGREE_TYPE frameType) { //IL_00ca: Unknown result type (might be due to invalid IL or missing references) //IL_00e0: Unknown result type (might be due to invalid IL or missing references) //IL_010e: Unknown result type (might be due to invalid IL or missing references) //IL_0124: Unknown result type (might be due to invalid IL or missing references) //IL_0152: Unknown result type (might be due to invalid IL or missing references) //IL_0168: Unknown result type (might be due to invalid IL or missing references) //IL_0196: Unknown result type (might be due to invalid IL or missing references) //IL_01ac: Unknown result type (might be due to invalid IL or missing references) //IL_01db: Unknown result type (might be due to invalid IL or missing references) //IL_01f1: Unknown result type (might be due to invalid IL or missing references) //IL_0220: Unknown result type (might be due to invalid IL or missing references) //IL_0236: Unknown result type (might be due to invalid IL or missing references) //IL_0277: Unknown result type (might be due to invalid IL or missing references) //IL_02f8: Unknown result type (might be due to invalid IL or missing references) //IL_0309: Unknown result type (might be due to invalid IL or missing references) //IL_03a9: Unknown result type (might be due to invalid IL or missing references) if (frameType != DEGREE_TYPE.SPECIAL_FRAME) { SetButtonSprite((Enum)UI.BTN_PREFIX, TAB_SPRITE_NAME[(selectTab == WORD_TAB.PREFIX) ? 1 : 0], false); SetButtonSprite((Enum)UI.BTN_CONJUNCTION, TAB_SPRITE_NAME[(selectTab == WORD_TAB.CONJUNCTION) ? 1 : 0], false); SetButtonSprite((Enum)UI.BTN_SUFFIX, TAB_SPRITE_NAME[(selectTab == WORD_TAB.SUFFIX) ? 1 : 0], false); SetButtonEnabled((Enum)UI.BTN_PREFIX, selectTab != WORD_TAB.PREFIX); SetButtonEnabled((Enum)UI.BTN_CONJUNCTION, selectTab != WORD_TAB.CONJUNCTION); SetButtonEnabled((Enum)UI.BTN_SUFFIX, selectTab != WORD_TAB.SUFFIX); GetCtrl(UI.LBL_PREFIX).GetComponent <UILabel>().color = ((selectTab == WORD_TAB.PREFIX) ? selectColors[0] : normalColors[0]); GetCtrl(UI.LBL_PREFIX).GetComponent <UILabel>().effectColor = ((selectTab == WORD_TAB.PREFIX) ? selectColors[1] : normalColors[1]); GetCtrl(UI.LBL_CONJUNCTION).GetComponent <UILabel>().color = ((selectTab == WORD_TAB.CONJUNCTION) ? selectColors[0] : normalColors[0]); GetCtrl(UI.LBL_CONJUNCTION).GetComponent <UILabel>().effectColor = ((selectTab == WORD_TAB.CONJUNCTION) ? selectColors[1] : normalColors[1]); GetCtrl(UI.LBL_SUFFIX).GetComponent <UILabel>().color = ((selectTab == WORD_TAB.SUFFIX) ? selectColors[0] : normalColors[0]); GetCtrl(UI.LBL_SUFFIX).GetComponent <UILabel>().effectColor = ((selectTab == WORD_TAB.SUFFIX) ? selectColors[1] : normalColors[1]); SetActive((Enum)UI.SPR_PREFIX_SELECT, selectTab == WORD_TAB.PREFIX); SetActive((Enum)UI.SPR_CONJUNCTION_SELECT, selectTab == WORD_TAB.CONJUNCTION); SetActive((Enum)UI.SPR_SUFFIX_SELECT, selectTab == WORD_TAB.SUFFIX); arrowTrans.get_gameObject().SetActive(true); switch (selectTab) { default: arrowTrans.set_parent(GetCtrl(UI.BTN_PREFIX)); break; case WORD_TAB.CONJUNCTION: arrowTrans.set_parent(GetCtrl(UI.BTN_CONJUNCTION)); break; case WORD_TAB.SUFFIX: arrowTrans.set_parent(GetCtrl(UI.BTN_SUFFIX)); break; } arrowTrans.set_localPosition(arrowLocalPos); arrowTrans.set_localScale(arrowlocalScale); } else { SetSprite((Enum)UI.BTN_PREFIX, TAB_SPRITE_NAME[2]); SetSprite((Enum)UI.BTN_CONJUNCTION, TAB_SPRITE_NAME[2]); SetSprite((Enum)UI.BTN_SUFFIX, TAB_SPRITE_NAME[2]); SetButtonEnabled((Enum)UI.BTN_PREFIX, false); SetButtonEnabled((Enum)UI.BTN_CONJUNCTION, false); SetButtonEnabled((Enum)UI.BTN_SUFFIX, false); SetActive((Enum)UI.SPR_PREFIX_SELECT, false); SetActive((Enum)UI.SPR_CONJUNCTION_SELECT, false); SetActive((Enum)UI.SPR_SUFFIX_SELECT, false); arrowTrans.get_gameObject().SetActive(false); } }