Skip to content

Commit 9cfbfc6

Browse files
committed
Improved Simulator UI when displaying emotions. Fixed a World Effect bug
1 parent ebe0c16 commit 9cfbfc6

File tree

11 files changed

+42
-29
lines changed

11 files changed

+42
-29
lines changed

Assets/EmotionalAppraisal/ActiveEmotion.cs

+1
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ public EmotionDTO ToDto(AM am)
191191
{
192192
Type = this.EmotionType,
193193
Intensity = this.Intensity,
194+
Target = this.Direction?.ToString(),
194195
CauseEventId = this.CauseId,
195196
CauseEventName = am.RecallEvent(this.CauseId).EventName.ToString(),
196197
};

Assets/EmotionalAppraisal/BaseEmotion.cs

+1
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ public EmotionDTO ToDto(AM am)
161161
{
162162
Type = this.EmotionType,
163163
Intensity = this.Potential,
164+
Target = this.Direction?.ToString(),
164165
CauseEventId = this.CauseId,
165166
CauseEventName = am.RecallEvent(this.CauseId).EventName.ToString()
166167
};

Assets/EmotionalAppraisal/DTOs/EmotionDTO.cs

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ public class EmotionDTO
1616
/// The current intencity of the emotion
1717
/// </summary>
1818
public float Intensity { get; set; }
19+
/// <summary>
20+
/// The current intencity of the emotion
21+
/// </summary>
22+
public string Target { get; set; }
1923
/// <summary>
2024
/// The event that caused the expression of this emotion
2125
/// </summary>

Assets/RolePlayCharacter/RolePlayerCharacterAsset.cs

+5-3
Original file line numberDiff line numberDiff line change
@@ -531,10 +531,12 @@ public string GetInternalStateString()
531531
{
532532
if (this.GetAllActiveEmotions().Any())
533533
{
534-
var emotion = GetBeliefValue("StrongestEmotion(SELF)");
535-
var intensity = this.GetAllActiveEmotions().Max(e => e.Intensity);
534+
var em = this.GetAllActiveEmotions().MaxValue<EmotionDTO>(e => e.Intensity);
535+
536+
537+
536538
return "M: " + this.Mood.ToString("F2") +
537-
" | S. Em: " + emotion + "-" + intensity.ToString("F2");
539+
" | S. Em: " + em.Type + "(" + em.Intensity.ToString("F2") + ", " + em.Target + ")";
538540
}
539541
else return "M: " + this.Mood.ToString("F2");
540542
}
Binary file not shown.
Binary file not shown.
Binary file not shown.

AuthoringTools/IntegratedAuthoringToolWF/IntegratedAuthoringToolWF.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@
117117
<Compile Include="TTSEngines\Viseme.cs" />
118118
<EmbeddedResource Include="AboutForm.resx">
119119
<DependentUpon>AboutForm.cs</DependentUpon>
120+
<SubType>Designer</SubType>
120121
</EmbeddedResource>
121122
<EmbeddedResource Include="AddOrEditDialogueActionForm.resx">
122123
<DependentUpon>AddOrEditDialogueActionForm.cs</DependentUpon>

AuthoringTools/IntegratedAuthoringToolWF/Properties/AssemblyInfo.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
// You can specify all the values or you can default the Build and Revision Numbers
3232
// by using the '*' as shown below:
3333
// [assembly: AssemblyVersion("1.0.*")]
34-
[assembly: AssemblyVersion("2.5.0")]
35-
[assembly: AssemblyFileVersion("2.5.0")]
34+
[assembly: AssemblyVersion("2.5.4")]
35+
[assembly: AssemblyFileVersion("2.5.4")]

AuthoringTools/WorldModelWF/AddorEditEffect.Designer.cs

+22-24
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AuthoringTools/WorldModelWF/AddorEditEffect.cs

+6
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public AddorEditEffect(WorldModelAsset wm, Name eventTemplate , int _index, Effe
4040

4141
propertyName.AllowNil = false;
4242
propertyName.AllowUniversal = false;
43+
propertyName.AllowLiteral = false;
4344

4445
_effectToEdit = effectToEdit;
4546

@@ -112,5 +113,10 @@ private void label4_Click(object sender, EventArgs e)
112113
{
113114

114115
}
116+
117+
private void propertyName_TextChanged(object sender, EventArgs e)
118+
{
119+
120+
}
115121
}
116122
}

0 commit comments

Comments
 (0)