Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

Everything Library - Simple Resource Referencer

An asset by don-tnowe
The page banner background of a mountain and forest
Everything Library - Simple Resource Referencer thumbnail image
Everything Library - Simple Resource Referencer thumbnail image
Everything Library - Simple Resource Referencer thumbnail image
Everything Library - Simple Resource Referencer hero image

Quick Information

0 ratings
Everything Library - Simple Resource Referencer icon image
don-tnowe
Everything Library - Simple Resource Referencer

A plugin allowing you to reference a folder of resources at runtime in an easy way. No `load()`, no `preload()`, no boilerplate directory crawling, no exported properties.Handy when you have a list of resources you keep expanding and expanding, but also need a way to just get all of them - for **an in-game catalogue of monsters**, or for **a recipe list in a crafting system**... or you just hate load().Got a folder of items? Or even, a folder of folders of items?Just configure, and: "var all_the_items = Library.items".Need a "magic_crystal.tres" from there? "var crystal = Library.items['magic_crystal']".It's even possible to group them by a property value, like if you want to list all items of each type!

Supported Engine Version
3.5
Version String
0.1
License Version
MIT
Support Level
community
Modified Date
2 years ago
Git URL
Issue URL

Everything Library

A plugin allowing you to reference a folder of resources at runtime in an easy way. No load(), no preload(), no boilerplate directory crawling, no exported properties.

Handy when you have a list of resources you keep expanding and expanding, but also need a way to just get all of them - for an in-game catalogue of monsters, or for a recipe list in a crafting system, or a script that can't have exported properties but needs that one specific Resource...

So,

let's say you have a folder of items. You need to do_stuff() with each item in the folder.

You press Project -> Tools -> Manage Everything Library (or not, the window appears on first startup). Add the folder, give it a name items.

Then you just:

for item_resource in Library.items:
  do_stuff(item_resource)

If you have some magic_crystal.tres in that folder, you can just reference it directly, like:

var crystal_item = Library.items["magic_crystal"]

If you're obsessed with optimization, you can erase the "key" field from the import entry, and they'll be stored in an array! Or maybe you just need to reference them by index. Or you need to index them by a specific property, then write it there! You could even have multiple entries importing the same folder but with different keys!

Made by Don Tnowe in 2022.

https://redbladegames.netlify.app

https://twitter.com/don_tnowe

Copying and Modification is allowed in accordance to the MIT license, full text is included.

A plugin allowing you to reference a folder of resources at runtime in an easy way. No `load()`, no `preload()`, no boilerplate directory crawling, no exported properties.

Handy when you have a list of resources you keep expanding and expanding, but also need a way to just get all of them - for **an in-game catalogue of monsters**, or for **a recipe list in a crafting system**... or you just hate load().

Got a folder of items? Or even, a folder of folders of items?

Just configure, and: "var all_the_items = Library.items".
Need a "magic_crystal.tres" from there? "var crystal = Library.items['magic_crystal']".

It's even possible to group them by a property value, like if you want to list all items of each type!

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Everything Library - Simple Resource Referencer icon image
don-tnowe
Everything Library - Simple Resource Referencer

A plugin allowing you to reference a folder of resources at runtime in an easy way. No `load()`, no `preload()`, no boilerplate directory crawling, no exported properties.Handy when you have a list of resources you keep expanding and expanding, but also need a way to just get all of them - for **an in-game catalogue of monsters**, or for **a recipe list in a crafting system**... or you just hate load().Got a folder of items? Or even, a folder of folders of items?Just configure, and: "var all_the_items = Library.items".Need a "magic_crystal.tres" from there? "var crystal = Library.items['magic_crystal']".It's even possible to group them by a property value, like if you want to list all items of each type!

Supported Engine Version
3.5
Version String
0.1
License Version
MIT
Support Level
community
Modified Date
2 years ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers