/// <summary> /// Initializes the Interface /// </summary> /// <param name="spriteBatch">SpriteBatch</param> /// <param name="renderer">Renderer </param> /// <param name="content"> ContentManager</param> /// <param name="uap"> UserActionProcessor</param> public void Init(SpriteBatch spriteBatch, Renderer renderer, ContentManager content, UserActionProcessor uap) { mSpriteBatch = spriteBatch; mDot = content.Load<Texture2D>("HudScreens/Dot"); content.Load<Texture2D>("HudScreens/CircleGray"); mTargetMark = content.Load<Texture2D>("HudScreens/TargetMark"); mRenderer = renderer; mCircle = content.Load<Texture2D>("HudScreens/Circle"); content.Load<SpriteFont>("defaultfont"); sMinionLabelFont = content.Load<SpriteFont>("MinionLabel"); mSpriteBatch = spriteBatch; mSelectionManager = uap.GetSelectionManager(); mSound = uap.GetSound(); mUap = uap; mMenu = new Menu(mSpriteBatch, content); mHud = new Hud(mSpriteBatch, content); }
public void SetInterface(Interface iface) { mHud = iface.GetHud(); mMenu = iface.GetMenu(); }