Kehom / GodotAddonPack

A collection of pure GDScript addons for Godot
http://kehomsforge.com
MIT License
190 stars 15 forks source link

some ideas for the database addon #38

Open ababen1 opened 2 years ago

ababen1 commented 2 years ago
  1. add a column of type "color" to the database, godot has that built in very nicely
  2. add an option to sort rows by a column (for example if i have a table called "hats" with a column that stores the hats' color and i want to see all the red hats or all the hats of type "rare" etc)
  3. maybe add an option for storing long strings? right now it just stores them as one line, but if i want to store a paragraph for example its hard to read it as one line (wasn't sure if this is the right place for posting this so correct me if im wrong)
Kehom commented 2 years ago

Hello there.

add a column of type "color" to the database, godot has that built in very nicely

Oh! Very nice idea! Will work on it!

add an option to sort rows by a column (for example if i have a table called "hats" with a column that stores the hats' color and i want to see all the red hats or all the hats of type "rare" etc)

Well, you can already sort rows by columns. Just right click the relevant column and the sort option should appear in the context menu. I realize I should place a button within the column headers to better help with this. Will see if I can squeeze a little bit more space for it.

Nevertheless, what you actually described is a way to filter out some DB entries and show only what meets the criteria. This specific feature is something that I somewhat placed on a "wish list" to implement later.

maybe add an option for storing long strings? right now it just stores them as one line, but if i want to store a paragraph for example its hard to read it as one line

Multi line strings within cells. I will think what would be the best approach here, if just extend current string type or create one exclusively for it that won't commit the changes on "enter key pressed".

(wasn't sure if this is the right place for posting this so correct me if im wrong)

I don't think there is a "wrong" place for this. Maybe the discussion section could be the "appropriate" location but then, I don't think there is a easy way to track suggestions posted in the section either so... in other words, no worries here!

ababen1 commented 2 years ago

awesome thank you!!