list with column and row

Status
Not open for further replies.

Xyonel

Indie Developer, All-in-one artist.
Veteran
Joined
Jul 22, 2018
Messages
183
Reaction score
37
First Language
Italian
Primarily Uses
RMMV
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;
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,087
Reaction score
1,508
First Language
EN
Primarily Uses
RMMZ
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. :kaoswt:

(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! :kaojoy:
 

Xyonel

Indie Developer, All-in-one artist.
Veteran
Joined
Jul 22, 2018
Messages
183
Reaction score
37
First Language
Italian
Primarily Uses
RMMV
Thanks this is a step forward.
My scripting skill are low, i'm just learning.
 

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
5,624
Reaction score
5,104
First Language
English
Primarily Uses
RMVXA
Closed at OP's request.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,990
Members
137,562
Latest member
tamedeathman
Top