Author Topic: WHICH COMMAND FOR ALIGNMENT IS LIST TO THE LEFT?  (Read 402 times)

Daniel Arcade

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
WHICH COMMAND FOR ALIGNMENT IS LIST TO THE LEFT?
« on: July 03, 2018, 10:12:38 AM »
// LIST OF GAMES


function trimmed_name( index_offset ) {
    local s = split( fe.game_info( Info.Title, index_offset ),"(");
             
    if ( s.len() > 0 )
        return s[0]


}

local slot_a = fe.add_text( trimmed_name(-5 ), 130, 28, 500, 35 );
local slot_b = fe.add_text( trimmed_name( -4 ), 130, 90, 600, 35 );
local slot_c = fe.add_text( trimmed_name( -3 ), 130, 160, 600, 35 );
local slot_d = fe.add_text( trimmed_name( -2 ), 130, 225, 590, 35 );
local slot_e = fe.add_text( trimmed_name( -1 ), 130, 295, 450, 35 );
local slot_f = fe.add_text( trimmed_name( 0 ), 130, 360, 500, 30 );
local slot_g = fe.add_text( trimmed_name( 1 ), 130, 425, 500, 35 );
local slot_h = fe.add_text( trimmed_name( 2 ), 130, 490, 550, 35 );
local slot_i = fe.add_text( trimmed_name( 3 ), 130, 558, 600, 35 );
local slot_j = fe.add_text( trimmed_name( 4 ), 130, 625, 600, 35);
local slot_k = fe.add_text( trimmed_name( 5 ), 130, 695, 500, 35 );


 
fe.add_transition_callback( "update_my_list" )
function update_my_list( ttype, var, ttime )

 
{
    if ( ttype == Transition.ToNewSelection )
    {
      
      slot_a.msg = trimmed_name( var - 5 );
      slot_b.msg = trimmed_name( var - 4 );
      slot_c.msg = trimmed_name( var - 3 );
        slot_d.msg = trimmed_name( var - 2 );
        slot_e.msg = trimmed_name( var - 1 );
        slot_f.msg = trimmed_name( var );
        slot_g.msg = trimmed_name( var + 1 );
        slot_h.msg = trimmed_name( var + 2 );
      slot_i.msg = trimmed_name( var + 3 );
      slot_j.msg = trimmed_name( var + 4 );
      slot_k.msg = trimmed_name( var + 5 );
      
    }
   
}
« Last Edit: July 06, 2018, 08:31:37 AM by Daniel Arcade »

xbs

  • Sr. Member
  • ****
  • Posts: 171
    • View Profile
Re: QUAL COMANDO ALINHA ESSA LISTA PARA ESQUERDA?
« Reply #1 on: July 04, 2018, 02:04:11 AM »
Hi,

I think you'll get faster answers if you ask in english  ::)
« Last Edit: July 04, 2018, 02:11:37 AM by xbs »

iOtero

  • Sr. Member
  • ****
  • Posts: 219
    • View Profile
Re: WHICH COMMAND FOR ALIGNMENT IS LIST TO THE LEFT?
« Reply #2 on: July 11, 2018, 04:16:38 AM »
You do not explain much, but do you mean this?

Code: [Select]
local slot_a = fe.add_text( trimmed_name(-5 ), 130, 28, 500, 35 );
slot_a.align = Align.Left;
local slot_b = fe.add_text( trimmed_name( -4 ), 130, 90, 600, 35 );
slot_b.align = Align.Left;

Daniel Arcade

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: WHICH COMMAND FOR ALIGNMENT IS LIST TO THE LEFT?
« Reply #3 on: July 21, 2018, 06:44:58 PM »

That's right, thank you

Dal1980

  • Full Member
  • ***
  • Posts: 38
    • View Profile
Re: WHICH COMMAND FOR ALIGNMENT IS LIST TO THE LEFT?
« Reply #4 on: July 22, 2018, 04:06:44 PM »
What's all the shouting about?  ???  :P ::)

iOtero

  • Sr. Member
  • ****
  • Posts: 219
    • View Profile
Re: WHICH COMMAND FOR ALIGNMENT IS LIST TO THE LEFT?
« Reply #5 on: July 23, 2018, 11:03:52 AM »
Daniel Arcade, what Dal1980 means is that you remove the capitals of the title of this thread ...; D

Oh, and by the way, I'm glad I could have helped you.