PreviewDummy = _controller.LoadProfileEntity(Profile, JobOverride, ShowClothes.Pressed);
SpriteView.SetEntity(PreviewDummy);
_entManager.System<MetaDataSystem>().SetEntityName(PreviewDummy, Profile.Name);
+
+ // Check and set the dirty flag to enable the save/reset buttons as appropriate.
+ SetDirty();
}
/// <summary>
return;
_entManager.System<HumanoidAppearanceSystem>().LoadProfile(PreviewDummy, Profile);
+
+ // Check and set the dirty flag to enable the save/reset buttons as appropriate.
+ SetDirty();
}
private void OnSpeciesInfoButtonPressed(BaseButton.ButtonEventArgs args)
roleLoadout.AddLoadout(loadoutGroup, loadoutProto, _prototypeManager);
_loadoutWindow.RefreshLoadouts(roleLoadout, session, collection);
Profile = Profile?.WithLoadout(roleLoadout);
- SetDirty();
ReloadPreview();
};
roleLoadout.RemoveLoadout(loadoutGroup, loadoutProto, _prototypeManager);
_loadoutWindow.RefreshLoadouts(roleLoadout, session, collection);
Profile = Profile?.WithLoadout(roleLoadout);
- SetDirty();
ReloadPreview();
};
_loadoutWindow.OnClose += () =>
{
JobOverride = null;
- SetDirty();
ReloadPreview();
};
return;
Profile = Profile.WithCharacterAppearance(Profile.Appearance.WithMarkings(markings.GetForwardEnumerator().ToList()));
- SetDirty();
ReloadProfilePreview();
}
}
}
- SetDirty();
ReloadProfilePreview();
}
{
Profile = Profile?.WithAge(newAge);
ReloadPreview();
- SetDirty();
}
private void SetSex(Sex newSex)
UpdateGenderControls();
Markings.SetSex(newSex);
ReloadPreview();
- SetDirty();
}
private void SetGender(Gender newGender)
{
Profile = Profile?.WithGender(newGender);
ReloadPreview();
- SetDirty();
}
private void SetSpecies(string newSpecies)
RefreshLoadouts();
UpdateSexControls(); // update sex for new species
UpdateSpeciesGuidebookIcon();
- SetDirty();
ReloadPreview();
}