list with column and row

hello, someone could direct me trough the creation of a list with row and column where I can move freely with mouse and keyboard?
I do not want the plugin, nor the complete script code, I want to learn.

just suggest right approach 🙂

this serve as a card album with card icons and #number of cards, at selection this show the card details.

this is the base card list approach( part of the original script made by raizen, triple triad)


// Function : initialize_cardList_windows - initiates the card list Window
scene_album_TT.prototype.initialize_cardList_windows = function () {
this._cardListWindow = new Window_TripleTriad_CardList(0, 0, 800, Graphics.height);
for (var n = 0; n < this.card_list.length; n++)
this._cardListWindow.setHandler(JSON.parse(this.card_list[n])['Name'], this.addCard.bind(this));
this.addWindow(this._cardListWindow);
if (!this.use_window)
this._cardListWindow.opacity = 255;
The code you've quoted simply adds the window to the scene and attaches command handlers. The actual cursor handling, selection processing, etc is all performed by the window, which is a custom object you'll have to code yourself. From the way you've phrased it, I think you'll have to do some learning (perhaps a lot) before attempting this. 😅

(I think Poryg has made a tutorial video on creating custom windows, but I don't know whether it'll suit your current skill level: link.)

For a row/column selection window, I'd try starting with an object that inherits from Window_Selectable. You'll need to set the column and row count appropriately, then write your own drawItem method override to display the relevant information for each selectable index (e.g. a picture of the card). Good luck! 😂
Thanks this is a step forward.
My scripting skill are low, i'm just learning.
Closed at OP's request.

Original thread: https://forums.rpgmakerweb.com/threads/list-with-column-and-row.115569/