menicor
menicor
tabBarItem.setTitleTextAttributes([NSForegroundColorAttributeName:UIColor.black ,NSFontAttributeName:UIFont.systemFont(ofSize: 10)] , for: UIControlState())
let attributedString = NSMutableAttributedString(string: "NightNight") attributedString.setMixedAttributes( [NNForegroundColorAttributeName: MixedColor.init(normal: UIColor.green, night: UIColor.red)], range: NSRange(location: 0, length: 5) ) label.attributedText = attributedString
func walkTextSpriteDescriptorWithDirection(direction:UInt) -> BarrageDescriptor{ let descriptor:BarrageDescriptor = BarrageDescriptor() descriptor.spriteName = NSStringFromClass(BarrageWalkTextSprite.self) descriptor.params["text"] = "过场文字弹幕" descriptor.params["textColor"] = UIColor(red: CGFloat(arc4random()%255) / 255, green: CGFloat(arc4random()%255) / 255, blue: CGFloat(arc4random()%255) / 255, alpha: 1)...