mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 16:47:13 +01:00
Better Seed Extractor UI (#71204)
## About The Pull Request Added icons to the seed extractor, indicators that show the stat value relative to maximum possible value, tooltips to the stats, list of traits and reagents.  There is also an ability to sort and filter the table now: https://user-images.githubusercontent.com/3625094/201498368-9d620f99-28d3-4197-b73e-cd65d8285334.mp4 And an ability to scrap unneeded seeds: https://user-images.githubusercontent.com/3625094/202563846-420f395b-d4a0-4ebc-88a9-df74c9c8ca1c.mp4 ## Why It's Good For The Game It wasn't very informative with just numbers, especially if you don't know is it 5 out of 10 or 5 out of 100. ## Changelog 🆑 qol: new seed extractor UI /🆑 Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com> Co-authored-by: tattle <66640614+dragomagol@users.noreply.github.com>
This commit is contained in:
co-authored by
MrMelbert
tattle
parent
a110640d29
commit
3c7870b7f6
@@ -0,0 +1,12 @@
|
||||
/datum/asset/spritesheet/seeds
|
||||
name = "seeds"
|
||||
|
||||
/datum/asset/spritesheet/seeds/create_spritesheets()
|
||||
for (var/path in subtypesof(/obj/item/seeds))
|
||||
var/obj/item/seeds/seed_type = path
|
||||
var/icon = initial(seed_type.icon)
|
||||
var/icon_state = initial(seed_type.icon_state)
|
||||
var/id = sanitize_css_class_name("[icon][icon_state]")
|
||||
if(sprites[id]) //no dupes
|
||||
continue
|
||||
Insert(id, icon, icon_state)
|
||||
Reference in New Issue
Block a user