Manual
Accessibility
PassForgeAccessibility holds settings for a game's options menu. They apply to every camera that shows Pass Forge's screen effects, so the effects must be set up and the camera must have Post Processing on, as for any screen effect. They need no Volume. They start at their defaults each time the game starts, and when Play Mode ends, unless they were kept with PassForgeAccessibility.Save(): saved choices come back by themselves before the first scene shows. A game with a save system of its own can set them from it instead. Choices made while testing a menu are saved on your machine too: Edit > Project Settings > Pass Forge > Accessibility shows them, with a Forget Saved Choices button, and in Play Mode tries Safe Mode, Colors For and Text Size without a menu.
GameObject > Pass Forge > Accessibility Menu makes a ready options menu on a frosted PF Panel: a safe mode toggle, sliders for flashes, screen shake, color adjustment and text size, and a color blindness dropdown, each applied and saved as it changes. When the game uses Lens Blood (a Lens Blood component, a moment with a Lens Blood step, or a Volume that restyles it, in the open scenes or in the prefabs they hold, or a script under Assets that calls PassForgeLensBlood.SplatFrom or another Splat call), it also has a Blood dropdown, so games without blood keep a menu without it. Its Pass Forge Accessibility Menu component also connects controls in a menu of your own; every control is optional, and a dropdown of your own with Shown, Not red and Off goes in its Blood field.
safeMode: one switch for players sensitive to flashing and motion. Lightning and flashbangs from Screen Flash, Impact Frames, Flash Lights and highlight flashes dim to a quarter, lightning lights up once instead of flickering, and Screen Shake moves a quarter as far. An aimed flashbang spreads its white from its point over a moment instead of at once, and its bright point dims with the rest. Off-screen Indicators and Compass Bar markers hold steady: no pulse, nudge or bob, and pings show one steady ring. Fog of War Radars draw no glint as the sweep passes a blip, start pings without their bright flash, and keep painted blips from going fully dark between passes. Route arrows and dashes hold still. Deband's noise stays still. Lens Blood fades in, stays smaller and drips slower.flashStrengthandshakeStrength: sliders from 0 to 1 for the same effects; safe mode lowers them further. The flash slider also dims a radar's glints and the bright start of its pings. At 0 it skips the Screen Flash pass.PassForgeScreenFlash.blindnessis the game's value: neither safe mode nor the flash slider lowers it, so turning flashes down gives no advantage. A game that wants it lowered multiplies byflashStrengthitself.colorBlindnessandcolorAdjustment: move colors that players with Protanopia, Deuteranopia or Tritanopia cannot tell apart to ones they can. Critical damage numbers still read through their !. Compass Bars, Fog of War Minimaps and Fog of War Radars on a Screen Space - Overlay canvas adjust their markers, blips, pings and the route forcolorBlindnesstoo, as the edge indicators are. Radar blips also tell their kind by shape.textScale: from 1 to 2, how big Pass Forge's on-screen numbers are, for players who need larger text: damage numbers, the distances beside Off-screen Indicators, the numbers and distances on Compass Bars, and the ring labels on Fog of War Radars, which shrink to fit between close rings. The Accessibility Menu has a Text size slider for it.blood: Shown, Not Red or Off, for players who would rather not see blood. Not Red shows red splats in the Lens Blood component's Toned Down Color and leaves green alien blood, oil and paint as they are. Off shows no blood on the lens at all, and wipes what is there.- Safe mode also calms damage numbers: almost no white flash, a quarter of the critical shake, and hardly any pop or stretch. They still rise and stay fully readable.
PassForgeDamageNumbers.visible = falselets players turn numbers off, as a game option of your own. - A turning minimap or radar is harder for some players to follow. Give players the choice of North Up, as a game option of your own:
minimap.orientation = MinimapOrientation.NorthUp;.
The Color Vision effect in a Volume shows instead, for checking the game: Simulate shows the picture as a player with the chosen color blindness sees it, Achromatopsia included, and Adjust shows the adjustment. It is the last effect of the frame, so Screen Space Overlay canvases, drawn after it, keep their colors; Compass Bars and Fog of War Radars there adjust their markers and blips for the player's setting themselves.
using PassForge.Effects;
// From the options menu, and again with the saved choices when the game starts.
PassForgeAccessibility.safeMode = safeModeToggle.isOn;
PassForgeAccessibility.shakeStrength = shakeSlider.value;
PassForgeAccessibility.colorBlindness = ColorBlindness.Deuteranopia;
PassForgeAccessibility.blood = BloodSetting.NotRed;