Ted21 github update

About Monkey 2 Forums Monkey 2 Projects Ted21 github update

This topic contains 41 replies, has 6 voices, and was last updated by  AdamStrange 1 year, 5 months ago.

Viewing 15 posts - 1 through 15 (of 42 total)

  • Author

    Posts

  • #2602


    AdamStrange

    Participant

    This is my first attempt, so it all might go Pete Tong…

    https://github.com/StrangeIsMyName/monkey2

    in the src/ you will find ted21

    modules/mojo/graphics/canvas.monkey2

    modules/mojo/input/keyboard.monkey2

    modules/mojo/input/keycodes.monkey2

    Let me know how you get on. Everything works, but I’m not yet giving it a release number

    #2621


    DruggedBunny

    Participant

    Is this the correct release, Adam? I’ve download and built src/ted2 (there’s no ted21), and it looks the same as the original.

     

    Ignore: some sort of weirdness with Github Desktop, I think — I see that on visiting the project page, ted21 is there, but not in my newly-gitted version, for some reason, sorry! EDIT: Yep, Github Desktop lists both blitz-research/monkey2 and strangeismyname/monkey2, but both link to the same physical monkey2 folder with no ted21! Grrr.

    #2623


    AdamStrange

    Participant

    so, have you got it?

    #2625


    DruggedBunny

    Participant

    Yep, just tried to build ted21, but it gives me this:

     

    It highlights mojox/action.monkey2:

    Specifically:

    I’ve basically done rebuildall.bat, then run the standard-built ted, opened ted21.monkey2 and built. Should I be doing anything else before trying to build it?

    #2628


    AdamStrange

    Participant

    ok. looks like there might be a missing line in mojo/input/keycodes.monkey2

    i’ve updated the github with this file

    the line you need to add is the last line of the final enum (directly after Gui=..):

    Command= LeftGui|RightGui

     

    You then need to ./rebuildmods

    #2629


    DruggedBunny

    Participant

    I’m now getting this:

    … in mainwindow.monkey2, line 840:

    Same as the first try, so I guess NODEKIND_WINDOWCLOSE needs defining somewhere too!

     

    EDIT: Realised you build on Mac, which makes sense — it’s within the #If __HOSTOS__=”macos” else block!

    #2630


    AdamStrange

    Participant

    mmm, interesting, but getting better.

    ok I upped a new version of ted21, so just download and see how it compiles now?

    I’m going to get to the bottom of this for you ?

    #2631


    AdamStrange

    Participant

    ok. Change this line 840 to

    _fileMenu.AddAction( _fileClose, NODEKIND_WINDOWSCLOSE )

    There was an S missing! – my bad!

    #2650


    DruggedBunny

    Participant

    That’s building/running now, looking good!

    Some random observations:

    Liking the standard basic editor stuff like double-clicking a word to select it, and implementation of Ctrl + cursors, but I notice that Ctrl + left/right cursors jumps to start/end of line. Think that’s Mac behaviour, but on Windows I’d expect it to jump to the previous/next word, selecting if Shift also held. (Home/End do start/end of line on Windows.)

    I don’t really get what the blue/purple file icons actually do in the Code tab, sort of show/hide stuff, but not sure what exactly — reckon mojox needs some tooltips! The green square and orange spanner don’t seem to do anything, but perhaps I just don’t have the right kind of code opened — I know the last one is lambdas…

    Not sure if deliberate, but the code shows red DebugStop symbols on every line after the last line of code; also, you can play around with turning these on and off, and sometimes end up with a DebugStop but no red symbol. (Eg. Randomly turning on and off the first two red symbols seems to get it into this state.)

    Icons along the top are a bit blurry, maybe just need filtering turned off?

    Great update, though.

    #2651


    DruggedBunny

    Participant

    Just noticed the build progress bar, that’s really cool!

     

    Also just noticed that if I drag the window to one side (as I normally do, so it fills half the screen horizontally), the “Application built” text and line numbering overlap each other really messily. I’d suggest either just showing the executable name, rather than full path, or cutting it off where the line numbering starts. (Or both.)

    Just resize the window to simulate, of course…

    #2655


    gcmartijn

    Participant

    Looking great !

    And the osx shortcuts do work ?

    The only thing I hope for is to turn of the dotted returns and other dotted lines.
    Because for my eyes its a little to much.

    And maybe the icons 50% smaller and less blurry.

    Great Work !
    I included a screenshot how I see the window, maybe you want to know that.

    On the long term auto intel. would be super cool, to see what all the options a object can have.
    After that maybe you can include the help about that object option.

    #2678


    AdamStrange

    Participant

    @Bunny Could you post a quick list of what you would expect the windows cursor+ctrl/cmd key you would expect. That would be a great help ?

    Also just noticed that if I drag the window to one side (as I normally do, so it fills half the screen horizontally), the “Application built” text and line numbering overlap each other really messily. I’d suggest either just showing the executable name, rather than full path, or cutting it off where the line numbering starts. (Or both.)

     

    could you post an image of that for me and ill get onto it

    #2680


    DruggedBunny

    Participant

    I’ve attached a picture showing the overlapping status bar text.

    Thought the edit control might be easier to show in video form — this is the BlitzMax IDE, but the same works for most Windows text editors, including Notepad:

    Holding Ctrl, tapping left and right cursors:

    Holding both Ctrl and Shift, tapping left and right cursors:

    I suppose the basic idea is it jumps to the next whitespace or non-alphanumeric symbol.

    (Home and End deal with jumping to start/end of line.)

    Attachments:

    #2683


    AdamStrange

    Participant

    no problem, What I have done is put some extra code so that windows works slightly differently from OS X in the way you suggested. It will be in the next git update – stay tuned

    #2696


    AdamStrange

    Participant

    Git updated with minor code view changes/colors/cmd+up down/ new toolbar graphics

Viewing 15 posts - 1 through 15 (of 42 total)

You must be logged in to reply to this topic.