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 - gunthermic

Pages: 1 [2]
16
Scripting / Re: If this else that
« on: January 26, 2019, 12:46:55 AM »
This is what I ended up with. Thank you both so very much. Unless you see something wrong with my else if. it does appear to work.

Code: [Select]
function PlayerIcon() {
if (fe.game_info( Info.Players ) >= "1") return "images/players.png";
else if (fe.game_info( Info.Players ) <= "" || " ") return "images/none.png";
 }
local PlayerIcon= fe.add_image("[!PlayerIcon]", pb_x, pb_y, pb_w, pb_h);
local p = fe.add_text( "[Players]", pb_text_x, pb_text_y, pb_text_w, pb_text_h);

17
Scripting / Re: Exporting Game Info on Signal Questions!
« on: January 25, 2019, 01:02:26 AM »
So you are going to release a plugin for us to use?

This would be great to use to gather info when debugging items.

i'm afraid I'm not too familiar with plugin coding so I have kept it very simple.You can copy paste following in AM\plugins\ginfo.nut (or any name but file should be .nut and placed in /plugins).

Code: [Select]
fe.add_signal_handler(this, "on_signal");
function on_signal( sig1 )
{
if ( sig1 == "custom3" )
{
     fe.plugin_command_bg("cmd.exe /C" "echo " + fe.game_info( Info.Name ) + " >> ginfo.txt" );
    }
    return false;
}

You will have to map "custom3" key from Am > setting > controls. After activating the plugin from AM > plugins whenever you press "custom3" key it will export the data to AM\ginfo.txt. You can use any game.info value instead of ( Info.Name ) to export it. The values are:

Code: [Select]
    Info.NoSort

    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
    Info.Overview
    Info.IsPaused

(from: https://github.com/mickelson/attract/blob/master/Layouts.md#game_info)

Any chance to get it reworked for a pi3?

18
Scripting / Re: If this else that
« on: January 25, 2019, 12:46:25 AM »
I have used the following function but its for images only.

Code: [Select]
function PlayerIcon() {
if (fe.game_info( Info.Players ) == "1") return "images/players/player01.png";
else if (fe.game_info( Info.Players ) == "2") return "images/players/player02.png";
else if (fe.game_info( Info.Players ) != "1" || "2") return "images/players/unknownplayers.png";
 }

local PlayerIcon= fe.add_image("[!PlayerIcon]", 1442, 238, 140, 130);

rand0m!!! Thank you very kindly.

how could one do this by making it, if players isblank/empty do unknownplayers? i.e I have soem games players =3 so if it has 1,2,3,4,5,6,7,8 do an image and if not display unknown.

I did get about code working with mine. but liek I said I have some that have 3 players, or 4 or even 8..

19
Scripting / Re: Exporting Game Info on Signal Questions!
« on: January 24, 2019, 12:22:54 AM »
So you are going to release a plugin for us to use?

This would be great to use to gather info when debugging items.

20
Scripting / If this else that
« on: January 24, 2019, 12:18:51 AM »
I am new to this, but can't seem to get this right. If [Players] is empty/blank don't display this png but a different one.

Code: [Select]
if ("[Players]" != ""){
local players_back = fe.add_image("images/players.png", pb_x, pb_y, pb_w, pb_h);
players_back.alpha = 235;
//local p = fe.add_text( "[Players]", flx*0.882, fly* 0.780, flw*0.105, flh*0.030);
local p = fe.add_text( "[Players]", pb_text_x, pb_text_y, pb_text_w, pb_text_h);
p.charsize = 28;
p.set_rgb( 0, 0, 0 );
p.font="Roboto";
p.align = Align.Centre;
p.style = Style.Bold;
}
else{
local players_back = fe.add_image("images/none.png", pb_x, pb_y, pb_w, pb_h);
}

21
Themes / Re: RetroMode Theme
« on: January 20, 2019, 01:10:01 AM »
Looks great. Love all the information...

22
Themes / Re: SDArcade V3.00
« on: December 12, 2018, 10:45:13 AM »
Awesome work!

23
Scripting / Re: New Plugin - Weather
« on: December 12, 2018, 12:37:13 AM »
Did this one ever get solved/working on a PI?

I tried and it doesn't work.

enabled Weather
Loaded the layout.nut into a new theme.

24
Scripting / Re: help with game indicator bar....
« on: December 10, 2018, 10:10:15 PM »
Are ya going to release this by chance

25
Themes / Re: Arcadeflow theme v 2.9 [Release] Updated 2 December 2018
« on: December 08, 2018, 03:10:10 AM »
On github the last version is 2.8

I know, I still have to update that with all the artworks, but you can get 2.9 from the first post of this thread. I’ll uodate github asap

I keep looking at first post and dont see,. I see link to github which is still 2.8.. I see no link on first pot to download 2.9??

Edit: Never-mind found it scrolling line by line. It's hidden between two images. Maybe sir, move it to bottom of post or to top? very, very hard to see it sir.

26
Themes / Re: "Blue Ring AM" Theme
« on: December 03, 2018, 01:16:13 AM »
Have you ever thought of doing this theme in a Vertical style.

Pages: 1 [2]