Forum Replies Created
-
AuthorPosts
-
So, @hezkore give me an impulse to add new features right now.
- Improved Preferences dialog – not need to restart app to apply the changes;
- New setting “Project tabs on the right side” – (so long name, huh) that allow us to move Project tabs (Project / Source / Debug and Help) to the left side (right by default);
- New setting “Choose by Dot” – enable/disable choosing selected item in completion list by dot (period);
- Fix issue: Fonts don’t copy from assets to product folder. Hope that fix also font problems in themes.
Newest version is v2.2.6.
Yesterday I didn’t test it. But now it worked well.
There’s some sort of weird bug with having fontSize as a Int in this case.
I had it as an Int at first, but it makes you unable to actually select the TextField in Preferences…If you compile your version and try to edit size in Preferences you’ll notice that you won’t be able to write anything, but with my version it does work.
I set default font size to 16 and pass {“”+fontSize} into label, so we can normally edit size value.
@hezkore To avoid problems with my version you shoult to remove {fontSize} item from ted2.state.json (or convert it into number format).Also, I added font file requester – easy to select any font now.
Attachments:
Yes, I merged. I changed fontsize to Int type.
I’ll try to extract current font name and size from theme’s json, a bit later.
Nice!
Is there a reason that more of this functionality isn’t already exposed by the Window class?
The main idea here is to extend base minimal functionality by real needs – to minimize overcoding.
Also don’t forget that mx2 is very newly language. Our real using and reature requesting make it better and better.
—————————————–
Not need to create many app instances, but create a few windows.
And create many windows isn’t a problem – it works.
The problem is terminating whole app when closing any window.
I looked into sources of Window class and found that (private method):
Monkey12345678910111213141516171819202122#rem monkeydoc Window event handler.Called when the window is sent a window event.#endMethod OnWindowEvent( event:WindowEvent ) VirtualSelect event.TypeCase EventType.WindowCloseApp.Terminate()Case EventType.WindowResizedApp.RequestRender() 'Should maybe do this regardless?Case EventType.WindowGainedFocusApp.RequestRender() 'Need to do this for KDE on linux?EndEndAs you can see, there is
Monkey123Case EventType.WindowCloseApp.Terminate()that doesn’t check windows count, and terminate app by closing any window.
I added that as issue: https://github.com/blitz-research/monkey2/issues/163
It seems it’s because numpad is cursor keys AND numbers at the same time
Yes. Something was broken inside of mojox.TextView. I notify Mark about that.
Found “Activate by space” in settings
Ok.
@difference And thank you for paypal.
How is everyone handling changing resolutions?
You can change window size on the fly, but with some extra code right now (it’s easy to make it a part of Window class).
Code:
Monkey1234Funcrion ResizeWindow( wnd:Window,size:Vec2i )SDL_SetWindowSize( wnd.SDLWindow,size.x,size.y )wnd.SendWindowEvent( New WindowEvent( EventType.WindowResized,wnd ) )EndAdditional import is required:
Monkey12#Import "<sdl2>"Using sdl2..Usage:
Monkey1ResizeWindow( App.ActiveWindow,New Vec2i(800,600) )Also there is a SDL_HideWindow() method inside of sdl2 module.
Maybe it’s that you are searching for (instead of DestroyWindow).
Thanks for remind, will be fixed in next release.
Yes, maybe in the future…
If there was Ted2Go only crash the reason would be code parser (completion stuff).
But there is a crash on original Ted2.
Anyway, we can fix it as soon as we can reproduce the crash.
@day can you reproduce these crashes on ted2go?
If yes, please give me the code and instruction to reproduce.
Nice work!
Mystic. But maybe it crash even with empty workspace when no one file opened?
(I’ve removed previous post)
Hm. Work with time isn’t trivial because of leap year.
IMO, the easiest way is to extend ‘time’ module to get values directly from c++.
Would be helpful if you can reproduce crash and show that problematic code.
-
AuthorPosts
