Hi I’m wondering if it is possible to make something like this I have made in obj-c:
creditsScroll=[[UIWebView alloc] init];
[creditsScroll setUserInteractionEnabled:true];
[creditsScroll setBackgroundColor:[UIColor clearColor]];
creditsScroll.opaque=NO;
[creditsScroll setAlpha:0];
creditsScroll.frame=CGRectMake(0, 270, 280, 370);
[[[CCDirector sharedDirector] openGLView] addSubview:creditsScroll];
[creditsScroll loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:[CCString stringWithFormat:@"INK_credits_%@",language] ofType:@"html"] isDirectory:NO]]];
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.5];
[UIView setAnimationDelegate:self];
[creditsScroll setAlpha:1];
[UIView commitAnimations];
till now I have made this:
creditsScroll = cocos2d::experimental::ui::WebView::create();
creditsScroll->retain();
creditsScroll->setPosition(size * 0.5);//Vec2(0, 270));// size * 0.5);
creditsScroll->setContentSize(size * 0.5);//(Size){280, 370});//size * 0.5);
creditsScroll->loadFile(CCString::createWithFormat("INK_credits_%s.html",language->getCString())->getCString());
creditsScroll->setScalesPageToFit(true);
creditsScroll->setOpacity(0);
this->addChild(creditsScroll);
and works but the background is white, I have not tested if I can make an animation.
How can I make the background transparent?
thanks