Skip to content

Commit 60eb213

Browse files
committed
2 parents c4ddf69 + 0e9e8cf commit 60eb213

File tree

4 files changed

+24
-13
lines changed

4 files changed

+24
-13
lines changed

Assets/UXF/Scripts/UI/Form/FormElementController.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ public void DisplayFault()
8585
Invoke("ResetTitle", 5);
8686
}
8787

88+
public void DisplayFault(string message)
89+
{
90+
title.text = string.Format("{0} <b><color=red>(!) Error: {1}</color></b>", originalTitle, message);
91+
Invoke("ResetTitle", 8);
92+
}
93+
8894
public void ResetTitle()
8995
{
9096
title.text = originalTitle;

Assets/UXF/Scripts/UI/ParticipantListSelection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public string Finish()
214214
// check if not empty
215215
if (ppid.Replace(" ", string.Empty) == string.Empty)
216216
{
217-
form.ppidElement.controller.DisplayFault();
217+
form.ppidElement.controller.DisplayFault("Invalid participant name!");
218218
throw new Exception("Invalid participant name!");
219219
}
220220

@@ -226,7 +226,7 @@ public string Finish()
226226
DataRow searchResultRow = ppList.AsEnumerable().FirstOrDefault(r => r.Field<string>("ppid") == ppid);
227227
if (searchResultRow != null)
228228
{
229-
form.ppidElement.controller.DisplayFault();
229+
form.ppidElement.controller.DisplayFault("Participant ID already exists!");
230230
throw new Exception("Participant ID already exists! Enter a new ID or select the existing participant from the dropdown.");
231231
}
232232
// else new id has been entered

README.md

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ A set of components which simplify human behaviour experiments developed in the
1616
If you have developed a project using UXF please [let me know](http://twitter.com/jackbrookes)!
1717

1818
**Contents**
19+
- [Built with UXF](#built-with-uxf)
1920
- [Get started](#get-started)
2021
- [Features](#features)
2122
- [Programming style](#programming-style)
@@ -28,9 +29,20 @@ If you have developed a project using UXF please [let me know](http://twitter.co
2829
- [Example](#example)
2930
- [Development](#development)
3031
- [Documentation](#documentation)
31-
- [Feedback](#feedback)
32+
- [Tutorial: Building an experiment with UXF](#tutorial-building-an-experiment-with-uxf)
3233
- [Related packages](#related-packages)
3334

35+
## Built with UXF
36+
37+
38+
<p align="center">
39+
<a href="https://immersivecognition.github.io/projects/virtual-reality-experiments/" target="_blank">
40+
<img src="media/built-with-uxf.jpg">
41+
</a>
42+
43+
Click the banner above to see some of our experiments that have been built with UXF.
44+
</p>
45+
3446
## Get started
3547
0. Read over this Readme and the [paper](https://doi.org/10.3758/s13428-019-01242-0) to understand UXF.
3648

@@ -181,18 +193,11 @@ This project is developed under Unity 2017.4.2f1 but should work on all recent v
181193

182194
## Documentation
183195

184-
Visit the [Uncyclo](https://github.com/immersivecognition/unity-experiment-framework/wiki)
185-
186-
## Feedback
187-
188-
<p align="center">
189-
<a href ="https://forms.gle/rrySNPNPvdMvtTM46">
190-
<img src="media/survey-ss.png">
191-
</a>
192-
</p>
196+
Visit the [Uncyclo](https://github.com/immersivecognition/unity-experiment-framework/wiki) for full documentation.
193197

194-
Please fill out the anonymous [UXF feedback form](https://forms.gle/rrySNPNPvdMvtTM46)
198+
## Tutorial: Building an experiment with UXF
195199

200+
A full tutorial for building an experiment with UXF is available [here](https://immersivecognition.github.io/uxf-tutorial/).
196201

197202
## Related packages
198203

media/built-with-uxf.jpg

220 KB
Loading

0 commit comments

Comments
 (0)