Forum Replies Created
-
AuthorPosts
-
2 days sounds good.
Life’s too short for waiting, so what is your decision?

Sexy… Lovely
MX Community Forum has a ‘Projects & Showcase’ section.
Could add a ‘Tips & Tricks’ section as well, for publishing useful codes/snippets.
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?
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.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.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.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.Monkey1Method New( r:Int,g:Int,b:Int,a:Float=1 )+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.
Monkey123yellow := New Color( Colors.Yellow )red := New Color( $FF,$00,$00 )blue := New Color( $0000FF )Many programmers think in RGB(A) Colors of $40, $80, $FF, …
Maybe use String.FormCString/FromUtf8String/FromWString?
All take a pointer to a buffer (Void Ptr) and (optional) length.
Should it be?
[/crayon]Monkey12[crayon-5cb9deba8d03b340485593 inline="true" ]ExternGlobal dev_name:CStringDocs say monkey.types.CString is the mapping for “char *”
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.
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.July 2, 2016 at 4:29 am in reply to: [solved] Administrator privileges required on some generated program files? #1593jihem:
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 -
AuthorPosts

