Author Topic: Set different value of row and col in Grid Theme in different filter  (Read 934 times)

kent79

  • Hero Member
  • *****
  • Posts: 820
    • View Profile
I would like to set different value of row and col in Grid Theme while in different filter. Below code is my part of cocept. My question is, how to redraw the grid while changing the filter? I don't know the code to complete my task. Any one can help me? Thanks. 

Code: [Select]
function display_transitions( ttype, var, ttime ) {
 switch ( ttype ) {
case Transition.ToNewList:

if (fe.list.filter_index = 0){
rows = 4;
cols = 4;
                redraw grid()
}

if (fe.list.filter_index = 1){
rows = 2;
cols = 2;
                 redraw grid()
}

if (fe.list.filter_index = 2){
rows = 3;
cols = 3;
                 redraw grid()
}
}

Mark Norville

  • Sr. Member
  • ****
  • Posts: 235
    • View Profile
Re: Set different value of row and col in Grid Theme in different filter
« Reply #1 on: March 08, 2022, 07:12:50 AM »
As no one has answered you yet, I will at least give you a reply. I cannot help on how to code that, but you need for the skin to refresh and reload itself from my experience.

I have made some changes in AM which have been instant, I have made changes where you need to go back and then go in for changes to be visible, and then for a lot of stuff a shut down of AM and reload always is best.

I pretty much always make a change and then shut down AM and then reload it, as I found that sometimes I was getting frustrated that something was not working and then I remember that I needed to shut down.

If this was me, I would look at other themes and look at their nutfile, and see if that theme does what you want it to do and then just copy the code and edit as needed.

Sorry this is not much help, but better to have the village idiot, than no one.

Regards

Mark
Well I am back a new PC I7 4790K, 780 TI, 16 Gigs, Windows 10. Hopefully will get delivered at weekend.

Computer Specs : I7 3770K, 780 TI, 16 Gigs, Win 10
HD Specs : 1 x 1 TB SSD + 4 x 8 TB = 33 TB (fullish)
First system : ZX81 (Yes I am an old fart)
PS Network : MarkNorvile
Xbox : Mark Norville