mirror of
https://github.com/hobbesjaap/time-sampling-form.git
synced 2024-12-22 15:39:54 +00:00
started UI work and added Documents folder saving
This commit is contained in:
parent
d1f0333e2b
commit
2339560430
@ -70,22 +70,22 @@ func _on_SaveReport_pressed():
|
|||||||
# We're not on the web
|
# We're not on the web
|
||||||
print("We're not on the web")
|
print("We're not on the web")
|
||||||
|
|
||||||
var title = str("user://results",global_ints.observed_person_name, global_ints.observation_minutes,".png")
|
var docs = OS.get_environment("HOME") + "/Documents"
|
||||||
|
|
||||||
|
var title = str(docs + "/results",global_ints.observed_person_name, global_ints.observation_minutes,".png")
|
||||||
|
|
||||||
print(title)
|
print(title)
|
||||||
|
|
||||||
var _saveimage = image.save_png(title)
|
var _saveimage = image.save_png(title)
|
||||||
|
|
||||||
var folder = OS.get_user_data_dir()
|
|
||||||
|
|
||||||
if OS.get_name() != "OSX":
|
if OS.get_name() != "OSX":
|
||||||
print("We're not on MacOS")
|
print("We're not on MacOS")
|
||||||
var _openfolder = OS.shell_open(folder)
|
var _openfolder = OS.shell_open(docs)
|
||||||
|
|
||||||
if OS.get_name() == "OSX":
|
if OS.get_name() == "OSX":
|
||||||
print("We're on MacOS")
|
print("We're on MacOS")
|
||||||
|
|
||||||
var _openfolder = OS.shell_open("file://" + folder)
|
var _openfolder = OS.shell_open("file://" + docs)
|
||||||
|
|
||||||
$"%SaveReport".visible = true
|
$"%SaveReport".visible = true
|
||||||
$"%BackMainMenu".visible = true
|
$"%BackMainMenu".visible = true
|
||||||
|
@ -3,8 +3,8 @@ extends Node
|
|||||||
var date
|
var date
|
||||||
var ddmmyyyy
|
var ddmmyyyy
|
||||||
|
|
||||||
var web_release_version = 0.10
|
var web_release_version : float
|
||||||
var release_version = 0.10
|
var release_version = 0.15
|
||||||
|
|
||||||
var total_observed_time : int
|
var total_observed_time : int
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
[gd_scene load_steps=23 format=2]
|
[gd_scene load_steps=24 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://wb_theme.tres" type="Theme" id=1]
|
[ext_resource path="res://wb_theme.tres" type="Theme" id=1]
|
||||||
[ext_resource path="res://main_screen.gd" type="Script" id=2]
|
[ext_resource path="res://main_screen.gd" type="Script" id=2]
|
||||||
@ -11,14 +11,13 @@
|
|||||||
[ext_resource path="res://Results.gd" type="Script" id=9]
|
[ext_resource path="res://Results.gd" type="Script" id=9]
|
||||||
[ext_resource path="res://TimerBar.gd" type="Script" id=10]
|
[ext_resource path="res://TimerBar.gd" type="Script" id=10]
|
||||||
[ext_resource path="res://ProgressBar.gd" type="Script" id=11]
|
[ext_resource path="res://ProgressBar.gd" type="Script" id=11]
|
||||||
|
[ext_resource path="res://Assets/icons/main_icon.png" type="Texture" id=12]
|
||||||
|
|
||||||
[sub_resource type="StyleBoxFlat" id=2]
|
[sub_resource type="StyleBoxFlat" id=2]
|
||||||
bg_color = Color( 0.952941, 0.933333, 0.847059, 1 )
|
bg_color = Color( 0.952941, 0.933333, 0.847059, 1 )
|
||||||
|
|
||||||
[sub_resource type="StyleBoxFlat" id=1]
|
[sub_resource type="StyleBoxFlat" id=1]
|
||||||
bg_color = Color( 1, 1, 1, 1 )
|
bg_color = Color( 1, 1, 1, 1 )
|
||||||
corner_radius_top_left = 50
|
|
||||||
corner_radius_top_right = 50
|
|
||||||
shadow_offset = Vector2( 0, 4 )
|
shadow_offset = Vector2( 0, 4 )
|
||||||
|
|
||||||
[sub_resource type="DynamicFont" id=4]
|
[sub_resource type="DynamicFont" id=4]
|
||||||
@ -72,6 +71,7 @@ unique_name_in_owner = true
|
|||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
|
|
||||||
[node name="ClassroomPhoto" type="Sprite" parent="."]
|
[node name="ClassroomPhoto" type="Sprite" parent="."]
|
||||||
|
visible = false
|
||||||
position = Vector2( 639.9, 201.694 )
|
position = Vector2( 639.9, 201.694 )
|
||||||
scale = Vector2( 0.665729, 0.665729 )
|
scale = Vector2( 0.665729, 0.665729 )
|
||||||
texture = ExtResource( 3 )
|
texture = ExtResource( 3 )
|
||||||
@ -80,10 +80,10 @@ __meta__ = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
[node name="StartScreen" type="CanvasLayer" parent="."]
|
[node name="StartScreen" type="CanvasLayer" parent="."]
|
||||||
visible = false
|
|
||||||
|
|
||||||
[node name="InstructionPanel" type="Panel" parent="StartScreen"]
|
[node name="InstructionPanel" type="Panel" parent="StartScreen"]
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
|
visible = false
|
||||||
anchor_left = 0.5
|
anchor_left = 0.5
|
||||||
anchor_top = 0.5
|
anchor_top = 0.5
|
||||||
anchor_right = 0.5
|
anchor_right = 0.5
|
||||||
@ -534,7 +534,6 @@ text = "OK"
|
|||||||
|
|
||||||
[node name="InstructionScreen" type="Panel" parent="StartScreen"]
|
[node name="InstructionScreen" type="Panel" parent="StartScreen"]
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
visible = false
|
|
||||||
anchor_left = 0.5
|
anchor_left = 0.5
|
||||||
anchor_top = 0.5
|
anchor_top = 0.5
|
||||||
anchor_right = 0.5
|
anchor_right = 0.5
|
||||||
@ -551,33 +550,43 @@ anchor_left = 0.5
|
|||||||
anchor_top = 0.5
|
anchor_top = 0.5
|
||||||
anchor_right = 0.5
|
anchor_right = 0.5
|
||||||
anchor_bottom = 0.5
|
anchor_bottom = 0.5
|
||||||
margin_left = -385.0
|
margin_left = -384.0
|
||||||
margin_top = -258.0
|
margin_top = -124.5
|
||||||
margin_right = 385.0
|
margin_right = 386.0
|
||||||
margin_bottom = 258.0
|
margin_bottom = 290.5
|
||||||
|
|
||||||
|
[node name="MainIcon" type="Sprite" parent="StartScreen/InstructionScreen/InstructionContainer"]
|
||||||
|
position = Vector2( 384, -160 )
|
||||||
|
scale = Vector2( 0.2, 0.2 )
|
||||||
|
texture = ExtResource( 12 )
|
||||||
|
|
||||||
[node name="Instructions" type="Label" parent="StartScreen/InstructionScreen/InstructionContainer"]
|
[node name="Instructions" type="Label" parent="StartScreen/InstructionScreen/InstructionContainer"]
|
||||||
margin_right = 770.0
|
margin_right = 770.0
|
||||||
margin_bottom = 478.0
|
margin_bottom = 367.0
|
||||||
theme = ExtResource( 1 )
|
theme = ExtResource( 1 )
|
||||||
text = "The Time Sampling Form is a guided observation tool. You set the length of your observation in minutes.
|
text = "The Time Sampling Form is a guided observation tool. You set the length of your observation in minutes.
|
||||||
|
|
||||||
Every 20 seconds you will click the button that corresponds with the behaviour you see at that time. The buttons to select the observed behaviour will be visible in the final 5 seconds of each 20 second interval.
|
Every 20 seconds you will click the button that corresponds with the behaviour you see at that time. The buttons to select the observed behaviour will be visible in the final 5 seconds of each 20 second interval.
|
||||||
|
|
||||||
Use the \"Manual\" button on the main screen to read more about this tool and possible use cases.
|
|
||||||
|
|
||||||
For first time users: It is recommended to do a one minute trial to gain an understanding of the system. I hope you find this tool useful!"
|
For first time users: It is recommended to do a one minute trial to gain an understanding of the system. I hope you find this tool useful!"
|
||||||
autowrap = true
|
autowrap = true
|
||||||
|
__meta__ = {
|
||||||
|
"_edit_lock_": true
|
||||||
|
}
|
||||||
|
|
||||||
[node name="InsOkButton" type="Button" parent="StartScreen/InstructionScreen/InstructionContainer"]
|
[node name="InsOkButton" type="Button" parent="StartScreen/InstructionScreen/InstructionContainer"]
|
||||||
margin_top = 482.0
|
margin_top = 371.0
|
||||||
margin_right = 770.0
|
margin_right = 770.0
|
||||||
margin_bottom = 516.0
|
margin_bottom = 405.0
|
||||||
theme = ExtResource( 1 )
|
theme = ExtResource( 1 )
|
||||||
text = "OK"
|
text = "OK"
|
||||||
|
__meta__ = {
|
||||||
|
"_edit_lock_": true
|
||||||
|
}
|
||||||
|
|
||||||
[node name="UpdatePanel" type="Panel" parent="StartScreen"]
|
[node name="UpdatePanel" type="Panel" parent="StartScreen"]
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
|
visible = false
|
||||||
anchor_left = 0.5
|
anchor_left = 0.5
|
||||||
anchor_top = 0.5
|
anchor_top = 0.5
|
||||||
anchor_right = 0.5
|
anchor_right = 0.5
|
||||||
@ -1130,6 +1139,7 @@ unique_name_in_owner = true
|
|||||||
wait_time = 20.0
|
wait_time = 20.0
|
||||||
|
|
||||||
[node name="Results" type="CanvasLayer" parent="."]
|
[node name="Results" type="CanvasLayer" parent="."]
|
||||||
|
visible = false
|
||||||
script = ExtResource( 9 )
|
script = ExtResource( 9 )
|
||||||
|
|
||||||
[node name="Panel" type="Panel" parent="Results"]
|
[node name="Panel" type="Panel" parent="Results"]
|
||||||
@ -1144,18 +1154,18 @@ __meta__ = {
|
|||||||
|
|
||||||
[node name="SaveReport" type="Button" parent="Results/Panel"]
|
[node name="SaveReport" type="Button" parent="Results/Panel"]
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
margin_left = 1011.0
|
margin_left = 992.0
|
||||||
margin_top = 675.0
|
margin_top = 643.0
|
||||||
margin_right = 1270.0
|
margin_right = 1251.0
|
||||||
margin_bottom = 715.0
|
margin_bottom = 683.0
|
||||||
text = "Save Report as PNG"
|
text = "Save Report as PNG"
|
||||||
|
|
||||||
[node name="BackMainMenu" type="Button" parent="Results/Panel"]
|
[node name="BackMainMenu" type="Button" parent="Results/Panel"]
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
margin_left = 11.0
|
margin_left = 32.0
|
||||||
margin_top = 675.0
|
margin_top = 643.0
|
||||||
margin_right = 155.0
|
margin_right = 176.0
|
||||||
margin_bottom = 715.0
|
margin_bottom = 683.0
|
||||||
text = "Restart"
|
text = "Restart"
|
||||||
|
|
||||||
[node name="FullResult" type="Label" parent="Results/Panel"]
|
[node name="FullResult" type="Label" parent="Results/Panel"]
|
||||||
|
@ -13,8 +13,11 @@ config_version=4
|
|||||||
config/name="Time Sampling Form"
|
config/name="Time Sampling Form"
|
||||||
run/main_scene="res://main_screen.tscn"
|
run/main_scene="res://main_screen.tscn"
|
||||||
run/low_processor_mode=true
|
run/low_processor_mode=true
|
||||||
|
boot_splash/image="res://Assets/icons/main_icon.png"
|
||||||
|
boot_splash/bg_color=Color( 0.952941, 0.933333, 0.847059, 1 )
|
||||||
config/icon="res://Assets/icons/main_icon.png"
|
config/icon="res://Assets/icons/main_icon.png"
|
||||||
config/macos_native_icon="res://Assets/icons/main_icon.icns"
|
config/macos_native_icon="res://Assets/icons/main_icon.icns"
|
||||||
|
config/windows_native_icon="res://Assets/icons/icon.ico"
|
||||||
|
|
||||||
[autoload]
|
[autoload]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user