Stable2.0.0
It is EXTREMELY recommended to reinstall the entire addon from scratch - Your in-game settings will still work but all file based setting files have been changed or modified. Same goes for all core files you might've modified.
Sorry for this update taking so long to finish for so little shit lol
- Completely revamped translation system. Translations are no longer found in the files (except English) and are now found in https://github.com/LivacoNew/Addon-Translations/tree/master/YAWS - This means translations can be made/updated without an addon updating, meaning less hassle for your devs :) This also means anyone can contribute a translation for YAWS without too much hassle.
- Change the net message rate limit model. Instead of one request then a 0.25 second cooldown, it's now if they make 5 requests in a single second, they get a 3 second cooldown. If you wish to edit these values to make it more strict or lenient, you can do so in the sv_config.lua file, same one that the Database settings is in.
- Added a "API" for developers to hook into. See https://yaws.livaco.dev/ for docs.
- Added an Admin Setting to send a chat message to any admin with the "View Others Warnings" permission when a player with any active points join.
- Added better error messages for async function calls.
- Added the ability to edit punishments and presets.
- Added a version check on startup to check if YAWS is outdated. If it is, it will display a warning in the console.
- Added a setting that allows you to change the full message color, for if your running a white chatbox and need dark text.
- Added a small warning to people converting from SlownLS's warning system about missing player data.
- Made backup drop files lowercase, and moved them into data/yaws_backups for people who don't like clutter.
- Fixed some weird things happening with some user settings. Would love to expand on this but I wrote this change a month ago and now have zero clue what that said weird behaviour was.
- Fixed a DarkRP bug where players with nicknames weren't being updated properly
- Fixed an error with warning a player through chat/console commands
- Fixed a query missing a string escape.
- Fixed an edge case of the context menu causing errors with disconnecting players.
- Fixed the timestamp on copying warning logs being wrong.
- Fixed the on join message being fired before the client had the server's settings, causing the prefix to be wrong.
- Fixed an issue where lua refreshing would cause gamemode specific punishments to break.
- Fonts now update on screen resoluton size changes. Thanks OnScreenSizeChanged!
- Removed all unnessasary surface.GetTextSize calls when there was a draw.SimpleText call right fucking above it.
- Fixed the YAWS.UI.CutoffText lag with some good o'l temparary caching. How can such a small function can cause fps to drop by 10; I have absolutely zero idea, but no one complained about it until I noticed it myself and now it's fixed so whatever.
- Changed the default password for the discord webhook as a better example of the security you should have on it.
- Shit ton more optimisations and fixes I've forgotten about.
- A whole butt ton of UI changes:
- Fixed massive amounst of scaling issues with the UI on non 1920x1080 resolutions, particularly going up. Sorry to everyone that put up with that tiny mess, it's for the most part fixed now hopefully.
- Add icons throughout the UI to improve accessability and visuals. Some of these can be toggled on/off in the user settings.
- Added a option to enable colorblind text guides for improved accessability.
- Added placeholder displays to any listing panels that don't have results. Here's an example: https://upload.livaco.dev/u/gLkXBFjAuf.jpg versus when nothing is found: https://upload.livaco.dev/u/9mqcBMQ6rU.jpg
- Changed the warning viewing to an expandable card based display. You can however swap back to the old table view in the user settings. These cards have more information, and actually display the fucking time!
- The warning page is now pagnated. Before, it would send the past 30 (i think) warnings. Now, you can view all a player's warnings, and just scroll through pages of them instead. This also comes with the benefit of better network performance.
- Added scrolley capabilities to the side tab panels for better expandability.
- Added a YAWS info page to help people get support and find out what version of the addon they're using more easily (This will also warn you if your version is outdated). This tab is only visible to the owner of the addon and no one else, so don't worry that your precious personalisation for your server is lost, people will still think the warning system is just for your server and that your a awesome server owner!! :)
- Categorised the settings in both the Admin Settings and User Settings. They are now part of accordians, with very fancy chevrons that im super fucking proud of ngl :)
- Make a new color picker thats more "sleek" of a layout.
- Permissions tab look a tad better now.
- Added flags to the language selector.
- Finally sorted the punishments tab by points.
- Made it so the presets combo box is disabled when warning a player without presets on a server.
- Made the top of the Players tab a actual panel.
- Punishments list now looks better. More information and stuff.
- Gave presets the same treatment as punishments.
- Made combo boxes look a little nicer.
- Modified some of the icons to be a bit more "uniform" stroke size.
- The warning player popup is now a proper "modal".
- Viewing a warning from a table/id search is also now a modal.
- Put a shadow above the close button which i've been told looks good.
Features that were planned but abandoned, included here for transparency.
- Editing Warnings: Technical reasons, too many things that would need to be fucked with.
- DarkRP Demote Punishments: Couldn't find a function to do this - if there is one lemme know.
- Factory Resetting: Waste of time, just wipe your db lmao.
- Colorblind color palettes: Couldn't find anything on how to do this properly - if you know any proper resources for this lemme know.
Thanks for waiting for this update patiently. :)