Forum Replies Created
-
AuthorPosts
-
er, ok.
Can you treat me like i’m dumb and give me the commands to do it?
(i’m not dumb, just not familiar with the pi and the command line ;[ )
I have tried to invoke before, but I ended up with an unwanted Tandarin Demon that played havoc with my soft furnishings…
excellent. But… How do I compile anything without ted being compiled already?
Is there some secret command line way of compiling?
last one – all sorted
I had added a new onRender() which was causing the crash.
Further tracking came to this little beastie:
canvas.DrawRect( 0, 1, _current.View.Container.Frame.Width, _current.View.Container.Frame.Height-1 )
so adding:
If Not(_current) Then Return
as the first statement to trap any error with null _currents worked
Can I have my prize now?
OK, brilliant!
I’ve tracked down where the bug is. it’s in my new version of the tabview is the tab render section. I’ll post more as I find it…
mmm, interesting.
Reinstalled ted2
runs fine
Looks like something possibly interesting with the new tab controls I was working on
ok, not the original ted 2 – will archive and see what’s going on
mmmmm, interesting
replaced ted2.state.json with one above and still get crash!
Looking into mainwindow at LoadState()
Local obj := JsonObject.Load( “bin/ted2.state.json” )
If Not obj Then
print “no jasonstate”When run it gives no jason error (i added that to see what was going on)
Looks like the json file is not being loaded?
Deleted both and still get the crash
been trying to debug. in mainwindow the new() method runs through without fail
window then beings to appear, then crashes with memory violation
no problem
ted2.config.json:
{
“theme”:”dark”,
“fontSize”:16,
“monoFontSize”:16
}ted2.state.json:
{“browserSize”:307,”consoleSize”:180,”helpTreeSize”:277,”openDocuments”:[],”openProjects”:[“/Applications/monkey2/”],”recentFiles”:[“/Applications/monkey2/Mollusk.app/Contents/Resources/versions.txt”,”/Applications/monkey2/hello-world.monkey2″,”/Applications/monkey2/src/ted2/ted2.monkey2″,”/Applications/monkey2/TODO.TXT”,”/Applications/monkey2/src/launcher/monkey2_64.png”,”/Applications/monkey2/bananas/monkeyroids/monkeyroids.monkey2″],”windowRect”:[621,45,1856,979]}
brilliant – amended the mainwindow.monkey2 and it worked – everything closes correctly
Thanks Simon – it will be great to see how far the pi can go with this
Brilliant, sorted out the basics from the theme file!
mmmm,
ted2/mx2document.monkey2 I was already inside there ;p
I’ll need to sit down and go through the skin and theme classes and get a good feel for what is going on. I’m sure I’ll break something along the way…
But it is a great place to start to learn what really make Monkey2 tick
the issues I have is in the onRender
There seems to be an offset to the canvas so (say) canvas.DrawRect(0,0, 10,10) does not draw it at 0,0 but is off set inside a button by a few pixels
The background style color is fine, but I’m wanting to get the correct button canvas not the offset canvas
(not sure if I’m making sense) Here’s a pic of drawing at 0,0
You can see the white square is not at the top left of the button, but inset
Attachments:
ok, no worries.
Currently I’m looking into the themes and already having some luck with it.
In essence I am going for the visual studio look, so everything should be (in some respects) less flat and easier on the eye.
Most Of what I’m doing is inside the mojox folder
On thing.
I can backwards trace most functions to the root routine and forward to edit the code, but have hit a small wall with things that have the base class of ‘View’. Where do I find this class?
-
AuthorPosts
