nerobot

Forum Replies Created

Viewing 15 posts - 616 through 630 (of 805 total)
  • Author
    Posts
  • in reply to: Ted2Go IDE #6318

    nerobot
    Participant

    Thanks for an explanation. Seems like a very specific thing. Maybe when my todo became empty… 🙂

    Current autocompletion list based on Dialog class, so it seems a bit massive (I didn’t know another way when implement it). So I plan to do completion list to look a lightweight. And need to fix Y-position (shown above than it should).

    in reply to: Keyboard.KeyHit appears to have auto-repeat #6313

    nerobot
    Participant

    About keyhit.

    As I know, keyhit usually return hits count since the beginning of main loop.

    Also, Hit = Press + Release. (or only pressed but don’t  increased until released)

    So if we are not releasing key it should return 1 (or true) at a loop frame key was pressed. And than will flushed at next frame and will return 0 or false until we release and press again.

    Upd. For gui apps we have OnKeyEvent() with full control of event, including its type that can be KeyRepeat.

    in reply to: Keywords 'As' and 'Is' #6310

    nerobot
    Participant

    1. You can deprecate Cast <> or mark it as deprecated (Need to somehow leave ‘cast’ keyword in help to do search of it).

    2. In docs for As / Is you explain what is under the hood.

    3. This is not absolute necessary but more basic-style IMO.

    in reply to: how can i find the instance type #6299

    nerobot
    Participant

    See properties SuperType and InterfaceTypes of TypeInfo class.

    in reply to: Defining preprocessor directives #6296

    nerobot
    Participant
    1. StaticIf looking good.
    2. To managing ‘usual’ directives for #if – I think a simple way is to use project-file.

    A project file

    • Json format to be easy to use.
    • A minimal project file will contains a ‘root’ monkey2 file which will compile, that we are ‘locking’ now.
    • Additional info like a list of preprocessor directives will be placed here too.
    • We need to pass a project file to compiler, not a single (locked) file, so compiler will know about all directives before it started its work.

    But need to add “Set As Active Project” functional into IDE, I can do it.

    And maybe as a way – combine new project data with existing products.json.

    in reply to: Keyboard.KeyHit appears to have auto-repeat #6292

    nerobot
    Participant

    What about using KeyReleased?

    in reply to: Ted2Go IDE #6289

    nerobot
    Participant

    @dmaz I never seen such docked completion list. How to choose values from it?

    in reply to: Ted2Go IDE #6277

    nerobot
    Participant

    @jesse, thanks for supporting! 🙂

    I need more motivation.

    in reply to: Eachin is not by reference? #6262

    nerobot
    Participant

    The difference (not your nickname:) ) is: in mx2 vec2f is a struct but it is a class in mx1. struct is copied when assign it to var.

    If you define vector as a class in mx2 it will be changed by the way you shown above.

    in reply to: rpg card game test #6261

    nerobot
    Participant

    Looking nice.:)

    in reply to: Ted2Go IDE #6243

    nerobot
    Participant

    New stuff:

    • Autocomplete – smart ident checking: by case and length, and by searching of ident parts. (see ted2go_new_complete.png)  [*]
    • New – added Preferences dialog to manage autocomplete state, show/hide toolbars and gutter. Stored in ted2.state.json. (see screenshot)  [**]
    • Improve – when delete \n in current line then also delete indent of the next line. This eliminates the need of deleting a few tabs from bottom (next) line.
    • Improve – append additional indent on new line if pressed Enter on line with ‘method’,’for’, etc.
    • Improve – types parsing (:=True, ‘Ptr’ and some other).
    • Improve – attempt to implement EnsureVisible for current document when open it. Worked fine for opened docs only.  [***]

    [*] – now, there is letter-by-letter checking with distance 3 chars. So, if we have ‘similar’ methods like Destroy() and OnDestroy() and typed ‘des’ we will see both these methods in autocompletion list.

    [**] – now we can choose – what key to use with completion list: Tab or/and Enter.

    [***] – because we need to wait layout before we can show the doc (else doc’s tab size is zero), but have no callback for that. And OnLayout is fired continuously even on app idle, is it OK?

    Windows version (Dropbox)

    in reply to: App Sizes – getting bigger and bigger #6241

    nerobot
    Participant

    I understood you, but I don’t want to rearrange modules (don’t have any releasable project in dev).

    I hope that Mark do it himself sometime. 🙂

    in reply to: #region #6239

    nerobot
    Participant

    This time Ted2go’s parser is based on mx2cc. When (and if) I will add an additional parsing of local scopes and add foldings.. then we can get this. Folding in editor and in code tree.. dreams 🙂

    Maybe via comment like this:

    ‘#region

    ‘#end

    in reply to: App Sizes – getting bigger and bigger #6230

    nerobot
    Participant

    Hm, interesting. This is a good news.:) Especially if Mark do it the same way.

    I tried to use ‘using std.collections’ but this had no result for sizing.

    Then I tried to import ‘sub’-module like #import <std.collections> but this is incorrect / unsupported way.

    Then I tried to import by absolute path (%path_to_modules%/std/collections.monkey2) – just for test, but absolute path didn’t work that time.

    And I postponed my attempt until better times.

    in reply to: App Sizes – getting bigger and bigger #6209

    nerobot
    Participant

    +1.

    Also I’m intresting in – is there way to reduce .so lib size.

Viewing 15 posts - 616 through 630 (of 805 total)