MeshCatalog ​
Inherits: GridCatalog < ConfirmationDialog
The catalog that picks a mesh of the mesh library (a weapon, a piece of armor, a facial feature) for the current mesh type and category. selection_made gives the path of the mesh.
Variables ​
DatabaseMeshes.MeshType | current_mesh_type | DatabaseMeshes.MeshType.WEAPON |
String | current_mesh_category | "" |
bool | show_all_categories | false # Flag for two-mode system |
Methods ​
void | show_catalog( mesh_type: DatabaseMeshes.MeshType, category: String ) |
void | show_all_categories_for_type( mesh_type: DatabaseMeshes.MeshType ) |
void | open( mesh_type: DatabaseMeshes.MeshType, category: String ) |
void | open_for_weapons( category: String ) |
void | open_for_body_parts( category: String ) |
void | open_for_attachments( category: String ) |
void | open_all_weapons() |
void | open_all_body_parts() |
void | open_all_attachments() |
Array[String] | get_available_categories( mesh_type: DatabaseMeshes.MeshType ) |
void | filter_by_category( category: String ) |
void | search_meshes( search_text: String ) |
Dictionary | get_current_context() |
bool | is_showing_all_categories() |
DatabaseMeshes.MeshType | get_current_mesh_type() |
String | get_current_category() |
void | refresh() |
int | get_displayed_mesh_count() |
int | get_total_mesh_count() |
Signals ​
selection_made( mesh_path: String ) ​
Variable descriptions ​
DatabaseMeshes.MeshType current_mesh_type = DatabaseMeshes.MeshType.WEAPON ​
No description yet.
String current_mesh_category = "" ​
No description yet.
bool show_all_categories = false # Flag for two-mode system ​
No description yet.
Method descriptions ​
void show_catalog( mesh_type: DatabaseMeshes.MeshType, category: String ) ​
Mode 1: Show only meshes from ONE specific category
void show_all_categories_for_type( mesh_type: DatabaseMeshes.MeshType ) ​
Mode 2: Show ALL meshes from ALL categories of a mesh type
void open( mesh_type: DatabaseMeshes.MeshType, category: String ) ​
Show the mesh catalog for specific type and category
void open_for_weapons( category: String ) ​
Convenience methods for specific categories
void open_for_body_parts( category: String ) ​
No description yet.
void open_for_attachments( category: String ) ​
No description yet.
void open_all_weapons() ​
All categories convenience methods
void open_all_body_parts() ​
No description yet.
void open_all_attachments() ​
No description yet.
Array[String] get_available_categories( mesh_type: DatabaseMeshes.MeshType ) ​
Get all available categories for a mesh type
void filter_by_category( category: String ) ​
Filter meshes by specific category
void search_meshes( search_text: String ) ​
Search for meshes by text
Dictionary get_current_context() ​
Get the current mesh type and category
bool is_showing_all_categories() ​
Check if currently in all categories mode
DatabaseMeshes.MeshType get_current_mesh_type() ​
Get current mesh type
String get_current_category() ​
Get current category (empty if showing all categories)
void refresh() ​
Refresh the catalog data (useful after database changes)
int get_displayed_mesh_count() ​
Get count of currently displayed meshes
int get_total_mesh_count() ​
Get total mesh count for current context