Sauerworld Forum

Sauerbraten Content => Scripts => Topic started by: Salatiel on March 10, 2018, 11:02:07 PM

Title: Map Organizer/Filter Gui Menu
Post by: Salatiel on March 10, 2018, 11:02:07 PM
Is a simple map filter, the idea is to create shortcuts for your maps, and save them into categories which can be disabled/enabled. To create a shortcut enter the name of the map in the text field, and the category that it should be saved, then click on "Refresh" and "save".

(https://i.imgur.com/Oa6j1zG.png)

File names are for identification only, your original map will stay in /packages/base and will never be touched.

(https://i.imgur.com/j3KDOzZ.png)
How it works?
 - Categories and "maps" are just text files that are saved in /packages/favmaps, they are accessed by Loopfiles, and what matters in them is just the name, not the content...

Note: When you add the first map, a folder will be created in .sauerbraten/packages/favmaps, the gui will use it to save the "shortcuts". You do not need to move any map externally, and to delete a shortcut simply remove it from the packages/favmaps folder (mygames/sauerbraten, or .sauerbraten/).

Leave your feedback, thanks!
Title: Re: Map Organizer/Filter Gui Menu
Post by: Doko on March 12, 2018, 08:24:11 PM
This looks great, pretty useful... But i will be not able to try it until this weekend, but ill give you some suggestions if i find anything.