Skip to content

Commit 6cc6156

Browse files
authored
N43: Cvars (#1306)
1 parent c1b2f92 commit 6cc6156

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

content/news/043/cvars.png

209 KB
Loading

content/news/043/index.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,37 @@ for more details, check out our [release notes].
526526
[taffy]: https://github.com/dioxuslabs/taffy
527527
[release notes]: https://github.com/DioxusLabs/taffy/blob/main/RELEASES.md#030
528528

529+
### [Cvars]
530+
531+
![cvars used in the RustCycles game - showcasing a console for the Fyrox engine](cvars.png)
532+
_Cvars and the Fyrox in-game console as used in RustCycles_
533+
534+
[Cvars] ([GitHub][cvars-github], [Discord][cvars-discord]) by [@martin-t]
535+
are a simple way to store settings you want to change at runtime
536+
without restarting your game.
537+
538+
They offer a way to change struct fields based on their name.
539+
This means games can store their config in a plain old struct
540+
and use its statically typed fields with no overhead.
541+
[Cvars] provide a derive macro to also allow changing each field
542+
dynamically at runtime from a TUI.
543+
544+
The cvars project includes in-game consoles [for macroquad][cvars-macroquad]
545+
and [for Fyrox][cvars-fyrox].
546+
547+
In addition to reading and setting cvars,
548+
they support history and offer a help message for new users.
549+
More advanced features such as autocomplete are planned for the next release.
550+
551+
_Discussions: [/r/rust_gamedev](https://reddit.com/r/rust_gamedev/comments/10wfe9p/announcing_cvars)_
552+
553+
[Cvars]: https://crates.io/crates/cvars
554+
[cvars-github]: https://github.com/martin-t/cvars
555+
[cvars-discord]: https://discord.gg/aA7hCFvYh9
556+
[@martin-t]: https://github.com/martin-t
557+
[cvars-macroquad]: https://github.com/martin-t/cvars#macroquad-console
558+
[cvars-fyrox]: https://github.com/martin-t/cvars#fyrox-console
559+
529560
## Popular Workgroup Issues in Github
530561

531562
<!-- Up to 10 links to interesting issues -->

0 commit comments

Comments
 (0)