Esempio n. 1
0
        public OnMiniMap(
            MenuManager menumanager,
            IRenderManager renderer,
            GlobalMiniMap globalminimap)
        {
            MenuManager   = menumanager;
            Render        = renderer;
            GlobalMiniMap = globalminimap;

            if (MenuManager.OnMinimapItem.Value)
            {
                Render.Draw += OnDraw;
            }

            MenuManager.OnMinimapItem.PropertyChanged += OnMiniMapChanged;

            if (Drawing.RenderMode == RenderMode.Dx9)
            {
                TextSize    = 14;
                IconExtra   = new Vector2(12, 23);
                IconSize    = 35;
                TPTextSize  = 12;
                TPTextExtra = new Vector2(8, 10);
            }
            else if (Drawing.RenderMode == RenderMode.Dx11)
            {
                TextSize    = 15;
                IconExtra   = new Vector2(12, 19);
                IconSize    = 21;
                TPTextSize  = 14;
                TPTextExtra = new Vector2(9, 13);
            }
        }
Esempio n. 2
0
 public DrawHelper(
     MenuManager menumanager,
     Unit myhero,
     GlobalMiniMap globalminiMap,
     GlobalWorld globalworld)
 {
     MenuManager   = menumanager;
     MyHero        = myhero;
     GlobalMiniMap = globalminiMap;
     GlobalWorld   = globalworld;
 }
Esempio n. 3
0
 public ParticleTeleport(
     MenuManager menumanager,
     Unit myhero,
     MessageCreator messagecreator,
     SoundPlayer soundplayer,
     Colors colors,
     GlobalMiniMap globalminiMap,
     GlobalWorld globalworld)
 {
     MenuManager    = menumanager;
     MyHero         = myhero;
     MessageCreator = messagecreator;
     SoundPlayer    = soundplayer;
     Colors         = colors;
     GlobalMiniMap  = globalminiMap;
     GlobalWorld    = globalworld;
 }
Esempio n. 4
0
 public Modifiers(
     MenuManager menumanager,
     Unit myhero,
     Dangerous dangerous,
     MessageCreator messagecreator,
     SoundPlayer soundplayer,
     Colors colors,
     GlobalMiniMap globalminimap,
     GlobalWorld globalworld)
 {
     MenuManager    = menumanager;
     MyHero         = myhero;
     Dangerous      = dangerous;
     MessageCreator = messagecreator;
     SoundPlayer    = soundplayer;
     Colors         = colors;
     GlobalMiniMap  = globalminimap;
     GlobalWorld    = globalworld;
 }
Esempio n. 5
0
        public BeAwarePlusConfig(BeAwarePlus BeAwarePlus)
        {
            MenuManager = new MenuManager();

            Colors = new Colors();

            Dangerous = new Dangerous();

            EntityToTexture = new EntityToTexture();

            ModifierToTexture = new ModifierToTexture();

            ParticleToTexture = new ParticleToTexture();

            GlobalMiniMap = new GlobalMiniMap();

            GlobalWorld = new GlobalWorld();

            MessageCreator = new MessageCreator(MenuManager);

            Resolution = new Resolution(MessageCreator);

            SoundPlayer = new SoundPlayer(MenuManager);

            Others = new Others(
                MenuManager,
                BeAwarePlus.Context.Owner,
                MessageCreator,
                SoundPlayer);

            DrawHelper = new DrawHelper(
                MenuManager,
                BeAwarePlus.Context.Owner,
                GlobalMiniMap,
                GlobalWorld);

            ParticleSpells = new ParticleSpells(
                MenuManager,
                BeAwarePlus.Context.Owner,
                Dangerous,
                MessageCreator,
                SoundPlayer,
                Colors,
                DrawHelper);

            ParticleItems = new ParticleItems(
                MenuManager,
                BeAwarePlus.Context.Owner,
                Dangerous,
                MessageCreator,
                SoundPlayer,
                Colors,
                DrawHelper);

            ParticleTeleport = new ParticleTeleport(
                MenuManager,
                BeAwarePlus.Context.Owner,
                MessageCreator,
                SoundPlayer,
                Colors,
                GlobalMiniMap,
                GlobalWorld);

            Entities = new Entities(
                MenuManager,
                BeAwarePlus.Context.Owner,
                Dangerous,
                MessageCreator,
                SoundPlayer,
                Colors,
                GlobalMiniMap,
                GlobalWorld);

            Modifiers = new Modifiers(
                MenuManager,
                BeAwarePlus.Context.Owner,
                Dangerous,
                MessageCreator,
                SoundPlayer,
                Colors,
                GlobalMiniMap,
                GlobalWorld);

            OnMiniMap = new OnMiniMap(
                MenuManager,
                BeAwarePlus.Render,
                GlobalMiniMap);

            OnWorld = new OnWorld(
                MenuManager,
                GlobalWorld,
                ParticleToTexture);
        }