| | |
| | | //---------记录主界面Top面板是否在可见位置
|
| | | public bool MainTopPanelShow = true;
|
| | |
|
| | | public event Func<bool> customDisplayPower;
|
| | |
|
| | | public override void Init()
|
| | | {
|
| | | IsTipBool = true;
|
| | |
| | | {
|
| | | ProwNumAdd = power - prowNum;
|
| | | prowNum = power;
|
| | | if (customDisplayPower != null && customDisplayPower())
|
| | | {
|
| | | return;
|
| | | }
|
| | | if (WindowCenter.Instance.IsOpen<PowerAddWin>())
|
| | | {
|
| | | WindowCenter.Instance.CloseImmediately("PowerAddWin");
|
| | | }
|
| | | WindowCenter.Instance.Open<PowerAddWin>();
|
| | |
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | public void FabaoPowerAdd(int power)
|
| | | public void CustomPowerUp(int power)
|
| | | {
|
| | | ProwNumAdd = power;
|
| | | if (WindowCenter.Instance.IsOpen<PowerAddWin>())
|
| | | {
|
| | | WindowCenter.Instance.Close<PowerAddWin>();
|
| | | |
| | | }
|
| | | if (prowNum != 0)
|
| | | {
|
| | | prowNum += power;
|
| | | }
|
| | | WindowCenter.Instance.Open<PowerAddWin>();
|
| | | }
|
| | |
|
| | | public void KissMonsterExperience(int _source, int _ExpPoint, int _Exp)//(1.单位经验亿点,2.经验单位点)
|
| | | {
|
| | | if (Event_Experience != null)
|