1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-09-02 16:49:47 +02:00

Add spinner script to default wallpaper

This commit is contained in:
Elias Steurer 2023-11-23 12:22:04 +01:00
parent 226fddd722
commit ce397137c9
4 changed files with 16 additions and 1 deletions

View File

@ -79,6 +79,7 @@ set(QML
qml/Create/Wizards/WizardPage.qml
qml/Create/WizardsFiles/Godot_v5/export_presets.cfg
qml/Create/WizardsFiles/Godot_v5/project.godot
qml/Create/WizardsFiles/Godot_v5/spinner.gd
qml/Create/WizardsFiles/Godot_v5/wallpaper.tscn
qml/Create/WizardsFiles/QMLWallpaperMain.qml
qml/Create/WizardsFiles/QMLWidgetMain.qml

View File

@ -0,0 +1,6 @@
extends CSGBox3D
var rotation_speed = 3.0
func _process(delta):
rotate_y(rotation_speed * delta)

View File

@ -1,4 +1,6 @@
[gd_scene format=3 uid="uid://d105uliklnkd5"]
[gd_scene load_steps=2 format=3 uid="uid://d105uliklnkd5"]
[ext_resource type="Script" path="res://spinner.gd" id="1_ggnsn"]
[node name="Node3D" type="Node3D"]
@ -7,6 +9,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 5)
[node name="CSGBox3D" type="CSGBox3D" parent="."]
transform = Transform3D(0.707107, -0.5, -0.5, 0, 0.707107, -0.707107, 0.707107, 0.5, 0.5, 0, 0, 0)
script = ExtResource("1_ggnsn")
[node name="OmniLight3D" type="OmniLight3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.41283, 1.52646)

View File

@ -360,6 +360,11 @@ void Wizards::createGodotWallpaper(
return;
}
if (!Util::writeFileFromQrc(":/qml/ScreenPlayApp/qml/Create/WizardsFiles/Godot_v5/spinner.gd", workingPath + "/spinner.gd")) {
qWarning() << "Could not write spinner.gd";
return;
}
if (!Util::writeFileFromQrc(":/qml/ScreenPlayApp/qml/Create/WizardsFiles/Godot_v5/wallpaper.tscn", workingPath + "/wallpaper.tscn")) {
qWarning() << "Could not write wallpaper.tscn";
return;