First time doing mouse-picking that isn't using rectangular regions 🐁
63 comments
@cancel wait, should I have used bitmasks for this? I'm just doing if x and y are more than half the height/width of the selection, then pick the other. @neauoire Nah that's fine. If it gets more fancy, you might consider it, though. Since it lets you adjust the graphics and hit zones really precisely without having to write custom logic each time. And the size of a small bitmask is often smaller than the bytes of code needed to do a custom hit test. @neauoire loving how it's shaping up. Makes a good friend to Decker, a modern reimagination of Hypercard, which looks very similar! I want to see more Macintosh software reimagined like that. I wonder what is the next good candidate. @neauoire hmm, it uses the multi-window paradigm. One would either implement a window manager in the port, or... embed it in Potato 😳 @bouncepaw I'd implement it with its own window handling, I've done some of that in potato and noodle, it's not too much trouble. Found some screenshots where people have the NewYork12 font in their Note Pad application instead. I'm not sure why that's different from the one I have, but I much prefer NewYork12 to mine.
[DATA EXPUNGED]
@neauoire in every Mac OS 6 (or before?) to current, if you hold command (Apple) and drag a window which is *backgrounded*, the window will move without being foregrounded. Other hidden operations which are related but not relevant to Notepad: Holding option and clicking close closes all windows in the current application; holding cmd and clicking the title bar title shows the path the file is at (if the window represent a file). @mcc I'm not planning on implementing operating system and windowing behaviours, I'll end at the Note Pad application I think ^^; @neauoire lovely! @rsms I did after I recorded the last clip, but I noticed that the macintosh doesn't do it, the cursor keeps showing up briefly while I type at intervals. @rsms Do you remember if there was a way of collapsing the note pad application like this in system 7? @CapitalEx look-ahead to next white-space, if the word is further than screen-width, wrap. Proportional text selection always trips me up, I feel like each time I have to relearn how to handle mouse-picking.. Added keyboard controls, along with modifiers like shift+arrows to modify the selection length. Starting to handle the less-fun stuff like string insertion and shifting memory around. Back to fun things now that the textarea is pretty much done. Added copy/pasting, theme supports, and made the window collapsible. Routing text editing to the right memory slot, there will be 8 pages of memory like the original. @neauoire "left" looking at it's potential substitute like :angry_laugh: @neauoire There was a subtlety that eluded me, when changing pages in Note Pad, it's always the last character that is selected. @neauoire That little UX piece is kind of genius. So cool to see this app coming together :tealheart: Usually in text editors, during a block selection, moving first deselects the block, and moves the cursor to the end, or keeps it in place. I guess back during Macintosh era, that behaviour was not standardized and moving left after a block selection would move the cursor. There should be a keybinding in i3 to remove the window border. @RL_Dane yeah, I've remove mine on start. The black borders are from the uxn emulator. @neauoire Not sure how you're doing that, but I once did a diagonal collision check like that using the sum of x and y like if(x+y < 10) and I thought that's so neat. |
@neauoire Bitmasks. The crowd goes wild.