adds attitude fields
- added attitude towards crew field - added attitude towards scc field - default species is human instead of none
This commit is contained in:
parent
73095e389b
commit
1d0c9a3abd
6 changed files with 77 additions and 9 deletions
|
|
@ -112,5 +112,11 @@ namespace AuroraRecordGenerator
|
||||||
|
|
||||||
[ProtoMember(37)]
|
[ProtoMember(37)]
|
||||||
public string EmploymentSkills { get; set; } = string.Empty;
|
public string EmploymentSkills { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
[ProtoMember(38)]
|
||||||
|
public string SecurityAttitudeScc { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
[ProtoMember(39)]
|
||||||
|
public string SecurityAttitudeCrew { get; set; } = string.Empty;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -17,6 +17,11 @@
|
||||||
<x:Type TypeName="local:SpeciesType" />
|
<x:Type TypeName="local:SpeciesType" />
|
||||||
</ObjectDataProvider.MethodParameters>
|
</ObjectDataProvider.MethodParameters>
|
||||||
</ObjectDataProvider>
|
</ObjectDataProvider>
|
||||||
|
<ObjectDataProvider x:Key="ThreatLevelEnum" MethodName="GetValues" ObjectType="{x:Type system:Enum}">
|
||||||
|
<ObjectDataProvider.MethodParameters>
|
||||||
|
<x:Type TypeName="local:ThreatLevel" />
|
||||||
|
</ObjectDataProvider.MethodParameters>
|
||||||
|
</ObjectDataProvider>
|
||||||
</controls:MetroWindow.Resources>
|
</controls:MetroWindow.Resources>
|
||||||
<Grid>
|
<Grid>
|
||||||
<controls:MetroAnimatedTabControl Margin="10,10,0,45" controls:TabControlHelper.IsUnderlined="True">
|
<controls:MetroAnimatedTabControl Margin="10,10,0,45" controls:TabControlHelper.IsUnderlined="True">
|
||||||
|
|
@ -296,11 +301,11 @@
|
||||||
ToolTip="Dated list of operations, surgeries, checkups of note, etc. One per line."
|
ToolTip="Dated list of operations, surgeries, checkups of note, etc. One per line."
|
||||||
Grid.Row="2" Text="{Binding Path=MedicalHistory}" TabIndex="6" />
|
Grid.Row="2" Text="{Binding Path=MedicalHistory}" TabIndex="6" />
|
||||||
<TextBox Margin="0,10,0,10" AcceptsReturn="True" TextWrapping="Wrap"
|
<TextBox Margin="0,10,0,10" AcceptsReturn="True" TextWrapping="Wrap"
|
||||||
controls:TextBoxHelper.Watermark="Medical Notes"
|
controls:TextBoxHelper.Watermark="Medical Notes - prescriptions, allergies, etc."
|
||||||
controls:TextBoxHelper.UseFloatingWatermark="True"
|
controls:TextBoxHelper.UseFloatingWatermark="True"
|
||||||
controls:TextBoxHelper.IsSpellCheckContextMenuEnabled="True"
|
controls:TextBoxHelper.IsSpellCheckContextMenuEnabled="True"
|
||||||
VerticalScrollBarVisibility="Auto"
|
VerticalScrollBarVisibility="Auto"
|
||||||
ToolTip="Notes about physical/medical health. One per line." Grid.Row="3"
|
ToolTip="Current prescriptions, allergies, etc. One per line." Grid.Row="3"
|
||||||
Text="{Binding Path=MedicalNotes}" TabIndex="7" />
|
Text="{Binding Path=MedicalNotes}" TabIndex="7" />
|
||||||
<TextBox Margin="0,10,0,10" AcceptsReturn="True"
|
<TextBox Margin="0,10,0,10" AcceptsReturn="True"
|
||||||
TextWrapping="Wrap" controls:TextBoxHelper.Watermark="Psychiatric History"
|
TextWrapping="Wrap" controls:TextBoxHelper.Watermark="Psychiatric History"
|
||||||
|
|
@ -334,32 +339,52 @@
|
||||||
<RowDefinition Height="122" MinHeight="60" />
|
<RowDefinition Height="122" MinHeight="60" />
|
||||||
<RowDefinition Height="122" MinHeight="60" />
|
<RowDefinition Height="122" MinHeight="60" />
|
||||||
<RowDefinition Height="122" MinHeight="60" />
|
<RowDefinition Height="122" MinHeight="60" />
|
||||||
|
<RowDefinition Height="122" MinHeight="60" />
|
||||||
<RowDefinition Height="0" />
|
<RowDefinition Height="0" />
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
<Grid Grid.Row="0">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<TextBox Grid.Column="0" Margin="0,10,0,10" AcceptsReturn="True"
|
||||||
|
TextWrapping="Wrap" controls:TextBoxHelper.Watermark="Attitude Towards the SCC"
|
||||||
|
controls:TextBoxHelper.UseFloatingWatermark="True" VerticalScrollBarVisibility="Auto"
|
||||||
|
controls:TextBoxHelper.IsSpellCheckContextMenuEnabled="True"
|
||||||
|
ToolTip="A brief summary of the character's perceived attitude towards the conglomerate."
|
||||||
|
Text="{Binding Path=SecurityAttitudeScc}" />
|
||||||
|
<TextBox Grid.Column="1" Margin="0,10,0,10" AcceptsReturn="True"
|
||||||
|
TextWrapping="Wrap" controls:TextBoxHelper.Watermark="Attitude Towards the Crew"
|
||||||
|
controls:TextBoxHelper.UseFloatingWatermark="True" VerticalScrollBarVisibility="Auto"
|
||||||
|
controls:TextBoxHelper.IsSpellCheckContextMenuEnabled="True"
|
||||||
|
ToolTip="A brief summary of the character's perceived attitude towards the rest of the crew."
|
||||||
|
Text="{Binding Path=SecurityAttitudeCrew}" />
|
||||||
|
</Grid>
|
||||||
|
|
||||||
<GridSplitter Grid.Row="0" Grid.ColumnSpan="1" HorizontalAlignment="Stretch"
|
<GridSplitter Grid.Row="0" Grid.ColumnSpan="1" HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Bottom" Margin="0" Height="10" />
|
VerticalAlignment="Bottom" Margin="0" Height="10" />
|
||||||
<GridSplitter Grid.Row="1" Grid.ColumnSpan="1" HorizontalAlignment="Stretch"
|
<GridSplitter Grid.Row="1" Grid.ColumnSpan="1" HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Bottom" Margin="0" Height="10" />
|
VerticalAlignment="Bottom" Margin="0" Height="10" />
|
||||||
<GridSplitter Grid.Row="2" Grid.ColumnSpan="1" HorizontalAlignment="Stretch"
|
<GridSplitter Grid.Row="2" Grid.ColumnSpan="1" HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Bottom" Margin="0" Height="10" />
|
VerticalAlignment="Bottom" Margin="0" Height="10" />
|
||||||
<TextBox Grid.Row="0" Margin="0,10,0,10" AcceptsReturn="True"
|
<TextBox Grid.Row="1" Margin="0,10,0,10" AcceptsReturn="True"
|
||||||
TextWrapping="Wrap" controls:TextBoxHelper.Watermark="Public Record"
|
TextWrapping="Wrap" controls:TextBoxHelper.Watermark="Public Record"
|
||||||
controls:TextBoxHelper.UseFloatingWatermark="True" VerticalScrollBarVisibility="Auto"
|
controls:TextBoxHelper.UseFloatingWatermark="True" VerticalScrollBarVisibility="Auto"
|
||||||
controls:TextBoxHelper.IsSpellCheckContextMenuEnabled="True"
|
controls:TextBoxHelper.IsSpellCheckContextMenuEnabled="True"
|
||||||
ToolTip="Public security notes added to employment and medical records. One per line."
|
ToolTip="Public security notes added to employment and medical records. One per line."
|
||||||
Text="{Binding Path=SecurityPublicRecord}" />
|
Text="{Binding Path=SecurityPublicRecord}" />
|
||||||
<TextBox Margin="0,10,0,10" AcceptsReturn="True"
|
<TextBox Margin="0,10,0,10" AcceptsReturn="True"
|
||||||
TextWrapping="Wrap" controls:TextBoxHelper.Watermark="Records"
|
TextWrapping="Wrap" controls:TextBoxHelper.Watermark="Arrest History"
|
||||||
controls:TextBoxHelper.UseFloatingWatermark="True" VerticalScrollBarVisibility="Auto"
|
controls:TextBoxHelper.UseFloatingWatermark="True" VerticalScrollBarVisibility="Auto"
|
||||||
controls:TextBoxHelper.IsSpellCheckContextMenuEnabled="True"
|
controls:TextBoxHelper.IsSpellCheckContextMenuEnabled="True"
|
||||||
ToolTip="List of charges, dated if possible. One per line." Grid.Row="1"
|
ToolTip="List of charges, dated if possible. One per line." Grid.Row="2"
|
||||||
Text="{Binding Path=SecurityRecords}" />
|
Text="{Binding Path=SecurityRecords}" />
|
||||||
<TextBox Margin="0,10,0,10" AcceptsReturn="True"
|
<TextBox Margin="0,10,0,10" AcceptsReturn="True"
|
||||||
TextWrapping="Wrap" controls:TextBoxHelper.Watermark="Notes"
|
TextWrapping="Wrap" controls:TextBoxHelper.Watermark="Other notes"
|
||||||
controls:TextBoxHelper.UseFloatingWatermark="True" VerticalScrollBarVisibility="Auto"
|
controls:TextBoxHelper.UseFloatingWatermark="True" VerticalScrollBarVisibility="Auto"
|
||||||
controls:TextBoxHelper.IsSpellCheckContextMenuEnabled="True"
|
controls:TextBoxHelper.IsSpellCheckContextMenuEnabled="True"
|
||||||
ToolTip="Any things security should keep in mind when dealing with you. One per line."
|
ToolTip="Any things security should keep in mind when dealing with you. One per line."
|
||||||
Grid.Row="2" Text="{Binding Path=SecurityNotes}" />
|
Grid.Row="3" Text="{Binding Path=SecurityNotes}" />
|
||||||
</Grid>
|
</Grid>
|
||||||
</ScrollViewer>
|
</ScrollViewer>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ namespace AuroraRecordGenerator
|
||||||
|
|
||||||
private void WindowLoaded(object sender, RoutedEventArgs e)
|
private void WindowLoaded(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
SpeciesCombo.SelectedIndex = 0;
|
SpeciesCombo.SelectedIndex = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void GenerateRecord(object sender, RoutedEventArgs e)
|
private void GenerateRecord(object sender, RoutedEventArgs e)
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,8 @@ namespace AuroraRecordGenerator
|
||||||
private IList<string> _securityPublicRecord;
|
private IList<string> _securityPublicRecord;
|
||||||
private IList<string> _securityRecords;
|
private IList<string> _securityRecords;
|
||||||
private IList<string> _securityNotes;
|
private IList<string> _securityNotes;
|
||||||
|
private IList<string> _securityAttitudeScc;
|
||||||
|
private IList<string> _securityAttitudeCrew;
|
||||||
|
|
||||||
private IList<string> _employmentPublicRecord;
|
private IList<string> _employmentPublicRecord;
|
||||||
private IList<string> _employmentExperience;
|
private IList<string> _employmentExperience;
|
||||||
|
|
@ -50,6 +52,8 @@ namespace AuroraRecordGenerator
|
||||||
_securityPublicRecord = _targetRecord.SecurityPublicRecord?.LineSplit();
|
_securityPublicRecord = _targetRecord.SecurityPublicRecord?.LineSplit();
|
||||||
_securityRecords = _targetRecord.SecurityRecords?.LineSplit();
|
_securityRecords = _targetRecord.SecurityRecords?.LineSplit();
|
||||||
_securityNotes = _targetRecord.SecurityNotes?.LineSplit();
|
_securityNotes = _targetRecord.SecurityNotes?.LineSplit();
|
||||||
|
_securityAttitudeCrew = _targetRecord.SecurityAttitudeCrew?.LineSplit();
|
||||||
|
_securityAttitudeScc = _targetRecord.SecurityAttitudeScc?.LineSplit();
|
||||||
|
|
||||||
// employment
|
// employment
|
||||||
_employmentPublicRecord = _targetRecord.EmploymentPublicRecord?.LineSplit();
|
_employmentPublicRecord = _targetRecord.EmploymentPublicRecord?.LineSplit();
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,8 @@ namespace AuroraRecordGenerator
|
||||||
{
|
{
|
||||||
var record = new StringBuilder();
|
var record = new StringBuilder();
|
||||||
record.AppendLine("/// PUBLIC RECORD ///");
|
record.AppendLine("/// PUBLIC RECORD ///");
|
||||||
|
|
||||||
|
// TODO: most of this should be replaced by WriteRecordIfAny()
|
||||||
if (_targetRecord.FirstName.Any())
|
if (_targetRecord.FirstName.Any())
|
||||||
{
|
{
|
||||||
record.AppendLine(MakeNameLine());
|
record.AppendLine(MakeNameLine());
|
||||||
|
|
@ -205,7 +207,10 @@ namespace AuroraRecordGenerator
|
||||||
|
|
||||||
recordText.Append(_commonRecords);
|
recordText.Append(_commonRecords);
|
||||||
|
|
||||||
if (!_securityRecords.Any() && !_securityNotes.Any())
|
if (!_securityRecords.Any() &&
|
||||||
|
!_securityNotes.Any() &&
|
||||||
|
!_securityAttitudeScc.Any() &&
|
||||||
|
!_securityAttitudeCrew.Any())
|
||||||
{
|
{
|
||||||
recordText.AppendLine("/// NO SECURITY RECORD FOUND ///");
|
recordText.AppendLine("/// NO SECURITY RECORD FOUND ///");
|
||||||
}
|
}
|
||||||
|
|
@ -214,6 +219,14 @@ namespace AuroraRecordGenerator
|
||||||
recordText.AppendLine("/// SECURITY RECORD ///");
|
recordText.AppendLine("/// SECURITY RECORD ///");
|
||||||
recordText.AppendLine();
|
recordText.AppendLine();
|
||||||
|
|
||||||
|
WriteSectionIfAny(ref recordText,
|
||||||
|
"Attitude Towards the SCC:",
|
||||||
|
_securityAttitudeScc);
|
||||||
|
|
||||||
|
WriteSectionIfAny(ref recordText,
|
||||||
|
"Attitude Towards the Crew:",
|
||||||
|
_securityAttitudeCrew);
|
||||||
|
|
||||||
WriteSectionIfAny(ref recordText,
|
WriteSectionIfAny(ref recordText,
|
||||||
"Notes:",
|
"Notes:",
|
||||||
_securityNotes);
|
_securityNotes);
|
||||||
|
|
|
||||||
|
|
@ -90,6 +90,26 @@ namespace AuroraRecordGenerator
|
||||||
HumanOffworld
|
HumanOffworld
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Currently unused
|
||||||
|
[ProtoContract]
|
||||||
|
public enum ThreatLevel
|
||||||
|
{
|
||||||
|
[ProtoEnum]
|
||||||
|
Minimal = 0,
|
||||||
|
|
||||||
|
[ProtoEnum]
|
||||||
|
Low,
|
||||||
|
|
||||||
|
[ProtoEnum]
|
||||||
|
Medium,
|
||||||
|
|
||||||
|
[ProtoEnum]
|
||||||
|
High,
|
||||||
|
|
||||||
|
[ProtoEnum]
|
||||||
|
Extreme
|
||||||
|
}
|
||||||
|
|
||||||
public static class Info
|
public static class Info
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue