Beispiel #1
0
        public static FinishNowScreen ShowModalWithNoContract(SmartEntity selectedBuilding, OnScreenModalResult onModalResult, object modalResultCookie, int crystalCost)
        {
            FinishNowScreen finishNowScreen = FinishNowScreen.CreateFinishNowScreen(selectedBuilding, null, true, onModalResult, modalResultCookie);

            finishNowScreen.crystals = crystalCost;
            Service.ScreenController.AddScreen(finishNowScreen);
            return(finishNowScreen);
        }
Beispiel #2
0
        public static FinishNowScreen ShowModalWithNoContract(SmartEntity selectedBuilding, OnScreenModalResult onModalResult, object modalResultCookie, int crystalCost, string title, string message, bool alwaysOnTop)
        {
            FinishNowScreen finishNowScreen = FinishNowScreen.CreateFinishNowScreen(selectedBuilding, null, true, onModalResult, modalResultCookie);

            finishNowScreen.crystals        = crystalCost;
            finishNowScreen.titleOverride   = title;
            finishNowScreen.messageOverride = message;
            finishNowScreen.IsAlwaysOnTop   = alwaysOnTop;
            Service.ScreenController.AddScreen(finishNowScreen);
            return(finishNowScreen);
        }
Beispiel #3
0
        public static void ShowModal(SmartEntity selectedBuilding, OnScreenModalResult onModalResult, object modalResultCookie)
        {
            Contract contract = Service.ISupportController.FindCurrentContract(selectedBuilding.Get <BuildingComponent>().BuildingTO.Key);

            if (contract == null)
            {
                return;
            }
            FinishNowScreen screen = FinishNowScreen.CreateFinishNowScreen(selectedBuilding, contract, false, onModalResult, modalResultCookie);

            Service.ScreenController.AddScreen(screen);
        }
Beispiel #4
0
 public unsafe static long $Invoke2(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(FinishNowScreen.CreateFinishNowScreen((Entity)GCHandledObjects.GCHandleToObject(*args), (Contract)GCHandledObjects.GCHandleToObject(args[1]), *(sbyte *)(args + 2) != 0, (OnScreenModalResult)GCHandledObjects.GCHandleToObject(args[3]), GCHandledObjects.GCHandleToObject(args[4]))));
 }