Commit Graph

  • d2e5c23c61 abstract reusable function from goToLine so it can be used in goToIdx, and implement goToIdx Humza Shahid 2024-10-10 22:56:24 +01:00
  • e7f20a5c7f undo hardcoded parameter for visual testing purposes Humza Shahid 2024-10-09 12:43:42 +01:00
  • 6344dca6cb done fiddling with cursor; looks fine now Humza Shahid 2024-10-09 12:42:07 +01:00
  • 306d693877 have cursor drawn now, but it is not appropriate size for character so have to fix that next Humza Shahid 2024-10-09 12:05:40 +01:00
  • 5cc4357cc7 progress drawing cursor Humza Shahid 2024-10-09 11:59:41 +01:00
  • 2afc54abc5 additional preparation for drawing cursor (next, just need to send cursor vector) Humza Shahid 2024-10-09 11:36:05 +01:00
  • 9d7d00e8d1 add cursor buffer and cursor program to imperative shell Humza Shahid 2024-10-09 11:22:39 +01:00
  • 418adc4502 add cursorIdx to app type in fcore Humza Shahid 2024-10-09 10:59:32 +01:00
  • cfaa66bc0b begin preparation for drawing cursor Humza Shahid 2024-10-09 10:53:00 +01:00
  • fc1d08f364 receive latest commit of cozette-sml which fixes position of _underscore and backtick, which were swapped with each other Humza Shahid 2024-10-09 01:25:38 +01:00
  • bfc5a3914c hardcode more pleasant (in my opinion) colour scheme for the moment Humza Shahid 2024-10-09 01:23:26 +01:00
  • cd1cef793e update cozette-sml, receiving fixed ascii table (just that _underscore_ and had their positions swapped) Humza Shahid 2024-10-09 01:19:01 +01:00
  • 25eee9f3e6 swap position of backtick and underscore around in ascii table, because they were in each other's position Humza Shahid 2024-10-09 01:12:19 +01:00
  • 1ae15e5585 expand comment to reflect a bit of planning Humza Shahid 2024-10-09 00:02:12 +01:00
  • 6e4cc9acff a bit of refactoring Humza Shahid 2024-10-08 08:53:43 +01:00
  • 68a1787958 done scaffolding cml and adding resize functionality Humza Shahid 2024-10-06 10:23:07 +01:00
  • b95fc48252 scaffolding for concurrent ml Humza Shahid 2024-10-06 09:32:56 +01:00
  • 6766fd1485 a bit of scaffolding to prepare for adding resize callback + message types Humza Shahid 2024-10-06 08:18:24 +01:00
  • c5efc4640f return tuple from function 'startBuildTextLineGap' as function to move LineGap, used in 'startBuildTextLineGap' optimises nodes for better performance on subsequent operations Humza Shahid 2024-10-05 23:27:25 +01:00
  • d2b8f713d3 implement functionality to start building string vector from requested line Humza Shahid 2024-10-05 23:16:32 +01:00
  • 12caf4df89 pull new brolib commit, which contains function to go to specific line Humza Shahid 2024-10-05 23:02:25 +01:00
  • d4ef45630d add function to move to specific line number (or the node containing a specific line number if node contains multiple line breaks) Humza Shahid 2024-10-05 23:01:19 +01:00
  • 3f2f135a36 move LineGap to start after loading file in shell.sml, and fix wrong parameter passed in mutually recursive function, in buffer.sml Humza Shahid 2024-10-05 15:07:23 +01:00
  • 135ec2e3a6 update brolib subnodule, so we gain access to LineGap.goToStart function Humza Shahid 2024-10-05 14:21:51 +01:00
  • 36edbb6dee add function to go to start of line_gap.sml Humza Shahid 2024-10-05 14:17:15 +01:00
  • e64b7418ae use LineGap.append in shell/shell.sml Humza Shahid 2024-10-05 12:56:23 +01:00
  • 6ac3525192 pull in new version of line_gap.sml, which has a new append function as well Humza Shahid 2024-10-05 12:44:37 +01:00
  • 2a5a5b0787 add append function to line_gap.sml Humza Shahid 2024-10-05 12:39:45 +01:00
  • 2f0630dd88 draw super basic text to screen Humza Shahid 2024-10-05 02:03:17 +01:00
  • 5cbadca309 update brolib submodule Humza Shahid 2024-10-05 01:00:46 +01:00
  • 599252e5ed add function to create a LineGap.t from a string (although, for performance reasons, it's best to use this function when string is shorter than 1024 chars) Humza Shahid 2024-10-05 00:57:12 +01:00
  • 4586135d18 done for the moment with text rendering Humza Shahid 2024-10-05 00:17:11 +01:00
  • de70d31ee1 progress adding function to draw text Humza Shahid 2024-10-04 23:23:25 +01:00
  • ff8d911010 add dependencies to .mlb file Humza Shahid 2024-10-04 15:08:47 +01:00
  • e05f7a383e add a couple of libraries Humza Shahid 2024-10-04 15:03:47 +01:00
  • 014c2ef7d1 add signature to line_gap.sml Humza Shahid 2024-10-04 15:00:14 +01:00
  • c5913c5ccb amend compiler error, and leave a couple of comments about drawText function Humza Shahid 2024-10-03 07:28:58 +01:00
  • e6298e7b61 initialise text vertex buffer and text program in gl-draw.sml, and add functions to draw Humza Shahid 2024-10-02 22:09:22 +01:00
  • eb0ca122d6 add draw module (very incomplete) Humza Shahid 2024-10-01 08:25:12 +01:00
  • ae8005dceb add shader strings for open gl Humza Shahid 2024-09-30 15:46:19 +01:00
  • c37c8d60e3 init Humza Shahid 2024-09-30 13:43:43 +01:00
  • fcfa50e1f6 add fonts as submodule, so it can be shared with other projects Humza Shahid 2024-09-30 12:01:12 +01:00
  • f39f1466a4 init Humza Shahid 2024-09-30 11:55:43 +01:00
  • 13682f1c6c add load functionality (but note that saving is still hardcoded right now) Humza Shahid 2024-09-29 22:26:07 +01:00
  • 249247b704 progress for navigqation within file browser Humza Shahid 2024-09-29 16:08:04 +01:00
  • 5369f84389 display currently selected file/folder in a different colour, to visually mark which one is currently being focused. Humza Shahid 2024-09-29 12:45:13 +01:00
  • 9d44589b9d add fileBrowserIdx field to track which item is selected in the browser Humza Shahid 2024-09-29 12:32:11 +01:00
  • 6846d7bd52 change spacing between letters a bit to make text more legible Humza Shahid 2024-09-27 21:36:35 +01:00
  • ea7722b1f0 amend lower-case-s to sit on baseline, as other letters do Humza Shahid 2024-09-27 10:12:01 +01:00
  • be379e1fe0 begin drawing file browser text Humza Shahid 2024-09-27 10:06:21 +01:00
  • 6fa88769aa add modal text draw object to imperative shell, for drawing text like file browser Humza Shahid 2024-09-27 09:08:19 +01:00
  • e3ff121a35 change AppUpdate.update function to return a list, so we can return multiple messages from a single event Humza Shahid 2024-09-27 08:27:53 +01:00
  • 57fbf5f1aa add todo note Humza Shahid 2024-09-25 20:34:59 +01:00
  • 2528e67375 progress towards adding load functionality' Humza Shahid 2024-09-25 10:17:57 +01:00
  • d49ac2c565 progress towards being able to load files dynamically Humza Shahid 2024-09-25 08:08:15 +01:00
  • c17c573638 add new field to app type, to distinguish between modes (one mode for normal insertion/deleteion, another mode for saving, etc.) Humza Shahid 2024-09-24 21:54:19 +01:00
  • 7dfc427663 add backtick to ascii table, which was missing before and caused offsets after backtick to be off by 1 Humza Shahid 2024-09-23 22:43:41 +01:00
  • a65cf56a56 create .mlb file with ascii tabble Humza Shahid 2024-09-23 15:50:59 +01:00
  • 8db8487f7a add and export glyph that is meant to represent an unknown ascii character Humza Shahid 2024-09-23 14:04:43 +01:00
  • a60aa28d6b add all upper case letters Humza Shahid 2024-09-23 14:00:05 +01:00
  • dbbc4b4122 done exporting all symbols Humza Shahid 2024-09-23 13:47:31 +01:00
  • ee56118dec export all lower case letters Humza Shahid 2024-09-23 13:35:19 +01:00
  • a23a94678f export 19 symbols Humza Shahid 2024-09-23 13:21:11 +01:00
  • 029786e2f1 export numbers to .sml files Humza Shahid 2024-09-23 12:59:23 +01:00
  • bf6a0cd812 add remaining symbols Humza Shahid 2024-09-23 12:30:50 +01:00
  • 88a7e9e77c amend height of some symbols Humza Shahid 2024-09-23 12:23:39 +01:00
  • 93323438f4 add some more symbols Humza Shahid 2024-09-23 12:03:02 +01:00
  • 6bd88ddc0b add more symbols Humza Shahid 2024-09-23 11:36:48 +01:00
  • 6117fb447c add a few more symbols (question mark and backwards/forwards slash) Humza Shahid 2024-09-23 10:50:08 +01:00
  • 984c06aa9d add some symbols Humza Shahid 2024-09-23 08:28:12 +01:00
  • e296bf8e6f add numbers 0-9 Humza Shahid 2024-09-22 22:25:03 +01:00
  • cd9e8829c8 done adding all upper and lower case letters, and double-checked to make sure they are correct Humza Shahid 2024-09-22 21:26:14 +01:00
  • 126f3c929c add upper case K Humza Shahid 2024-09-22 20:54:29 +01:00
  • 70d298b963 add upper case A-J Humza Shahid 2024-09-22 15:59:55 +01:00
  • 7e31b9f88b done with lower case letters Humza Shahid 2024-09-22 10:16:09 +01:00
  • 77b2ab5fc8 add lower case n-q Humza Shahid 2024-09-22 09:56:33 +01:00
  • 6e3e2ad784 add lower-case a-f, at correct resolution Humza Shahid 2024-09-22 09:43:05 +01:00
  • dcb73c83c0 delete some fonts (I had the wrong resolution set for them so they needed to be redone), and add lower case g-m Humza Shahid 2024-09-22 09:25:50 +01:00
  • e3d2c36dd5 add box placeholder to signify a specific character has not been found Humza Shahid 2024-09-21 15:50:23 +01:00
  • 0cc039580b add missing upper case glyphs ('R' and 'U'), and fix broken glyph (just 'T') Humza Shahid 2024-09-21 15:32:51 +01:00
  • a4ece480f2 add more glyphs (but I think some are missing still Humza Shahid 2024-09-21 15:12:41 +01:00
  • 92eec06f5e revert to previous style of grid Humza Shahid 2024-09-21 14:41:47 +01:00
  • 308acc4e45 add M-Q Humza Shahid 2024-09-21 14:26:06 +01:00
  • 12a627efa5 add 'l' and 'm' Humza Shahid 2024-09-21 14:03:58 +01:00
  • 967dd2433e change graph lines to draw dots at clickable points rather than lines which are similar to graph paper Humza Shahid 2024-09-21 13:23:25 +01:00
  • 29755c2ddb create F-K font files Humza Shahid 2024-09-21 07:15:05 +01:00
  • 4c5df92a0a generate first 5 upper case letters (A-E) Humza Shahid 2024-09-20 22:29:06 +01:00
  • 2098a4eda7 add 'numClickPoints' field to app type, and add parameter with same name to ClickPoints.generate function Humza Shahid 2024-09-20 21:33:35 +01:00
  • 2816ff0875 100% done adding functionality to allow adding coordinates through arrow keys and space/enter Humza Shahid 2024-09-20 14:38:04 +01:00
  • 3472ff3c1c done adding functional-core part of arrow input (now just need to adjust a bit in the imperative shell next) Humza Shahid 2024-09-20 14:14:07 +01:00
  • 9ffc19ef24 progress towards supporting arrow input Humza Shahid 2024-09-20 12:33:31 +01:00
  • 2d817cc998 adjust app type by adding arrowX and arrowY integer fields, and subsequent refactoring, as preparation for being able to draw with arrow keys Humza Shahid 2024-09-20 10:17:57 +01:00
  • 80e1a68843 change ClickPoints.getMousePosition function to return indices to the click points array rather than the click points themselves; this will help adding functionality to use arrows for selecting click points later Humza Shahid 2024-09-20 09:07:54 +01:00
  • 415f06f0c0 address second regression mentioned in previous commit, where clicked dots are no longer visible (turns out that I removed a line during refactoring which added the triangle stage coordinates to the dot vector) Humza Shahid 2024-09-19 18:54:32 +01:00
  • 6a7f11efe6 address one regression, where triangles were no longer being displayed (because calculation changed) after the previous refactoring. I know of only one more regression, which is that the clicked dots do not persist after moving the mouse. Humza Shahid 2024-09-19 17:46:40 +01:00
  • 9153217d5f attempt a little refactoring (but note that this refactoring is untested) Humza Shahid 2024-09-16 21:49:05 +01:00
  • d21f31778a add hash symbol (#) Humza Shahid 2024-09-13 11:56:57 +01:00
  • 772dafec8c add double quotes Humza Shahid 2024-09-13 11:42:43 +01:00
  • b1a51473e7 add exclamation mark Humza Shahid 2024-09-13 11:28:20 +01:00
  • 0dda4dc974 update README, and consider repository finished (at least for now) Humza Shahid 2024-09-11 13:19:41 +01:00