Author Topic: Distort gamelist position?  (Read 5407 times)

qqplayer

  • Sr. Member
  • ****
  • Posts: 301
    • View Profile
Distort gamelist position?
« on: March 30, 2017, 07:01:10 AM »
Is there any option-property to do something similar to this pick on an Attract Mode layout?


bjose2345

  • Sr. Member
  • ****
  • Posts: 107
    • View Profile
Re: Distort gamelist position?
« Reply #1 on: April 01, 2017, 03:10:53 PM »
This is a crazy idea, but I think the best way to archive this is, a loop that goes through a number of images increase the spacing,

something like this

local PAD = 2

for ( local i=0; i<mages_count; i++ ) {

yourimage.x = your_position + i * PAD

}

l0ck0

  • Jr. Member
  • **
  • Posts: 21
    • View Profile
Re: Distort gamelist position?
« Reply #2 on: April 01, 2017, 04:57:42 PM »
si te refieres al menu no le veo mucha complicacion, haces una lista normal con esa tipografia y la inclinacion y luego para la imagen de la consola seleccionada pones encima una imagen con el nombre

Code: [Select]
for(local Cont=-10;Cont<=2;Cont+=1){
local listado = fe.add_text("[Title]", ancho_pantalla-(50*(cont+11)), (alto_pantalla/12)*(Cont+(12/2)), anchura, alto_pantalla/12);
listado.index_offset = Cont;
if (Cont == 0){
local imagen = fe.add_image("[Title]", ancho_pantalla-ancho_imagen (alto_pantalla/12)*(Cont+(12/2)), ancho_imagen , alto_pantalla/12);
}
}

algo asi +/-. seguro que el codigo falla por todos lados pero ha sido un c/p rapido de como podria ir el codigo

« Last Edit: April 01, 2017, 05:01:02 PM by l0ck0 »

qqplayer

  • Sr. Member
  • ****
  • Posts: 301
    • View Profile
Re: Distort gamelist position?
« Reply #3 on: April 02, 2017, 06:43:52 AM »
Sorry bjose2345 I think I don´t explain me correctly  :-[

What I want to do is to "distort" the gamelist position.
http://attractmode.org/docs/Layouts.html#ListBox

Only found this property:
Code: [Select]
rotation - Get/set rotation of listbox. Range is [0 ... 360]. Default value is 0.
Tried
Code: [Select]
gamelist.skew_x = -50; but doesn´t work.


@l0ck0 please , make a little example , the code doesn´t seem to work for me.


PD: By the way could be great have a "mix-images" background if you guys can develop a working code.


l0ck0

  • Jr. Member
  • **
  • Posts: 21
    • View Profile
Re: Distort gamelist position?
« Reply #4 on: April 02, 2017, 09:08:28 AM »
para el sombreado gris que solo lo ha puesto para ver si quedaba bien "recto" el efecto habria que poner
Code: [Select]
local frame = fe.add_image( "imagenes/mask.png", pantalla_ancho-(menu_ancho*0.35), 0, menu_ancho*2, menu_alto );
frame.skew_x = -185;
antes de llamar al gamelis.nut (que es reciclado de un codigo anterior asi que parte de las opciones personalizables del inicio se podrian borrar pero no lo he mirado mucho)

no he usado imagenes de los juegos ya que en este sistema aun no los tengo y por eso sale el nombre en texto pero se podria adaptar para usar imagenes sin mucho problema
« Last Edit: April 02, 2017, 09:11:45 AM by l0ck0 »

qqplayer

  • Sr. Member
  • ****
  • Posts: 301
    • View Profile
Re: Distort gamelist position?
« Reply #5 on: April 03, 2017, 05:53:49 AM »
@l0ck0 thank you so much , worked fine.



How can I set the position of the selected "name" "Bishoujo Janshi Pre..." I´m having problems with long names.

l0ck0

  • Jr. Member
  • **
  • Posts: 21
    • View Profile
Re: Distort gamelist position?
« Reply #6 on: April 03, 2017, 01:57:48 PM »
si te refieres a el "numero" de posicion cambia
Code: [Select]
local Fila_res = 11;
si te refieres a la posicion en "x e y" cambia
Code: [Select]
frame = fe.add_image( "imagenes/none.png", 0, (alto_pantalla/Filas)*(Fila_res+Cont-1), ancho_pantalla, alto_pantalla/Filas );  y
Code: [Select]
listado = fe.add_text("[Title]", ancho_pantalla/2, (alto_pantalla/Filas)*(Fila_res+Cont-1), ancho_pantalla/2, alto_pantalla/Filas );