Пример #1
0
		public static void drawblanks(TexturesManager texman, StylesManager styman, String size, bool mySecs, bool myAm, bool existsSecs, bool existsAm, bool existsBoth)
		{
			if((mySecs && myAm) || (mySecs && !existsBoth))	
				return;
		
			if(!mySecs && !myAm)
			{
				if(existsBoth)
				{
					GUILayout.Label(texman.getTexture("secsblank_" + size), styman.texStyle);
					GUILayout.Label(texman.getTexture("amblank_" + size), styman.texStyle);
				}
				else if(existsSecs)
					GUILayout.Label(texman.getTexture("secsblank_" + size), styman.texStyle);
				else if(existsAm)
					GUILayout.Label(texman.getTexture("amblank_" + size), styman.texStyle);
			}
			else if(!mySecs && myAm)
			{
				if(existsBoth)
					GUILayout.Label(texman.getTexture("secsblank_" + size), styman.texStyle);
				else if(existsSecs)
					GUILayout.Label(texman.getTexture("interblank_" + size), styman.texStyle);
			}
			else if(mySecs && !myAm && existsBoth)
				GUILayout.Label(texman.getTexture("amblank_" + size), styman.texStyle);
		}
Пример #2
0
        protected override void LoadContent()
        {
            spriteBatch = new UberSpriteBatch(GraphicsDevice); // Charge notre spriteBatch personnalise
            TexturesManager.Load(Content);                     // Charge les textures
            cursor = new CursoManagers(TexturesManager.Cursor);
            RandomManager.Init();

            currentScreen = new StartMenu();
        }
Пример #3
0
        protected override void LoadContent()
        {
            spriteBatch = new UberSpriteBatch(GraphicsDevice); // Charge notre spriteBatch personnalise
            TexturesManager.Load(Content);                     // Charge les textures
            CursorManager.CurrentTexture = TexturesManager.Cursor;
            RandomManager.Init();
            XactManager.Load();
            currentScreen = new StartMenu();

            XactManager.PlaySong("Menu01");
            XactManager.Engine.GetCategory("Music").SetVolume(0.5f);
            XactManager.Engine.GetCategory("SoundEffect").SetVolume(0.5f);
        }
Пример #4
0
 /// <summary>
 /// Prevents a default instance of the <see cref="Project"/> class from being created.
 /// </summary>
 /// <param name="projectDirectory">The project directory.</param>
 private Project(string projectDirectory)
 {
     _singleton       = this;
     _name            = "NewProject";
     ProjectDirectory = projectDirectory;
     _textures        = new TexturesManager();
     _animations      = new AnimationsManager();
     _sounds          = new SoundsManager();
     _scenes          = new ScenesManager();
     _actorTypes      = new ActorTypesManager();
     _prototypes      = new ObservableList <Actor>();
     _settings        = new ProjectSettings();
 }
Пример #5
0
 protected override void LoadContent()
 {
     TexturesManager.LoadContent(this.Content);
     SoundManager.LoadContent(this.Content);
     VideoManager.LoadContent(this.Content);
     this.mainMenuForms.CreateForm(new Vector2(900, 300), "Username:"******"Password:"******"Confirm Password:"******"Username:"******"Password:", false);
     this.starfield.LoadContent(this.Content);
     MediaPlayer.Play(SoundManager.IntroSong);
 }
Пример #6
0
        /// <summary>
        /// Deserialize object.
        /// </summary>
        /// <param name="info">The <see cref="System.Runtime.Serialization.SerializationInfo"/> to retrieve data.</param>
        /// <param name="ctxt">The source (see <see cref="System.Runtime.Serialization.StreamingContext"/>) for this deserialization.</param>
        private Project(SerializationInfo info, StreamingContext ctxt)
        {
            Debug.Assert(ctxt.Context != null && ctxt.Context is string, "No project directory given.");

            _singleton       = this;
            _name            = info.GetString("Name");
            ProjectDirectory = ctxt.Context.ToString();
            _actorTypes      = (ActorTypesManager)info.GetValue("ActorTypes", typeof(ActorTypesManager));
            info.GetValue("ContentManager", typeof(ContentManager));
            _textures   = (TexturesManager)info.GetValue("Textures", typeof(TexturesManager));
            _animations = (AnimationsManager)info.GetValue("Animations", typeof(AnimationsManager));
            _sounds     = (SoundsManager)info.GetValue("Sounds", typeof(SoundsManager));
            _scenes     = (ScenesManager)info.GetValue("Scenes", typeof(ScenesManager));
            _prototypes = (ObservableList <Actor>)info.GetValue("Prototypes", typeof(ObservableList <Actor>));
            _settings   = (ProjectSettings)info.GetValue("Settings", typeof(ProjectSettings));
        }
Пример #7
0
 private void OnApplicationQuit()
 {
     _i = null;
 }
Пример #8
0
 public AlignableSpritePickingSystem(TexturesManager textureManager) : base(Aspect.All(typeof(Alignable), typeof(DirectionalTexture)))
 {
     this.textureManager = textureManager;
 }