The modified layout you've made for arthurvalenca is wicked! I think the crop actually looks good!
Thank you for making the "clean" mode. It's very minimal and nice. There is one thing I do wish you could modify though and that is for your region info to have more detection. Is there any way to make it so that every parenthesis (and not just the first) in the title can be detected and displayed?
For example, let's say I have four different roms of the same game:
1. Final Fantasy VI (USA)
2. Final Fantasy VI (Japan)
3. Final Fantasy VI (Japan) (English Translated)
4. Final Fantasy VI (USA) (Beta) (Hacked)
Currently.. It only shows USA for 1 & 4 and Japan for 2 & 3.
I use a code like this for my own layouts and it works fine:
function trimmed_name( index_offset ) {
local s = split( fe.game_info( Info.Title, index_offset ), "(" );
if ( s.len() > 0 )
return s[0];
return "";
}
// gets the second part of the game name, after the "("
function subname1( index_offset ) {
local s = split( fe.game_info( Info.Title, index_offset ), "(" )
local s2 = ""
if ( s.len() > 1 ) {
s2 = split(s[1],")")
return s2[0]
}
return ""
}
// gets the third part of the game name, after the "("
function subname2( index_offset ) {
local s = split( fe.game_info( Info.Title, index_offset ), "(" )
local s3 = ""
if ( s.len() > 2 ) {
s3 = split(s[2],")")
return ", " + s3[0]
}
return ""
}
// gets the fourth part of the game name, after the "("
function subname3( index_offset ) {
local s = split( fe.game_info( Info.Title, index_offset ), "(" )
local s4 = ""
if ( s.len() > 3 ) {
s4 = split(s[3],")")
return ", " + s4[0]
}
return ""
}
// Any blank--if no text after parenthesis, then sends N/A
function subname4( index_offset ) {
local s = split( fe.game_info( Info.Title, index_offset ), "(" )
local s5 = ""
if ( s.len() > 1 ) {
s5 = split(s[1],")")
return ""
}
return "N/A"
}
local region_text =fe.add_text("",100, 100, 500, 22 )
fe.add_transition_callback( "update_game_info" )
function update_game_info( ttype, var, ttime )
{
if ( ttype == Transition.StartLayout || ttype == Transition.ToNewList || ttype == Transition.EndNavigation )
{
region_text.msg = subname1 (var) + subname2 (var) + subname3 (var) + subname4 (var) ;
}
return false;
}
I'm sure though there might be a better way than I have implemented.