]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commit
Almost fix filtering in the guide
authorotta8634 <k9wolf@pm.me>
Fri, 10 Jan 2025 15:51:30 +0000 (23:51 +0800)
committerotta8634 <k9wolf@pm.me>
Fri, 10 Jan 2025 15:51:30 +0000 (23:51 +0800)
commit339b69334be04e6745ca502bf0ffeebf8df51041
tree17f9a3a47ec16b461a996f2d7760247a5bac59e7
parenta70d3e27ec7864acb769bd5e0cd05a962c9bedbf
Almost fix filtering in the guide

Still has an issue: doesn't work properly for Gametypes and Mutators.
- Method used was filtering based on .m_name, however Gametypes and Mutators don't use .m_name (yet), they use .message.
- This can easily be fixed by just changing the macro to use .message for those two, but a better approach should be used, so I'm intentionally pushing slightly-buggy code in hopes a better approach will be found.
Needed a bit of reworking of some functions in menu/guide/entries.qc so that MENUQC would stop crashing, added comments to help clarify code.
qcsrc/menu/xonotic/dialog_singleplayer_guide.qc
qcsrc/menu/xonotic/guide/entries.qc
qcsrc/menu/xonotic/guide/guide.qh