Skip to content

Commit

Permalink
update character appearance panel to default to HumanMale and HumanFe…
Browse files Browse the repository at this point in the history
…male instead of legacy DCS versions
  • Loading branch information
michaelday008 committed May 10, 2022
1 parent 53a2474 commit db2aabb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ private void CheckAvatarDefinition() {
avatarDefinition = new AvatarDefinition();

// avatarDefintion is a struct so needs to have its properties set to something other than null
avatarDefinition.RaceName = "HumanMaleDCS";
avatarDefinition.RaceName = "HumanMale";
avatarDefinition.Wardrobe = new string[0];
avatarDefinition.Dna = new DnaDef[0];
avatarDefinition.Colors = new SharedColorDef[0];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public override void SetupScriptableObjects(SystemGameManager systemGameManager)
if (tmpAudioProfile != null) {
audioProfileList.Add(tmpAudioProfile);
} else {
Debug.LogError("MusicPlayerCompoennt.SetupScriptableObjects(): COULD NOT FIND AUDIO PROFILE: " + audioProfileName + " while initializing");
Debug.LogError("MusicPlayerComponent.SetupScriptableObjects(): COULD NOT FIND AUDIO PROFILE: " + audioProfileName + " while initializing");
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -448,13 +448,13 @@ public void SetMale() {
//maleButton.HighlightBackground();
if (maleRecipe != string.Empty) {
//Debug.Log("CharacterCreatorPanel.SetFemale(): maleRecipe != string.Empty");
characterCreatorManager.PreviewUnitController.UnitModelController.UMAModelController.DynamicCharacterAvatar.ChangeRace("HumanMaleDCS");
characterCreatorManager.PreviewUnitController.UnitModelController.UMAModelController.DynamicCharacterAvatar.ChangeRace("HumanMale");
//characterCreatorManager.PreviewUnitController.UnitModelController.LoadSavedAppearanceSettings(maleRecipe, true);
characterCreatorManager.PreviewUnitController.UnitModelController.UMAModelController.SetAppearance(maleRecipe);
} else {
//Debug.Log("CharacterCreatorPanel.SetMale(): maleRecipe == string.Empty");
//characterCreatorManager.PreviewUnitController.UnitModelController.UMAModelController.DynamicCharacterAvatar.ChangeRace("HumanMaleDCS");
characterCreatorManager.PreviewUnitController.UnitModelController.UMAModelController.SetAvatarDefinitionRace("HumanMaleDCS");
//characterCreatorManager.PreviewUnitController.UnitModelController.UMAModelController.DynamicCharacterAvatar.ChangeRace("HumanMale");
characterCreatorManager.PreviewUnitController.UnitModelController.UMAModelController.SetAvatarDefinitionRace("HumanMale");
characterCreatorManager.PreviewUnitController.UnitModelController.UMAModelController.PreloadEquipmentModels(true);
characterCreatorManager.PreviewUnitController.UnitModelController.UMAModelController.ReloadAvatarDefinition();
}
Expand All @@ -475,13 +475,13 @@ public void SetFemale() {
//femaleButton.Select();
if (femaleRecipe != string.Empty) {
//Debug.Log("CharacterCreatorPanel.SetFemale(): femaleRecipe != string.Empty");
characterCreatorManager.PreviewUnitController.UnitModelController.UMAModelController.DynamicCharacterAvatar.ChangeRace("HumanFemaleDCS");
characterCreatorManager.PreviewUnitController.UnitModelController.UMAModelController.DynamicCharacterAvatar.ChangeRace("HumanFemale");
//characterCreatorManager.PreviewUnitController.UnitModelController.LoadSavedAppearanceSettings(femaleRecipe, true);
characterCreatorManager.PreviewUnitController.UnitModelController.UMAModelController.SetAppearance(femaleRecipe);
} else {
//Debug.Log("CharacterCreatorPanel.SetFemale(): femaleRecipe == string.Empty");
//characterCreatorManager.PreviewUnitController.UnitModelController.UMAModelController.DynamicCharacterAvatar.ChangeRace("HumanFemaleDCS");
characterCreatorManager.PreviewUnitController.UnitModelController.UMAModelController.SetAvatarDefinitionRace("HumanFemaleDCS");
//characterCreatorManager.PreviewUnitController.UnitModelController.UMAModelController.DynamicCharacterAvatar.ChangeRace("HumanFemale");
characterCreatorManager.PreviewUnitController.UnitModelController.UMAModelController.SetAvatarDefinitionRace("HumanFemale");
characterCreatorManager.PreviewUnitController.UnitModelController.UMAModelController.PreloadEquipmentModels(true);
characterCreatorManager.PreviewUnitController.UnitModelController.UMAModelController.ReloadAvatarDefinition();
}
Expand Down

0 comments on commit db2aabb

Please sign in to comment.