Forum Replies Created
-
AuthorPosts
-
Is there some way to disable Auto-complete by “Dot”?
It’s already driving me mad haha.With Font changing I mean independent from theme, from inside the IDE options menu.
For example, not everyone wants to use “DejaVuSans” and forcing it via themes is a bad idea.
Here’s an updated version of my Smooth theme:
Java123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273//Theme by Hezkore{"extends":"ted2-default","styles":{"ToolButton":{"iconColor":"#FFF","skinColor":"panel","extends":"Button","padding":[2,0],"margin":[3,0],"states":{"hover":{"skinColor":"#9EBEFF"},"active":{"skinColor":"#BED3FF"},"selected":{"skinColor":"#9EBEFF"}}},"MainToolBar":{"extends":"ToolBar","padding":[ 0 ],"backgroundColor":"content","border":[ 0,1,0,1 ],"borderColor":"border"},"EditorToolBar":{"extends":"ToolBar","padding":[ 0 ],"backgroundColor":"content","border":[1,0,1,1],"borderColor":"border"},"MenuSeparator":{"padding":[ 0,0,0,1 ],"backgroundColor":"content","border":[ 8,8,7,7 ]},"Hint":{"textColor":"text-highlight","skin":"smooth_assets/button_skin.png","skinColor":"#9EBEFF"},"TextView":{"font":"editor","border":[1,0,1,1],"borderColor":"border","backgroundColor":"content"},"GutterView":{"border":[0],"extends":"TextView","textColor":"text-disabled"},"TextViewContent":{"padding":[4]},"Console":{"border":[1,0,1,1],"borderColor":"border","font":"small","backgroundColor":"content"},"ProgressBar":{"icons":"smooth_assets/progressbar_icons.png"},"Button":{"font":"small","extends":"Label","padding":[4,2],"skin":"smooth_assets/button_skin.png","skinColor":"panel","states":{"hover":{"skinColor":"active"},"active":{"skinColor":"knob"},"selected":{"skinColor":"clear"}}},"Dialog":{"skin":"smooth_assets/dialog_skin.png","skinColor":"panel"},"DialogTitle":{"extends":"Label","backgroundColor":"knob"},"TreeView":{"border":[1,0,1,0],"borderColor":"border","backgroundColor":"content","icons":"smooth_assets/treeview_icons.png","iconColor":"#9DA5B4"},"TreeViewContent":{"border":[0],"padding":[4]},"TreeViewNode":{"border":[0],"padding":[3],"font":"small","states":{"hover":{"backgroundColor":"#3F3F3F"},"selected":{"backgroundColor":"#3F3F3F","textColor":"text-highlight"}}},"CheckBox":{"icons":"smooth_assets/checkbox_icons.png","margin":[8,0,0,0]},"DockKnob":{"padding":[2],"backgroundColor":"gutter","states":{"hover":{"backgroundColor":"hover"},"active":{"backgroundColor":"active"}}},"ScrollBar":{"backgroundColor":"content"},"ScrollKnob":{"border":[2],"padding":[1],"margin":[3],"skin":"button_skin.png","skinColor":"knob","states":{"hover":{"skinColor":"knob","margin":[1]},"active":{"skinColor":"active","margin":[0]}}},"ToolBar":{"padding":[2,2,0,2],"backgroundColor":"panel"},"TabBar":{"border":[0,0,0,1],"borderColor":"border","extends":"ToolBar","padding":[ 0,2,4,0 ],"backgroundColor":"clear"},"TabButton":{"extends":"Button","font":"small","padding":[16,5,16,5],"margin":[1,0],"backgroundColor":"#0000","skin":"smooth_assets/tabbutton_skin.png","skinColor":"gutter","textColor":"text-background","states":{"hover":{"skinColor":"gutter"},"active":{"skinColor":"content"},"selected":{"border":[2,0,0,0],"borderColor":"#507FDF","skinColor":"content","textColor":"text-default"}}},"TabClose":{"margin":[4,0,0,0],"icons":"smooth_assets/tabclose_icons.png","iconColor":"#373737","states":{"hover":{"iconColor":"#D7DAE0"},"active":{"iconColor":"#D7DAE0"}}}},"colors":{"border": "#171A1E","clear": "#21252B","gutter": "#21252B","content": "#282C34","panel": "#444B59","knob": "#575F6F","hover": "#444B59","active" : "#636C7F","text-default": "#C1CFD1","text-highlight": "#fff","text-disabled": "#4B5262","text-background": "#737883","textview-cursor":"#7BA4F8","textview-selection":"#3E4451",//FF0000"textview-color0":"#C358F5","textview-color1": "#6EA4F5", //identifiers"textview-color2": "#CF84EB", //keywords"textview-color3": "#7FE37F", //strings"textview-color4": "#FFB254", //numbers"textview-color5": "#6E7480", //comment"textview-color6": "#E06C72", //preproc"textview-color7": "#C358F5" //default},"fonts":{"normal":"Roboto-Medium.ttf,18","fixedWidth":"RobotoMono-Medium.ttf,16","editor":"RobotoMono-Medium.ttf,15","small":"Roboto-Medium.ttf,16"}}Here’s the Roboto font it uses: https://www.dropbox.com/s/hpaio2vbh37velp/roboto_font.zip?dl=0
Great work.
I love the whitespaces! (typo in optioins, it says “white spaces” and not “whitespaces”)Another little bug, Edit > Word Wrap has the same shortcut as File > Close Tab
Is there a chance that we could perhaps get to customize the font the IDE uses?
The default font “DejaVuSans” looks pretty bad, “Roboto” suits code much better, but making it the default is probably a bad idea as not everyone would agree with me, so I suggest font selection under options.Why do Mac users get correct and modern keyboard shortcuts and not Windows users?
For example, close tab should be Ctrl + W, just like Mac’s Command + W.
I would recommend looking at something like Sublime or Atom, as they use the “standard” shortcut keys.I can make some icons later on, but I’ve been a bit busy lately.
Another question regarding the GUI…
How would I get the width of a DockingView that is resizable?
The draggable knob, or whatever, never seems to be taken into account when testing for width.Also, how do detect if a mouse click is inside my DockingView or the main window canvas?
And is there any way to get images from the theme?
I know there’s App.Theme.OpenImage but that only loads an image from the theme folder, I want to specify a image name in the theme json file and somehow get that in the app.Finally, is there a way to remove spaces at the start of a word-wrapped line in the TextView?
Cause, this:
isn’t very pretty.
The space before “to” should be removed.@impixi Yep!
I want to place a bunch of nodes and then set one of them as the start node and one as the ending node.
Then I want a list of the nodes that are needed to go by in order to get to the ending node.I’ve started to translate some Monkey X code I’ve found, but it’s tricky heh.
Sadly I get the same error using that code.
AmigaDOS12345678Build error: System command 'g++ -static -m32 -s -O3 -mwindows -o "G:/test/test.products/Windows/Test.exe" -Wl,@tmp/lnkFiles1.txt' failed.g++ -static -m32 -s -O3 -mwindows -o "G:/test/test.products/Windows/Test.exe" -Wl,@tmp/lnkFiles1.txtG:/test/test.buildv1.1.03/windows_release/build/_1src_2test_0test.cpp.o:test_test.cpp:(.bss+0xc): multiple definition of `lm'G:/test/test.buildv1.1.03/windows_release/build/_1include_2_0r.cpp.o:_r.cpp:(.bss+0x0): first defined herecollect2.exe: error: ld returned 1 exit statusAm I doing something wrong?
Monkey1234567891011121314151617#Import "<std>"#Import "<mojo>"Using std..Using mojo..#Import "mumble.h"Class MyWindow Extends WindowMethod New()EndEndFunction Main()New AppInstanceEndThanks abakobo. I’m still a bit confused though (Cause I’m no good at C nor C++)
How would I structure this code into its own .h and .cpp files then?Monkey123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119#ifdef _WIN32#include <windows.h>#else#include <sys/mman.h>#include <fcntl.h> /* For O_* constants */#endif // _WIN32struct LinkedMem {#ifdef _WIN32UINT32 uiVersion;DWORD uiTick;#elseuint32_t uiVersion;uint32_t uiTick;#endiffloat fAvatarPosition[3];float fAvatarFront[3];float fAvatarTop[3];wchar_t name[256];float fCameraPosition[3];float fCameraFront[3];float fCameraTop[3];wchar_t identity[256];#ifdef _WIN32UINT32 context_len;#elseuint32_t context_len;#endifunsigned char context[256];wchar_t description[2048];};LinkedMem *lm = NULL;void initMumble() {#ifdef _WIN32HANDLE hMapObject = OpenFileMappingW(FILE_MAP_ALL_ACCESS, FALSE, L"MumbleLink");if (hMapObject == NULL)return;lm = (LinkedMem *) MapViewOfFile(hMapObject, FILE_MAP_ALL_ACCESS, 0, 0, sizeof(LinkedMem));if (lm == NULL) {CloseHandle(hMapObject);hMapObject = NULL;return;}#elsechar memname[256];snprintf(memname, 256, "/MumbleLink.%d", getuid());int shmfd = shm_open(memname, O_RDWR, S_IRUSR | S_IWUSR);if (shmfd < 0) {return;}lm = (LinkedMem *)(mmap(NULL, sizeof(struct LinkedMem), PROT_READ | PROT_WRITE, MAP_SHARED, shmfd,0));if (lm == (void *)(-1)) {lm = NULL;return;}#endif}void updateMumble() {if (! lm)return;if(lm->uiVersion != 2) {wcsncpy(lm->name, L"TestLink", 256);wcsncpy(lm->description, L"TestLink is a test of the Link plugin.", 2048);lm->uiVersion = 2;}lm->uiTick++;// Left handed coordinate system.// X positive towards "right".// Y positive towards "up".// Z positive towards "front".//// 1 unit = 1 meter// Unit vector pointing out of the avatar's eyes aka "At"-vector.lm->fAvatarFront[0] = 0.0f;lm->fAvatarFront[1] = 0.0f;lm->fAvatarFront[2] = 1.0f;// Unit vector pointing out of the top of the avatar's head aka "Up"-vector (here Top points straight up).lm->fAvatarTop[0] = 0.0f;lm->fAvatarTop[1] = 1.0f;lm->fAvatarTop[2] = 0.0f;// Position of the avatar (here standing slightly off the origin)lm->fAvatarPosition[0] = 0.001f;lm->fAvatarPosition[1] = 0.0f;lm->fAvatarPosition[2] = 0.5f;// Same as avatar but for the camera.lm->fCameraPosition[0] = 0.0f;lm->fCameraPosition[1] = 0.0f;lm->fCameraPosition[2] = 0.0f;lm->fCameraFront[0] = 0.0f;lm->fCameraFront[1] = 0.0f;lm->fCameraFront[2] = 1.0f;lm->fCameraTop[0] = 0.0f;lm->fCameraTop[1] = 1.0f;lm->fCameraTop[2] = 0.0f;// Identifier which uniquely identifies a certain player in a context (e.g. the ingame name).wcsncpy(lm->identity, L"Unique ID", 256);// Context should be equal for players which should be able to hear each other positional and// differ for those who shouldn't (e.g. it could contain the server+port and team)memcpy(lm->context, "ContextBlob\x00\x01\x02\x03\x04", 16);lm->context_len = 16;}I can’t figure out a solution to this…
I’m stuck at this first step right now. :/I’ve found a crash in Ted2Go.
I write:
Monkey123Method CopySelf.bufferEndAnd the second I write Self and put the . at the end, Ted2Go just crashes.
I guess the auto-complete popup is the cause.
But I’m not sure what in my code causes it, is it just the fact that Method Copy is missing () or is it because something with the Class itself?
Hehe thanks Mark <3
I sadly see no info on how asset:: works there.
I mean I know you can do like #Import “assets/blah.png” and load via “asset::blah.png”
But where’s the specific info about that?
How would I know that I had to use asset:: like that if it’s not in the Docs?
Is there anything else than asset:: I can use?Yeah, changing the font and size from inside the IDE would be the best way.
The font sizes (and used fonts!) shouldn’t even be part of the themes, they should be a global option in Ted2.
I for example don’t even use the standard font, I use the Roboto font at a larger size, so every time I update Ted2Go I have to manually edit the themes, which I really shouldn’t have to. -
AuthorPosts