mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-05 11:03:31 +00:00
improve effects warning names and descriptions
This commit is contained in:
parent
57f097481d
commit
e2d3b7be4c
|
@ -634,26 +634,26 @@
|
||||||
NSString *effectWarning = nil;
|
NSString *effectWarning = nil;
|
||||||
if (@available(macOS 12.0, *)) {
|
if (@available(macOS 12.0, *)) {
|
||||||
if (device.portraitEffectActive) {
|
if (device.portraitEffectActive) {
|
||||||
effectWarning = @"PortraitEffectWarning";
|
effectWarning = @"Warning.Effect.Portrait";
|
||||||
effectsCount++;
|
effectsCount++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (@available(macOS 12.3, *)) {
|
if (@available(macOS 12.3, *)) {
|
||||||
if (device.centerStageActive) {
|
if (device.centerStageActive) {
|
||||||
effectWarning = @"CenterStageWarning";
|
effectWarning = @"Warning.Effect.CenterStage";
|
||||||
effectsCount++;
|
effectsCount++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (@available(macOS 13.0, *)) {
|
if (@available(macOS 13.0, *)) {
|
||||||
if (device.studioLightActive) {
|
if (device.studioLightActive) {
|
||||||
effectWarning = @"StudioLightWarning";
|
effectWarning = @"Warning.Effect.StudioLight";
|
||||||
effectsCount++;
|
effectsCount++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* This property is currently unavailable due to an SDK issue: FB13948132
|
/* This property is currently unavailable due to an SDK issue: FB13948132
|
||||||
if (@available(macOS 14.0, *)) {
|
if (@available(macOS 14.0, *)) {
|
||||||
if (device.reactionEffectGesturesEnabled) {
|
if (device.reactionEffectGesturesEnabled) {
|
||||||
effectWarning = @"ReactionsWarning";
|
effectWarning = @"Warning.Effect.Reactions";
|
||||||
effectsCount++;
|
effectsCount++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -661,13 +661,13 @@
|
||||||
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 150000
|
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 150000
|
||||||
if (@available(macOS 15.0, *)) {
|
if (@available(macOS 15.0, *)) {
|
||||||
if (device.backgroundReplacementActive) {
|
if (device.backgroundReplacementActive) {
|
||||||
effectWarning = @"BackgroundReplacementWarning";
|
effectWarning = @"Warning.Effect.BackgroundReplacement";
|
||||||
effectsCount++;
|
effectsCount++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (effectsCount > 1) {
|
if (effectsCount > 1) {
|
||||||
effectWarning = @"MultipleEffectsWarning";
|
effectWarning = @"Warning.Effect.Multiple";
|
||||||
}
|
}
|
||||||
return effectWarning;
|
return effectWarning;
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,9 +15,9 @@ Auto="Auto"
|
||||||
Unknown="Unknown (%1)"
|
Unknown="Unknown (%1)"
|
||||||
EnableAudio="Enable audio if supported by device"
|
EnableAudio="Enable audio if supported by device"
|
||||||
Resolution="Resolution"
|
Resolution="Resolution"
|
||||||
PortraitEffectWarning="Portrait system effect is active on the selected device"
|
Warning.Effect.Portrait="Portrait system effect is active on the selected device"
|
||||||
CenterStageWarning="Center Stage system effect is active on the selected device"
|
Warning.Effect.CenterStage="Center Stage system effect is active on the selected device"
|
||||||
StudioLightWarning="Studio Light system effect is active on the selected device"
|
Warning.Effect.StudioLight="Studio Light system effect is active on the selected device"
|
||||||
ReactionsWarning="Reaction effects are active for the selected device"
|
Warning.Effect.Reactions="Reactions system effect is active on the selected device"
|
||||||
BackgroundReplacementWarning="Background replacement is active for the selected device"
|
Warning.Effect.BackgroundReplacement="Background replacement system effect is active on the selected device"
|
||||||
MultipleEffectsWarning="Multiple system effects are active on the selected device"
|
Warning.Effect.Multiple="Multiple system effects are active on the selected device"
|
||||||
|
|
Loading…
Reference in a new issue