1141
Scripting / Re: charsize not filling fe.Text
« on: April 08, 2016, 10:22:17 AM »
Bueller?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
This might help:
system("command.exe");
fe.plugin_command_bg( "test.exe", "" );
fe.game_info()
fe.game_info( id )
fe.game_info( id, index_offset )
fe.game_info( id, index_offset, filter_offset )
Get information about the selected game.
Parameters:
id - id of the information attribute to get. Can be one of the following values:
Info.Name
Info.Title
Info.Emulator
Info.CloneOf
Info.Year
Info.Manufacturer
Info.Category
Info.Players
Info.Rotation
Info.Control
Info.Status
Info.DisplayCount
Info.DisplayType
Info.AltRomname
Info.AltTitle
Info.Extra
Info.Favourite
Info.Tags
Info.PlayedCount
Info.PlayedTime
Info.FileIsAvailable
Info.System
index_offset - the offset (from the current selection) of the game to retrieve info on. i.e. -1=previous game, 0=current game, 1=next game... and so on. Default value is 0.
filter_offset - the offset (from the current filter) of the filter containing the selection to retrieve info on. i.e. -1=previous filter, 0=current filter. Default value is 0.
Return Value:
A string containing the requested information.
if ( fe.game_info ( Info.Favourite ) == "1" ) {
local favorite = fe.add_image ( "heart.png", 209, 2, 18, 18 );
}
fe.add_text ( fe.game_info ( Info.Favourite ), 209, 2, 18, 18 );
function test(){
local text = fe.game_info(Info.Year);
return text.topper();
}
fe.add_text("[!test]", 0, 0)