public HallSandBox(GameControls.PageControl BackingForm, SandBoxBase myFrontSandBoxValue, HallSandBoxMode myMode, CustomDesign myCustomDesignValue, bool useAnimationValue = true, EventHandler eventAfterEndingTheAnimation = null) : base(BackingForm, myCustomDesignValue) { MyFrontSandBox = myFrontSandBoxValue; Mode = SandBoxMode.HallSandBoxMode; HallMode = myMode; UseAnimation = useAnimationValue; CustomDesign = myCustomDesignValue; EventAfterEndingTheAnimation = eventAfterEndingTheAnimation; switch (HallMode) { case HallSandBoxMode.HallOfBookStoryMode: Initialize_HallOfStory_Component(); break; case HallSandBoxMode.HallOfElementMode: Initialize_HallOfElements_Component(); break; default: break; } Show(); }
//------------------------------------------------- #region Constructor's Region /// <summary> /// use this constructore for fun :| /// </summary> /// <param name="BackingForm"> /// this parameter should be <see cref="ThereIsConstants.Forming.GameClient"/> /// </param> public HallSandBox(GameControls.PageControl BackingForm, SandBoxBase myFrontSandBoxValue, HallSandBoxMode myMode, bool useAnimationValue = true, EventHandler eventAfterEndingTheAnimation = null) : base(BackingForm, new CustomDesign() { Dont_Set_Location = false, Dont_Set_Size = false, SandBoxOpacity = 0.7, SandBoxBackColor = Color.DarkGray, }) { MyFrontSandBox = myFrontSandBoxValue; Mode = SandBoxMode.HallSandBoxMode; HallMode = myMode; UseAnimation = useAnimationValue; EventAfterEndingTheAnimation = eventAfterEndingTheAnimation; switch (HallMode) { case HallSandBoxMode.HallOfBookStoryMode: Initialize_HallOfStory_Component(); break; case HallSandBoxMode.HallOfElementMode: Initialize_HallOfElements_Component(); break; default: break; } Show(); }
//---------------------------------------------- public FirstStoryLineSandBox(GameControls.PageControl CurrentForm, bool useAnimation = false, SandBoxMode myMode = SandBoxMode.FirstStoryLineMode) : base(CurrentForm, new CustomDesign() { SandBoxOpacity = 1, CustomControlCollection = null, SandBoxBackGroundImage = null, SandBoxButtons = null, Dont_Set_Location = true, Dont_Set_Size = true, ShowInTaskBar = false, SandBoxKeyPreview = false, SupportTransParentBackGroundColors = true }) { UseAnimation = useAnimation; Mode = myMode; switch (Mode) { case SandBoxMode.FirstStoryLineMode: Initialize_BookStory_Component(); break; case SandBoxMode.ElementSelectionMode: Initialize_ElementSelection_Component(); break; default: break; } }
/// <summary> /// Please use this constructor if and only if you want to /// display the centeral kingdom with ruined city. /// in fact, I will display a ruined Kingdom. /// thanks from /// <c> #SADRAartworks, /// </c> /// for his works. /// </summary> /// <param name="myBackPage"></param> /// <param name="isPreview"></param> public KingdomInfoSandBox(GameControls.PageControl myBackPage, bool isPreview = true) : base(myBackPage) { Mode = SandBoxMode.KingdomInfoMode; IsPreview = isPreview; Initialize_ForCenteralKingdom_Component(); }
//-------------------------------------------------- public UpdatingServerSandBox(GameControls.PageControl theCurrentForm, ref StrongString releaseDate) : base(theCurrentForm) { Mode = SandBoxMode.UpdatingServerMode; ClosedForRetry = false; ReleaseDate = releaseDate.GetValue(); InitializeComponent(); }
//------------------------------------------- public SandBoxBase(GameControls.PageControl currentForm) { ShowInTaskbar = false; UnderForm = currentForm; currentForm.Enabled = false; AllowDrop = false; //Mode = mode; It will set in another Classes :)) InitializeComponent(); }
//---------------------------------------------- public YuiLoadingSandbox(GameControls.PageControl theUnderForm) : base(theUnderForm) { ClosedByMe = false; UseAnimation = true; // Yui SHOULD be Animated. if (!ThereIsServer.ServerSettings.HasConnectionClosed) { TopMost = true; } InitializeComponent(); }
//-------------------------------------------------- #region Constructors Region /// <summary> /// Create new instance of this KingdomInfoSandBox. /// </summary> /// <param name="myBackPage"> /// it is either <see cref="ThereIsConstants.Forming.GameClient"/>, /// or .. /// </param> /// <param name="IsPreview"></param> public KingdomInfoSandBox(GameControls.PageControl myBackPage, KingdomInfo myKingdomInfo, bool isPreview = true) : base(myBackPage) { Mode = SandBoxMode.KingdomInfoMode; IsPreview = isPreview; KingdomInfo = myKingdomInfo; InitializeComponent(); }
//------------------------------------------------- #region Constructors and this[] Region private Map(GameControls.PageControl father, MapMode myMode, bool hasMoveableElement) { HasMoveableElement = hasMoveableElement; Mode = myMode; Father = father; if (HasMoveableElement) { AllowManNum = 10; } InitializeComponent(); }
//------------------------------------------------- #region static Methods Region public static AnimationCompany GetAnimationCompany(AnimationCompaniesList com, GameControls.PageControl father) { switch (com) { case AnimationCompaniesList.DreamWorksCompany: { return(new DreamWorks(father)); } } return(null); }
public SandBoxBase(GameControls.PageControl currentForm, CustomDesign customDesignValue) { Size = default; UnderForm = currentForm; currentForm.Enabled = false; currentForm.BringToFront(); BringToFront(); SandBoxCustomDesign = customDesignValue; AllowDrop = false; ShowInTaskbar = SandBoxCustomDesign.ShowInTaskBar; HasCustomDesign = true; InitializeComponent(); }
//------------------------------------------- /// <summary> /// consider this constructor will prepare the <see cref="IsCreatingMode"/> /// or <see cref="IsSignInMode"/>, so the user can sign up or sign in. /// </summary> /// <param name="theUnderForm"></param> public CreateProfileSandBox(GameControls.PageControl theUnderForm, bool useAnimation = false) : base(theUnderForm) { IsCheckingForExisting = false; IsCheckingForExistingEnded = false; DoesPlayerExists = false; IsCreatingMode = true; IsSignInMode = false; IsWaitingForCreating = false; IsWaitingForSignIn = false; IsCreatingEnded = false; IsSignInEnded = false; UseAnimation = useAnimation; InitializeComponent(); }
/// <summary> /// Consider this constructor will Load the pri-data of the profile (Link Start) /// </summary> /// <param name="theUnderForm"></param> /// <param name="theAccInfo"></param> public CreateProfileSandBox(GameControls.PageControl theUnderForm, ProfileInfo theProfInfo, bool useAnimation = false) : base(theUnderForm) { IsCheckingForExisting = false; IsCheckingForExistingEnded = false; DoesPlayerExists = false; IsCreatingMode = false; IsSignInMode = false; IsLinkStartMode = true; IsWaitingForCreating = false; IsWaitingForSignIn = false; IsCreatingEnded = false; IsSignInEnded = false; HasLoggedOut = false; ProfileInf = theProfInfo; UseAnimation = useAnimation; Initialize_LinkStart(); //------------------------------------------------ }
public NoInternetConnectionSandBox(SandBoxMode myMode, GameControls.PageControl theUnderForm) : base(theUnderForm) { Mode = myMode; ClosedForRetry = false; TopMost = true; switch (Mode) { case SandBoxMode.NoConnectionMode: Initialize_NoConnection_Component(); break; case SandBoxMode.UserAlreadyExistMode: Initialize_UserAlreadyExist_Component(); break; case SandBoxMode.UserNameOrPasswordWrongMode: Initialize_UNOrPassWrong_Component(); break; case SandBoxMode.ConnectionClosedMode: Initialize_ConnectionClosed_Component(); break; case SandBoxMode.Cant_LoadYourProfileMode: Initialize_CantLoadYrProf_Component(); break; case SandBoxMode.LoggedOutSuccessfullyMode: Initialize_LogedOutSuccessfully_Component(); break; case SandBoxMode.LogoutWarningMode: Initialize_LogOutWarning_Component(); break; case SandBoxMode.CloseWarningMode: Initialize_ClosingSandBox_Component(); break; } }
//------------------------------------------------- #region static Methods Region public static Map GenerateMap(GameControls.PageControl father, MapMode myMode, bool hasMoveableElement) { return(new Map(father, myMode, hasMoveableElement)); }
//------------------------------------------------- public ServerBreakSandBox(GameControls.PageControl UnderForm) : base(UnderForm) { Mode = SandBoxMode.ServerOnBreakMode; ClosedForRetry = false; InitializeComponent(); }
//------------------------------------------------- #region Constructors Region /// <summary> /// Please do NOT use this constructor directly, /// please instead use /// <see cref="AnimationCompany.GetAnimationCompany(AnimationCompaniesList)"/>. /// </summary> /// <param name="father"></param> public DreamWorks(GameControls.PageControl father, bool night = false) : base() { Father = father; DreamWorksInNight = night; InitializeComponent(); }
//------------------------------------- public NoInternetConnectionSandBox(GameControls.PageControl theUnderForm) : this(SandBoxMode.NoConnectionMode, theUnderForm) { ; }