Forum Replies Created
-
AuthorPosts
-
@nerobot good choice of theme in that last screenshot!
I have a few suggestions I’d like to see in Ted2Go in the future.
First thing I’d like to see is something similar to a “code map”.
It’s basically a way to scroll through your code and getting a good view of your code at the same time.
I’ve made an attempt of this over at: http://monkey2.monkey-x.com/forums/topic/adding-mojox-view/
I’ll gladly share my (pretty bad and experimental) code for it with you nerobot.Secondly, I’d like an option for placing the project view on the left instead of the right.
It would look like this: http://monkey2.monkey-x.com/forums/topic/adding-mojox-view/#post-5401And lastly, I really think Ted2Go should either auto-restart when a new theme is selected, or tell the user to restart.
Because for example in my Smooth theme the check boxes and some other things don’t properly load until you’ve restarted Ted2Go.And are you interested in some new icons for the Ted2Go toolbars?
I’ve made my own, and once again – you can see those in the link posted above.Big thanks Mark!
You were one hour late though as I ended up buying more data specifically so I could compile Monkey 2 heh.Yeah…
And it looks like there are no lightweight versions of Xcode, so I don’t think I’ll be able to do any coding from home.I’m a bit happy and a bit upset seeing my sliced voxel technique being used in someone else’s game heh.
Oh well, glad you enjoy it Adam.Here’s the original post if anyone’s interested in how this is done:
http://www.blitzbasic.com/Community/posts.php?topic=107021@nerobot
You’ve seen my CodeMapView, the little CodeMap area doesn’t have the same width as the normal CodeTextView it previews, but I want both to word-wrap at the same location.Right now a TextView only word-wraps at the end of the document, or rather right before the end.
I want to specify (maybe by letter count?) where the wrap happens.I think this is something that @Mark Sibly would have to add to MojoX.
It’s working pretty good now.
You can drag the view around to scroll or click somewhere to instantly jump there.
Or you can use the mouse wheel to scroll (a bit faster than scrolling via the normal TextView)
And it updates live as you type.Word-Wrap is an issue though.
The CodeMapView needs to wrap the words at the same location as the main TextView but there doesn’t seem to be any options for stuff like that.
I’m slowly making progress.
Do you know if there’s a way to get a scrollers MAX value/distance?I want to know how far a TextView can scroll.
Ah yes, thanks!
This should really be in the documents…How do I get the syntax highlighter working for my custom CodeTextView?
Well I already tried that.
With canvas.Scale(0.25,0.25) not all the lines are rendered.
And if I do Self.Style.Font = Font.Load(“DejaVuSansMono.ttf”,5) it (for some reason) applies to the normal CodeTextView too.Yeah that’s what I’m trying to do.
But I just get a bunch of “Error : Private member ‘RenderLine’ cannot be accessed from here”.
I can’t Override the normal TextView render function and still use its data.
And if I try to Override “RenderLine” I get ” Method ‘RenderLine:Void(mojo.graphics.Canvas,Int)’ overrides a non-virtual superclass method”.
And even if I write my OWN RenderLine() method just called RL() I still can’t access any information from the super class.
“Error : Private member ‘_textColors’ cannot be accessed from here” etc.Yeah, dang 7 games.
I managed to squeeze out 2 games for Android and Apple store with Monkey 1.I’ll leave the code toolbar toggle up to you.
Yeah the search window is driving me crazy heh.
If I paste something in there it doesn’t work, if I open it and hit enter it clears the field etc.
But overall it’s a great improvement! So well done.
I can add a toggle option for the code toolbar, I know how, I just wasn’t sure how much of your code you wanted me to alter.
I was hoping you’d use my code I posted above in your next release hehe.Yeah I had a look at that.
But I couldn’t find a way to access “docker” after the New() method, and I want to Toggle it like the Toolbar.@nerobot
I’ve added a toggle option for the Toolbar.
In mainwindow.monkey2 add this to the view menu creation:Monkey12345678910'View menu'_themesMenu=CreateThemesMenu( "Themes..." )_viewMenu=New Menu( "View" )AddToggleActions( _viewMenu )_viewMenu.AddSeparator()AddZoomActions( _viewMenu )_viewMenu.AddSeparator()_viewMenu.AddSubMenu( _themesMenu )And here’s the new AddToggleActions function, add anywhere (I recommend above AddZoomActions function)
Monkey12345Method AddToggleActions( menu:Menu )menu.AddAction( "Toggle Toolbar" ).Triggered=Lambda()Self._toolBar.Visible = Not Self._toolBar.VisibleEndEndI couldn’t figure out how to hide the code toolbar menu though, I’d like a toggle option for that too.
-
AuthorPosts