From 48ae99c8b9d10080a8370b29c667928c86dda419 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=AA=20H=C3=A0n=20Minh=20Khang?= Date: Mon, 1 Apr 2024 00:36:07 -0400 Subject: [PATCH] Fix bxt_lightstyle wiki (#102) * fix bxt_lightstyle wiki * Update src/modules/lightstyle.rs Co-authored-by: Ivan Molodetskikh --------- Co-authored-by: Ivan Molodetskikh --- src/modules/lightstyle.rs | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/modules/lightstyle.rs b/src/modules/lightstyle.rs index 6f594b3..66425fc 100644 --- a/src/modules/lightstyle.rs +++ b/src/modules/lightstyle.rs @@ -40,11 +40,11 @@ static BXT_LIGHTSTYLE: CVar = CVar::new( "\ Preset controls. Must invoke apply command to take effects. Persists across level changes. -0: Off -1: Maximum brightness -2: Full bright -3: Maximum darkness -4: Mildy darker", +- `0`: Off +- `1`: Maximum brightness +- `2`: Full bright +- `3`: Maximum darkness +- `4`: Mildy darker", ); static BXT_LIGHTSTYLE_CUSTOM: CVar = CVar::new( b"bxt_lightstyle_custom\0", @@ -53,14 +53,16 @@ static BXT_LIGHTSTYLE_CUSTOM: CVar = CVar::new( Custom controls. Takes precedence over preset when using bxt_lightstyle_apply. First value is effect. Second value is amount. -E.g.: bxt_lightstyle_custom \"1 nomnomnom\". +E.g.: `bxt_lightstyle_custom \"1 nomnomnom\"`. ", ); static BXT_LIGHTSTYLE_APPLY: Command = Command::new( b"bxt_lightstyle_apply\0", handler!( - "Apply lightstyle changes. Takes an optional argument for instantly applying a preset.", + "bxt_lightstyle_apply [preset] + +Apply lightstyle changes. Takes an optional argument for instantly applying a preset.", apply_from_cvars as fn(_), apply_preset as fn(_, _) ),