| | |
| | | WindowCenter.Instance.Close<EquipFrameWin>(); |
| | | } |
| | | |
| | | public static int GetRedpointFunction()
|
| | | {
|
| | | if (ModelCenter.Instance.GetModel<EquipStrengthModel>().redpoint.state == RedPointState.Simple)
|
| | | {
|
| | | return 0;
|
| | | }
|
| | | if (ModelCenter.Instance.GetModel<EquipGemModel>().redpoint.state == RedPointState.Simple)
|
| | | {
|
| | | return 1;
|
| | | }
|
| | | if (RedpointCenter.Instance.GetRedpointState(910000) == RedPointState.Simple)
|
| | | {
|
| | | return 2;
|
| | | }
|
| | | if (RedpointCenter.Instance.GetRedpointState(1720000) == RedPointState.Simple)
|
| | | {
|
| | | return 3;
|
| | | }
|
| | | return 0;
|
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | |
| | | void Strengthen1Button()
|
| | | {
|
| | | WindowCenter.Instance.Close<MainInterfaceWin>();
|
| | | WindowCenter.Instance.Open<EquipFrameWin>(false, 0);
|
| | | WindowCenter.Instance.Open<EquipFrameWin>(false, EquipFrameWin.GetRedpointFunction());
|
| | | }
|
| | |
|
| | | void OpenEquip()
|