Esempio n. 1
0
        public DataAccess(GraphicsDevice graphicsDevice, SpriteBatch spriteBatch, Input input, StateManager stateManager, Keymap keymap, GuiThread guiThread, ContentHelper contentHelper)
        {
            this.graphicsDevice = graphicsDevice;
            this.spriteBatch = spriteBatch;
            this.input = input;
            this.stateManager = stateManager;
            this.keymap = keymap;
            this.guiThread = guiThread;
            this.contentHelper = contentHelper;

            random = new Random();
        }
Esempio n. 2
0
        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(GraphicsDevice);

            contentHelper = new ContentHelper(GraphicsDevice, Content);
            LoadContentHelperData();

            Keymap keymap = new Keymap();
            RegisterKeyCombinations(keymap);

            dataAccess = new DataAccess(GraphicsDevice, spriteBatch, input, stateManager, keymap, guiThread, contentHelper);

            CollageEditState editState = new CollageEditState(dataAccess);
            stateManager.SetCurrentState(editState);
        }
Esempio n. 3
0
 public void RegisterKeyCombinations(Keymap keymap)
 {
     keymap.Set("undo", new KeyCombination(true, false, false, Keys.Z));
     keymap.Set("redo", new KeyCombination(true, false, false, Keys.Y));
 }
Esempio n. 4
0
 public ToolbarWindow(Keymap keymap)
 {
     this.keymap = keymap;
     interactions = new List<object>();
 }