Show Posts

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.


Messages - keilmillerjr

Pages: 1 ... 75 76 [77] 78
1141
Scripting / Re: charsize not filling fe.Text
« on: April 08, 2016, 10:22:17 AM »
Bueller?

1142
Scripting / Re: fe.plugin_command_bg issue?
« on: April 01, 2016, 08:23:17 PM »
This might help:

 system("command.exe");

No such luck.

1143
Scripting / fe.plugin_command_bg issue? [RESOLVED]
« on: April 01, 2016, 09:25:50 AM »
I add the following near the top of my layout and it never executes test.exe. The file is in the same location as layout.nut. Am I doing something wrong?

Code: [Select]
fe.plugin_command_bg( "test.exe", "" );

1144
Scripting / Re: charsize not filling fe.Text
« on: March 30, 2016, 07:01:40 PM »
I switched fonts trying to troubleshoot and the new font is spaced above the message area. Why are fonts not filling the height?

1145
Scripting / Re: Help to show favourite image
« on: March 30, 2016, 07:05:01 AM »
@malfacine I figured out what was going on. The string returned was based on the game when the front end starts. It was not dynamically updated. If you use use a function with fe.add_image([!thisfunctionshouldreturntheimagepath], x, y, w, h), it should work dynamically. However, it does not work instantly when you add or remove favorite. Still working on that.

1146
Scripting / Re: Help to show favourite image
« on: March 30, 2016, 04:59:12 AM »
http://attractmode.org/docs/Layouts.html
Code: [Select]
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.

My code example that does NOT WORK properly. The heart is displayed on every game, regardless of if it is indeed a favorite or not.
Code: [Select]
if ( fe.game_info ( Info.Favourite ) == "1" ) {
  local favorite = fe.add_image ( "heart.png", 209, 2, 18, 18 );
}

When I add the following code, every game is returning a 1 for text. This makes no sense to me.
Code: [Select]
fe.add_text (  fe.game_info ( Info.Favourite ), 209, 2, 18, 18 );

1147
Scripting / Re: Help to show favourite image
« on: March 29, 2016, 12:24:39 PM »
I was having trouble with this last night.

This code I would expect to work:

if ( fe.game_info ( Info.Favourite ) ) {
  // Do something
}

It should return a boolean value, not a string. Even assuming its a string as in your example proves to not work. I quit last night and its funny I see this post today.

1148
Scripting / charsize not filling fe.Text
« on: March 28, 2016, 02:21:23 PM »
I have fe.Text objects. When charsize property is set to default, autosize does not fill the height. Any idea how to remedy? I assume if I explicitly set the charsize, it's using points instead of pixels. Even still, it does not perfectly match the text object. Is this due to the default Arial font having some sort of spacing? I used the set_rgb() function to blue on the text objects to demonstrate.

1149
General / Vector Support
« on: March 25, 2016, 09:32:21 PM »
Attract mode scales themes. Fonts scale nicely. Some raster images do not. Any support for vector images?

1150
Scripting / Re: Magic Tokens UPPERCASE?
« on: March 19, 2016, 09:52:48 PM »
I resolved this by passing a function to the magic token. I wish the function can take params... or can it?

Working Example
Code: [Select]
function test(){
  local text = fe.game_info(Info.Year);
  return text.topper();
}
fe.add_text("[!test]", 0, 0)

1151
Scripting / Magic Tokens UPPERCASE?
« on: March 18, 2016, 07:16:46 PM »
Having a little trouble making magic tokens uppercase. Tried quite a few things. Anyone know how to achieve this?

http://attractmode.org/docs/Layouts.html#magic
http://attractmode.org/docs/Layouts.html#game_info
http://www.squirrel-lang.org/doc/squirrel3.html <- See section about toupper()

1152
General / Re: Raspberry PI 3!!!
« on: March 01, 2016, 12:38:21 PM »
I bought a RPI2 B and never actually finished my project because I couldn't get the wifi working and running back and fourth with sd card got old. Having wifi and bluetooth built into the new RPI3 will be an awesome addition. No more d*cking around.

1153
Themes / Re: New Theme - Game Station HD v2.4
« on: February 18, 2016, 10:15:28 AM »
I really like this theme. How well does it work on a standard res crt?

1154
Emulators / Re: need help with playchoice 10 driver
« on: November 20, 2015, 06:57:53 PM »
Create a nes emulator file, use mame as the emulator, and set the arguments to use nes bios. Apply a filter for nes bios.

1155
Themes / Re: New Theme - simpleCools
« on: November 18, 2015, 06:00:56 PM »
This is how the original cools layout should be. I love the layout, but covering the majority of the video space is a little annoying. Thank you.

PS this layout will work well with a 4:3 arcade monitor. :)

Pages: 1 ... 75 76 [77] 78