public AchievementDisplay(float life,Achievement achievement)
        {
            _startLife = _life = life;
            _achievement = achievement;

            initPosition = new Vector2(EngineGlobals.Settings.WindowWidth - WIDGET_WIDTH - 4, EngineGlobals.Settings.WindowHeight);

            finalPosition = new Vector2(EngineGlobals.Settings.WindowWidth - WIDGET_WIDTH - 4, EngineGlobals.Settings.WindowHeight - WIDGET_HEIGHT - Height_Displace);

            Height_Displace += WIDGET_HEIGHT;
            Position = new Vector2(0, -WIDGET_HEIGHT);

            instanceNumber = _instances;
            _instances++;
        }
Exemple #2
0
        public AchievementDisplay(float life, Achievement achievement)
        {
            _startLife   = _life = life;
            _achievement = achievement;

            initPosition = new Vector2(EngineGlobals.Settings.WindowWidth - WIDGET_WIDTH - 4, EngineGlobals.Settings.WindowHeight);

            finalPosition = new Vector2(EngineGlobals.Settings.WindowWidth - WIDGET_WIDTH - 4, EngineGlobals.Settings.WindowHeight - WIDGET_HEIGHT - Height_Displace);

            Height_Displace += WIDGET_HEIGHT;
            Position         = new Vector2(0, -WIDGET_HEIGHT);

            instanceNumber = _instances;
            _instances++;
        }