nerobot

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 804 total)
  • Author
    Posts
  • in reply to: Android notification #16083

    nerobot
    Participant

    Hi, slow answer, but maybe anyone is still interested in.

    I created example app with android notifications.

    There are java (native folder) and mx2 sources.

    Click on notification will open your app again.

    But for your purposes there is a background service needed, or not?

    Sources: https://yadi.sk/d/zzm5anlVfbEYYQ

    in reply to: MojoX tutorial #16081

    nerobot
    Participant

    Hi, there are mojox tests – you can see them right inside ted2go ide in the Examples tab:

    in reply to: Ted2Go IDE #15916

    nerobot
    Participant

    Yeah! Thanks. 🙂

    in reply to: Ted2Go IDE #15882

    nerobot
    Participant

    There are some improvements in params hinting system, see screenshots.

    This time it can show just brackets – there is no actual default value shown.

    Available in dev-branch.

    in reply to: Simple gui #15621

    nerobot
    Participant

    Is momentumscroller the same as inertial scrolling?

    in reply to: Degrees From Position #15553

    nerobot
    Participant

    Little suggestion is to use floating type of incoming vectors.

    in reply to: How to get timestamp using libc #15552

    nerobot
    Participant

    Nice. But timestamp format looks like

    yyyy-mm-dd hh:mm:ss

    2018-11-01 18:36:10

    🙂

    Easy to adopt your code to that.

    in reply to: Android: How to save to Pictures folder #15551

    nerobot
    Participant

    I will test and add realisation for all external dirs.

    in reply to: Android: How to save to Pictures folder #15550

    nerobot
    Participant

    Hi. There is the function  GetSpecialDir:String( name:String ) but it understand only “internal” and “external” params for android,

    but you can extend it by changing this file

    /monkey2/modules/std/filesystem/native/Monkey2FileSystem.java

    add one more else  branch:

    and rebuild std module for android target.

    in reply to: What are BoxF? #15549

    nerobot
    Participant

    BoxF is an alias for Box<Float>, Box type allow us to set cubic bounds.

    It has many constructors, see the sources:

    https://github.com/blitz-research/monkey2/blob/develop/modules/std/geom/box.monkey2

    in reply to: Operator overloading (hello, php) #15524

    nerobot
    Participant

    And aren’t you gonna  confuse a whole bunch of php users?!?

    agree, it’s very bad idea. 🙂

    If the ‘type’ of Lifestyle is Int thanks to its getter operator, how can we access Lifestyle.Changed?

    yes! it’s looks impossible, and I miss it in my minds, if we have getter that return any type – we cant easily access to our parent type,

    the way via casting is not what we want.

    And what happens with prop1=prop2? If they are both Int Getters of the same type, should it get/set the int, or assign the entire getter, ‘Changed’ listeners and all? The sensible thing to do in all these cases is probably to treat any value  with a Getter as a value of the Getters type instead (just like properties),  and add new syntax to somehow ‘ignore’ the getter when you want work with the actual property-like container.

    I expected to have type conversion for expressions with our type, but not for dot access case, but I see now that it’s kind of impossible. 🙂

    Even if we’ll have assignment operator we’ll have no proper get operator and need to write getter explicitly:

    Operator To:T can help in some cases but not all.

    And I think now that using explicit prop.Value for setter and getter is the best solution.

    Thanks for the detailed answer, Mark!

    in reply to: Operator overloading (hello, php) #15521

    nerobot
    Participant

    I’m thinking about assignment operator, again 🙂

    And it would be enough for me to have []= operator as a special kind of assignment.

    This time both of these operators don’t work.

    and this sounds interesting:

    With a 2 line change to parser.monkey2 I can compile this

    What are anyone think about it?:)

    As for me – it could be a part of language, we don’t need to use it every time…

    in reply to: Monkey2 and touchpads #15486

    nerobot
    Participant

    I’m using windows 10 on macbook via virtualbox.

    And touchpad gestures work bad here, in ted2go too.

    in reply to: Phoenix USC #15485

    nerobot
    Participant

    Cool stuff! 🙂

    in reply to: Macos emscription how to install? #15483

    nerobot
    Participant
Viewing 15 posts - 1 through 15 (of 804 total)