feat: add ward/plot to default
This commit is contained in:
parent
fc3ce358e5
commit
ada2003ac8
|
@ -12,14 +12,16 @@ public class Configuration : IPluginConfiguration {
|
|||
public string SaveDirectory = Path.Join(Environment.GetFolderPath(Environment.SpecialFolder.MyPictures), "Screenie");
|
||||
public Format SaveFormat = Format.Png;
|
||||
public int SaveFormatData = 90;
|
||||
|
||||
public string SaveFileNameFormat = """
|
||||
{{ captured_at_local | date.to_string '%Y/%m/[%H.%M.%S]' }}
|
||||
{{ captured_at_local | date.to_string '%Y/%m %b/[%H.%M.%S]' }}
|
||||
{{ active_character.name }}
|
||||
-
|
||||
{{ location }}
|
||||
{{- if area }}
|
||||
({{ area }})
|
||||
{{- end -}}
|
||||
|
||||
{{- if area }} ({{ area }}) {{- end -}}
|
||||
{{- if ward }} W{{ ward }} {{- end -}}
|
||||
{{- if plot -}} P{{ plot }} {{- end -}}
|
||||
""";
|
||||
|
||||
private int _templateHashCode;
|
||||
|
|
|
@ -27,14 +27,14 @@ public class ScreenshotMetadata {
|
|||
public required DateTime CapturedAtUtc;
|
||||
public required string EorzeaTime;
|
||||
public required string? Weather;
|
||||
public required uint Ward;
|
||||
public required uint Plot;
|
||||
public required uint? Ward;
|
||||
public required uint? Plot;
|
||||
public required Character[] VisibleCharacters;
|
||||
|
||||
internal static ScreenshotMetadata Capture(Plugin plugin) {
|
||||
EorzeaTime eorzea;
|
||||
uint ward;
|
||||
uint plot;
|
||||
uint? ward;
|
||||
uint? plot;
|
||||
short offsetX;
|
||||
short offsetY;
|
||||
float scale;
|
||||
|
@ -48,15 +48,15 @@ public class ScreenshotMetadata {
|
|||
|
||||
var housing = HousingManager.Instance();
|
||||
try {
|
||||
ward = (uint) housing->GetCurrentWard();
|
||||
ward = (uint) housing->GetCurrentWard() + 1;
|
||||
} catch {
|
||||
ward = 0;
|
||||
ward = null;
|
||||
}
|
||||
|
||||
try {
|
||||
plot = (uint) housing->GetCurrentPlot();
|
||||
plot = (uint) housing->GetCurrentPlot() + 1;
|
||||
} catch {
|
||||
plot = 0;
|
||||
plot = null;
|
||||
}
|
||||
|
||||
var env = EnvManager.Instance();
|
||||
|
|
Loading…
Reference in New Issue