Danilo

Forum Replies Created

Viewing 15 posts - 121 through 135 (of 145 total)
  • Author
    Posts
  • in reply to: Pyro for Monkey 2 #2593

    Danilo
    Participant

    2 days sounds good. 🙂

    in reply to: Pyro for Monkey 2 #2588

    Danilo
    Participant

    Life’s too short for waiting, so what is your decision? 😀

    in reply to: Ted21 progress #2576

    Danilo
    Participant

    code_browser_indenting

    Sexy… Lovely 😀

    in reply to: How about a Monkey 2 Projects forum? #2568

    Danilo
    Participant

    MX Community Forum has a ‘Projects & Showcase’ section. 😉

    Could add a ‘Tips & Tricks’ section as well, for publishing useful codes/snippets.

    in reply to: Ted21 progress #2461

    Danilo
    Participant

    AdamStrange:
    I think the Code Browser would look better if everything
    inside a Class/Struct/Interface/etc. is indented within
    the Code Browser.
    Later maybe with toggle-arrow, so we are able to show/hide
    the internals of a Class/Struct/Interf…

    Nice work so far, thanks!

    BTW: What does the ’21’ in ‘Ted21’ stand for?

    in reply to: Should "asset::" be plural? #2443

    Danilo
    Participant

    Spritesheets are probably more used in games,
    and MX2 is (and should be) not limited to games only.

    In Windows you would call it ImageList for using
    with Toolbars, etc.

    IncBin that creates an C++ array or memory-pointer would be nice,
    for loading assets/data (images/sounds/music/sprites/txt/ico/cur/…) directly
    from memory, using a memory address (void ptr).
    Especially to create stand-alone executables on the desktop-targets.

    in reply to: Should "asset::" be plural? #2415

    Danilo
    Participant

    For “http” they changed it also to plural, so
    while “http” will stay for a while (compatibility),
    the new and future-proof spelling is plural: “https”.

    😀

    Personally I read it as “location::file.ext”, so
    “fonts”/”images”/”assets” is fine as location.

    in reply to: Ted21 progress #2389

    Danilo
    Participant

    AdamStrange:
    Why not make all this optional from the start (TAB size,
    Visual TABs, automagically replace TAB with Spaces, etc.)?
    Complete Options/Preferences Dialog, so editing config files
    can stay a thing of the past. Syntax Highlighting and Linenumber
    colors, Fonts, etc. could all be choosen in preferences dialog.

    in reply to: Julia set fractal generator optimisation (drawpoint) #2358

    Danilo
    Participant

    So why would we use such properties if it is only to get and set the field the same way it would be done directly?

    If you just want to set a field, without the need to get
    the class/object noticed about the change, you can just
    use fields directly.
    But, such fields are always read+write, so for a read-only field
    you need to use a property.

    You would do a field like ‘Window.Title’ (String) as Property,
    because just setting the string is often not enough.
    The property calls an OS/API function like SetWindowTitle()
    in the background if you change win.Title – so that’s where
    you want to use Properties.
    Or setting win.X really moves a window on desktop, because of
    property-internal OS-calls. Just setting an Int value would not
    magically move the window.

    For structs that just hold plain/simple public data (like Matrix),
    you could just use plain fields, most of the time.

    in reply to: module std/graphics/color.monkey2 additions #2302

    Danilo
    Participant

    +1, ($FF,$FF,$00) and ($FFFF00) should both be supported
    for creating/constructing a color type using ‘New’.

    Also, i’m wondering why it’s all constants of ‘New Color’.
    Hope it’s not instances of type Color to bloat the resulting executable.

    With support for $FFFF00 it could be just Enum type.

    Many programmers think in RGB(A) Colors of $40, $80, $FF, …

    in reply to: String.FromChars #2007

    Danilo
    Participant

    Maybe use String.FormCString/FromUtf8String/FromWString?

    All take a pointer to a buffer (Void Ptr) and (optional) length.

    in reply to: New ted21 logo and monkey2 logo #1998

    Danilo
    Participant

    > Is Ted a bear? Never knew that! 🙂

    Ted is a teddy bear.

    Ted

    Ted 2

    in reply to: String.ToCString() issues #1672

    Danilo
    Participant

    Should it be?

    [/crayon]

    Docs say monkey.types.CString is the mapping for “char *”

    in reply to: Ted2 (request) & website (bug) #1595

    Danilo
    Participant

    I see a weird thingy on iPad for forum-links within quotes:
    In Chrome on iPad Pro a forum-link shows something like a preview-box
    of the linked site as overlay. I can’t remove it, and
    I cannot read the main article because of the overlay.

    Already noticed it many times, and it seems to happen always
    if a forum-link is quoted.

    Screenshot

    pic

    BTW, http://monkey2.monkey-x.com/language-reference/
    also does not work on iPad in Chrome. The links on the
    left side do not work.


    Danilo
    Participant

    jihem:
    Try renaming window_update.monkey2 to window_updt.monkey2 or similar –
    AFAIK it’s a special Windows OS “feature” for .exe that contain “update”,
    “install”, “patch”, and “setup” in the filename.

    EDIT:
    See also the following pages:
    http://stackoverflow.com/questions/20096706/how-does-windows-decide-whether-to-display-the-uac-prompt
    http://math.nist.gov/oommf/software-patchsets/patch_on_Windows7.html
    https://technet.microsoft.com/en-us/library/jj574202(v=ws.11).aspx

Viewing 15 posts - 121 through 135 (of 145 total)