Forum Replies Created
-
AuthorPosts
-
There will be good to have “Read more” button in News section – to see short/clean blog entries and jump into if needed.
Good observation, changed the news listing to use excerpts and have a “Read More” button.
My other question is about the new logo
Give this a little time. In the long run I’m sure the same logo (when it’s settled on) will be the same on all channels.
“Crayon Syntax Highlighter” is a plugin. It does have a few issues that we are looking into, but all in all it’s not too shabby.
Too bright for me. should have some contrast and be a bit ‘quieter’ for my old eyes
Sorry about that Adam, I’ll see if we can come up with a way to switch theme/colors that is not a maintenance nightmare.
“Documentation and Help” changed to “Documentation” for now, that’s a bit shorter.
The Discord “monkey” is their logo and unrelated to Monkey2
The new Monkey logo on this site is made by me, ment to be a replacement for the previous one, but if it will become the official Monkey2 logo is still in the air.
Thanks for input and nice words!
I have taken pagetext from #6B6B6B to #2d2d2d and
sidebar links to #555, they were too pale on mobile.Will keep looking for places that need more contrast.
These forums can be adjusted too, so just keep the observations comming.
Will see if we can make CRAYON and CODE taller.
Thanks!
@jesseThanks for the code correction, I’ll let Mark tackle that.
Will look into crayon issues.
There might be other themes in the future, but it’s not top priority.
Looks like the “New” page has a piece of the “Home” page in the back! (see attached image)
It was an attempt at a nice “featured image” , changed it to a blank white for now.
It’s only minor. ‘Is’ should be ‘as’.
Fixed
And the “admob” and “inapp purchase” modules are the first thing you see on the “News” page. Don’t know if it’s intentional, it doesn’t feel new to me but hey those modules deserve visibility!
Changed dates to ca. original release dates, to make them not first.
Thanks again for scrutiny, kind words and feedback.
[EDIT] : Currently fixing downloads (modules and files)
[EDIT2] : Downloads working again.Thanks Amon.
Lanched!
Please report any glitches here.
Latest docs are easily themable too.
Put something like this in “theme.css” to change the docs colors:
CSS1234567891011121314151617181920212223242526272829303132/*This stylesheet changes monkeydocs from default white to dark blue with yellow linksTo make docss use white theme, rename or delete this stylesheet.To change docs theme, change the colors below.If you find something that needs adding, add it to the correct color group, seperating with a commma.*//* main background color */body{background-color: #123;}/* text color */body,pre,code{color: #fff;}/* link color */a , a:hover, a:visited , a:active {color: #ec0;}/* table header and <pre> background */pre,th ,code{background: #456;}tr:nth-child(even){background: #182838;}tr:nth-child(odd){background: #1e2e3e;}Can someone confirm that syntax works on Windows ? (no PC atm)
@nerobot: Please see http://monkeycoder.co.nz/forums/topic/openurl-broken-on-macos/#post-12616 for the syntax for the MacOS doc link.
in HelpActions.monkey2, this works for me:
Monkey12345viewManuals=New Action( "Browse manuals" )viewManuals.Triggered=Lambda()OpenUrl("file://" + RealPath( "docs/newdocs.html" ) )End@Simon : You may be onto something. OpenUrl( “http://google.com” ) works.
EDIT : “file:///Users/xxx/monkey2/docs/newdocs.html” works!
Here’s one that works:
Monkey123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130#Import "<std>"#Import "<mojo>"#Import "<mojo3d>"Using std..Using mojo..Using mojo3d..Class MyWindow Extends WindowField _scene:SceneField _camera:CameraField _light:LightField _rect:ModelField _rectCanvas:CanvasField _rectImage:ImageMethod New( title:String="Simple mojo3d app",width:Int=640,height:Int=480,flags:WindowFlags=WindowFlags.Resizable )Super.New( title,width,height,flags )_scene=Scene.GetCurrent()_camera=New Camera_camera.Near=.1_camera.Far=100_camera.Move( 0,0,-2 )_light=New Light_rect=MakeModel()EndMethod OnRender( canvas:Canvas ) OverrideRequestRender()_rect.RotateY( 1 )RenderTexture()_scene.Update()_scene.Render( canvas,_camera )EndMethod RenderTexture()If Not _rectCanvas Then_rectCanvas=New Canvas( _rectImage )Endif'This should be orange with white text on'But since I'm drawing something in the top left corner -'I'm just getting that top left pixel on the entire rectangle_rectCanvas.Clear( Color.Blue )_rectCanvas.Color = Color.White_rectCanvas.DrawText( "Hello World", Rnd(8,12), 8 )_rectCanvas.Color = Color.Orange_rectCanvas.DrawRect( 50, 50 , 200 ,90) 'White in the top left_rectCanvas.Flush()EndMethod MakeModel:Model()Local vertices:=New Vertex3f[4]vertices[0].position=New Vec3f( -1, 1,0 )vertices[1].position=New Vec3f( 1, 1,0 )vertices[2].position=New Vec3f( 1,-1,0 )vertices[3].position=New Vec3f( -1,-1,0 )vertices[0].texCoord0 = New Vec2f(0,0)vertices[1].texCoord0 = New Vec2f(1,0)vertices[2].texCoord0 = New Vec2f(1,1)vertices[3].texCoord0 = New Vec2f(0,1)Local indices:=New UInt[6]indices[0]=0indices[1]=1indices[2]=2indices[3]=0indices[4]=2indices[5]=3Local mesh:=New Mesh( )mesh.AddVertices(vertices)mesh.AddTriangles(indices)mesh.UpdateNormals()' mesh.AddMaterials(1)'create model for the meshLocal model:=New Modelmodel.Mesh=meshmodel.Materials = model.Materials.Resize(mesh.NumMaterials)Local sm:= New PbrMaterial()_rectImage=New Image( 256, 256 )_rectCanvas=New Canvas( _rectImage )sm.ColorTexture = _rectImage.Texturesm.ColorTexture.Flags = TextureFlags.FilterMipmapsm.CullMode=CullMode.Nonemodel.Materials[mesh.NumMaterials - 1] = smReturn modelEndEndFunction Main()New AppInstanceNew MyWindowApp.Run()EndSounds like your texture coordinates are off. Hard to tell without a little snippet of code
-
AuthorPosts