Skip to content

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.MeshTypecurrent_mesh_typeDatabaseMeshes.MeshType.WEAPON
Stringcurrent_mesh_category""
boolshow_all_categoriesfalse # Flag for two-mode system

Methods ​

voidshow_catalog( mesh_type: DatabaseMeshes.MeshType, category: String )
voidshow_all_categories_for_type( mesh_type: DatabaseMeshes.MeshType )
voidopen( mesh_type: DatabaseMeshes.MeshType, category: String )
voidopen_for_weapons( category: String )
voidopen_for_body_parts( category: String )
voidopen_for_attachments( category: String )
voidopen_all_weapons()
voidopen_all_body_parts()
voidopen_all_attachments()
Array[String]get_available_categories( mesh_type: DatabaseMeshes.MeshType )
voidfilter_by_category( category: String )
voidsearch_meshes( search_text: String )
Dictionaryget_current_context()
boolis_showing_all_categories()
DatabaseMeshes.MeshTypeget_current_mesh_type()
Stringget_current_category()
voidrefresh()
intget_displayed_mesh_count()
intget_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