Forum Replies Created
-
AuthorPosts
-
Great!
More info: https://en.wikipedia.org/wiki/Discord_(software)
I like to read discord on my mobile, and make short answers if possible.
Also you’ll get notification about new messages on desktop/web client, and you can mute channels if you don’t want to be notified.
I suppose there will be English speaking people generally, but I also created general-ru channel for our Russian users.
Maybe. But there are more important tasks in TODO.
but perhaps “rw” should be tweaked so it behaves like “w” if no file exists?
I agree with such behavior.
Also there is a method std::string::data() but:
There are no guarantees that a null character terminates the character sequence pointed by the value returned by this function.
AFAIK monkey’s CString is null-terminated, therefore c_str() is a right choice.
Code is not mine but good to have it here.:)
And it’s ABGR format not RGBA. So we must rename that function to be correct.
Look at example of PBR here: monkey2 \ modules \ mojo3d \ tests \ pbrspheres.monkey2.
At a first look there is a mistake in path to texture:
PbrMaterial.Load( AssetsDir()+"Backing.png",...
you missed Models/ folder:
PbrMaterial.Load( AssetsDir()+"Models/Backing.png",...
What about
Monkey12345Local path:=AppDir()+"levels.txt"CreateDir( ExtractDir( path ) )Local sr:=Stream.Open( path,"rw" ).....sr.Close()Something like:
Monkey12345DrawGradientRect( r:Rectf,startColor:Color,endColor:Color,rotation:Float=0 )(and the same with x,y,w,h for bounds)DrawGradientCircle( origin:Vec2f,radius:Float,centerColor:Color,partsColors:Color[],partsPercentage:Float[] )(and the same with x,y for origin)Don’t know how to implement Circle gradient, but maybe you know.
Or to make centerColor an usual part with percentage of 0% and to remove this parameter.
And a custom case for circle is using 2 colors – center and outer:
Monkey12DrawGradientCircle( 50,50,200,Color.Pink,New Color[](Color.Sky),New Float[](1) )' draws circle at 50,50 with radius 200 with colors from Pink at center to Sky at the outer radius; 1 = 100%Oh and I still think there should be a “Please restart Ted2Go” alert message when switching theme.
Going between some image heavy themes sometimes has some really odd results.Like the tabs and checkboxes being wrong in the theme ‘Smooth’.
I found a solution – to add prefixes for all custom images:
prime_assets/checkbox_icons.png -> prime_assets/prime_checkbox_icons.png etc.
Why? Because of mojo.Theme slug stuff:
Monkey123456789Method OpenIcons:Image[]( path:String )Local slug:="Icons:"+StripDir( StripExt( path ) )Local icons:=Cast<Icons>( _res.OpenResource( slug ) )............EndStripDir() ‘makes’ our prime_assets/blah.png the same as blah.png – and we lose our changed images here.
Seems like an monkey2’s issue thing.
I think there are a few places with similar path striping for slugs.
For simple stuff you can use also SaveString ( “22”,”assets/levels.txt” ), and level=Int (LoadString (blah..)) if there as a simple integer value.
Sometimes there are similar problems when formatting right inside forum’s add post area.
There is discussion of logo http://monkeycoder.co.nz/forums/topic/powered-by-monkey-2-logo/
Mark recently had moved to opengl from gles2.0.
Now we have more possibilities.
-
AuthorPosts