Exemple #1
0
        private void OnFinishClicked(UXButton button)
        {
            if (this.activeContract == null)
            {
                return;
            }
            int crystalCostToFinishContract = ContractUtils.GetCrystalCostToFinishContract(this.activeContract);

            if (crystalCostToFinishContract >= GameConstants.CRYSTAL_SPEND_WARNING_MINIMUM)
            {
                FinishNowScreen.ShowModal(this.selectedBuilding, new OnScreenModalResult(this.FinishContract), null);
            }
            else
            {
                this.FinishContract(this.selectedBuilding, null);
            }
        }
Exemple #2
0
 public unsafe static long $Invoke9(long instance, long *args)
 {
     FinishNowScreen.ShowModal((Entity)GCHandledObjects.GCHandleToObject(*args), (OnScreenModalResult)GCHandledObjects.GCHandleToObject(args[1]), GCHandledObjects.GCHandleToObject(args[2]));
     return(-1L);
 }