55 Commits (dev)

Author SHA1 Message Date
  Bryan Miller 263808a08b Grids now available in a number of different formats. Grid rendering has been moved to the ui/Renderer 5 years ago
  Bryan Miller 90524054d4 Added a NESTileSurface class accessible through the renderer that will allow for the quick rendering of NESTiles. 5 years ago
  Bryan Miller 24b5db84dd Some tweaks to the UI for creating new 'Store' items. 5 years ago
  Bryan Miller 808079ac24 Switched NESPalette.Default into a function that pulls colors from an array. These default values can now be set with the .SetDefault() function. 5 years ago
  Bryan Miller c09222ca01 Modal can now be opened with emit args of 'id' to open by element id or 'cls' to open by element class. 5 years ago
  Bryan Miller d206ec97e0 Added ui class EditableText to handle swapping between a <span> and a text <input> element for text that can be changed. 5 years ago
  Bryan Miller 698cfa8bae Fixed a bug in Input 5 years ago
  Bryan Miller 1d3024c167 Input updated to call the 'mouseup' event last, to remain consistant with all other events. 5 years ago
  Bryan Miller 82069a3529 Renderer now has a clear() method for clearing the given context with the given color. 5 years ago
  Bryan Miller 1939160fba ui/Renderer created to render Surface objects to canvas. 5 years ago
  Bryan Miller ad3a1a9ecd Small bug fixes to Modal. 5 years ago
  Bryan Miller 2e9302f101 Input updated to allow a specific element to watch for mouse events in a more direct way than previously. CTRLPainter updated for the change to Input. 5 years ago
  Bryan Miller d8b5c14856 Work being done to add new items to the asset lists (palette at the moment). Not fully working. 5 years ago
  Bryan Miller 3df24cc4de Reverted last change to Input. Didn't work. 5 years ago
  Bryan Miller 305698599c Input should no longer identify mouse as inbounds if target does not have focus. 5 years ago
  Bryan Miller 35b1cad2b8 Tabs working. 5 years ago
  Bryan Miller 5045de7f90 Working on TABs. There's a bug in the event listener at the moment. 5 years ago
  Bryan Miller 9d661281c3 Emitters now include the triggering element in the emitted event. Modal updated for the new element. 5 years ago
  Bryan Miller a801b4f90a Small modification on mouse event triggering. 5 years ago
  Bryan Miller f598b53dfa Added isMouseInBounds() and lastMousePosition() from Input. 5 years ago
  Bryan Miller 6167e610f1 Input mouse event data now includes the 'isCombo' parameter which will be true if the mouse event is part of a combo. 5 years ago
  Bryan Miller 6aa1185522 Input can now watch for 'wheelup' and 'wheeldown' for more fine grain event control. 5 years ago
  Bryan Miller 76ed24239f Input now handles 'mousewheel' and 'wheel' events. 5 years ago
  Bryan Miller d0c8dfcf62 Fixed mouse event name generations in Input. 5 years ago
  Bryan Miller 842d93207f Added [untested] code to combine kayboard and mouse events, to allow for keyboard+mouse event combos. 5 years ago
  Bryan Miller 615d171c65 Added some mouse button code/name mapping in Input. 5 years ago
  Bryan Miller a6af0f9dd8 Properly preventing default mouse events (right-click). 5 years ago
  Bryan Miller b86d5b939b Fixed mouse event test for element bounds. Attempting to add 'preventDefault' events. 5 years ago
  Bryan Miller fd9ec031e2 Added Input parameters to access mouse information. 6 years ago
  Bryan Miller 903b1cf2fa Renamed a couple of Input keyboard properties to be more explicit. 6 years ago
  Bryan Miller 7c3595bac9 Input class basic mouse events functional. Wheel not handled. 6 years ago
  Bryan Miller da3b49763a Added initial code for handling mouse. Nothing functional. 6 years ago
  Bryan Miller 862664c6be Input class used for Keyboard and (soon) mouse events and complex combinations. 6 years ago
  Bryan Miller 6b15932ff0 Reorganized files. Adjusted imports to match new locations. 6 years ago
  Bryan Miller 7fe55cd661 CTRLPainter watching window resize. Using Debounce. 6 years ago
  Bryan Miller 055d98a185 Connected CTRLPainter to main. 6 years ago
  Bryan Miller 5590cd01ea Fixed broken code in CTRLPalette. Reworked a but of main 6 years ago
  Bryan Miller c3e3161bf2 Readded GlobalEvents to CTRLPalettes HA! 6 years ago
  Bryan Miller fdd555bf8c Moved NESPainter to CTRLPainter. Just a rename at the moment. 6 years ago
  Bryan Miller 8430fcbd6f Removed GlobalEvents import from CTRLPalettes. Wasn't needed. 6 years ago
  Bryan Miller ebb2e53977 CTRLPalettes now sets and shows the individual drawing palettes. 6 years ago
  Bryan Miller 61e5c8ca84 Added some interface code for working with the drawing palettes. Still WIP. 6 years ago
  Bryan Miller 41ebf58447 CTRLPalettes now color button text black or white for better contrast 6 years ago
  Bryan Miller 6b62d11723 Building out the Controller system for integrating the HTML with the NESPalette class. 6 years ago
  Bryan Miller 72a47fab3c Now using handler's 'this' instead of event.target... Bubbling works now. 6 years ago
  Bryan Miller 4bd8ea3e11 Trying to build out application interface and integrate listener interactions. 6 years ago
  Bryan Miller 57a782e971 Completely misunderstood built in Javascript event listeners. EventWindow Removed. EventCaller now exports an instance of itself by default, but classes can still etend from the EventCaller class itself. 6 years ago
  Bryan Miller 6f1599e29f Modal functions. 6 years ago
  Bryan Miller 859ef65079 No longer 'freezing' the instance. 6 years ago
  Bryan Miller b43a4ef296 EventCaller can now test if a clicked DOM element has an 'emit' and 'emit-args' attribute and process an event emit accordingly. 6 years ago