public UserInput(GraphicsDeviceManager graph, SpriteBatch batch, Game1 gam, ContentManager conten) : base() { graphics = graph; spriteBatch = batch; game = gam; content = conten; chat = game.chat; chat.Setup_Chat(); Setup_Item_Slots(); for(int i = 0; i < 6; i++) { Add_Experience_Button[i] = new Rectangle(0, 0 + (i * 80), 300, 40); } }
protected override void LoadContent() { Main.Set_Game_Location(this); spriteBatch = new SpriteBatch(GraphicsDevice); device = graphics.GraphicsDevice; map = new Map(Content); UI_Handler = new UserInterfaceHandler(Content, spriteBatch); player.LoadContent(Content); shop.LoadContent(Content); chat = new ChatBox_Handler(graphics, Content); userInput = new UserInput(graphics, spriteBatch, this, Content); scen = new scene(); WoodChopper_NPC.LoadContent(Content); // dij.Build(); enemy.LoadContent(Content); // dij = new Dijkstra(); // dij.Build(); }