我正在为Kubuntu量身定制普利茅斯水花。当系统加载时,我试图使图像旋转。我已经使用重新启动和X11插件测试了它,但都没有成功。下面是.script文件:
spiral_image = Image("Splash.png");
spiral_sprite = Sprite(spiral_image);
spiral_sprite.SetX(window.GetWidth() /2 - spiral_image.GetWidth() /2);
spiral_sprite.SetY(window.GetHeight() /2 - spiral_image.GetHeight() /2);
fun refresh_callback ()
{
time++;
theta = time / 100;
spiral_sprite.Rotate(theta);
}
Plymouth.SetRefreshFunction (refresh_callback);发布于 2015-07-27 11:38:50
你需要旋转图像,而不是精灵:
fun refresh_callback () {
time++;
theta = time / 100;
spiral_sprite.SetImage( spiral_image.Rotate(theta) );
}根据正式文件的说法,如果有人在找到普利茅斯文档之前发现了这个问题。
(额外的注释,稍微偏离主题:文档显示默认的文本颜色是白色的。不要指望太多,它是黑色的。)
https://stackoverflow.com/questions/20912100
复制相似问题