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

Pages: [1]
1
Themes / Re: How to add curvature and scanlines to the snapshots?
« on: December 01, 2024, 07:28:18 AM »
Thank you, but I finally converted all my snaps using actions and automation with Photoshop.


2
Scripting / Reduce scroll speed in History plugin?
« on: November 30, 2024, 02:40:41 PM »
Is is posible? How?

3
General / Know selected game?
« on: November 25, 2024, 01:09:12 AM »
Is there any temporal file where the currect selected game is temporaly stored or any other way to know the selected game? I would need to read that information from an Autohotkey script. Thank you.

4
General / Game list acceleration?
« on: November 09, 2024, 04:16:14 AM »
Is there any way to achieve the same result I get with MaLa frontend? I mean the scrolling of the list accelerates when you hold your key or button for a moment.

5
General / View layout at real resolution
« on: November 01, 2024, 05:06:09 AM »
I'm making a layout for 320x240 resolution. The problem is that I cannot find a way to preview it in my high res monitor in real pixels, I mean, in a 320x240 window without any scaling. Is that possible? Thank you.

6
Themes / Re: Games list fade out
« on: October 30, 2024, 02:21:50 AM »
I have achieved this in my theme by adding a .png over my gamelist. It is the same size and has a vertical grandient (from the background color to transparent and then again to the background color). It works great, as long as you have a plain background color.

7
Scripting / Idenfity favorites display
« on: October 28, 2024, 12:46:43 PM »
How can I add a text or image when the current display is favorites without having a different layout for all and favorites?

8
Themes / How to add curvature and scanlines to the snapshots?
« on: October 28, 2024, 10:27:59 AM »
Any example?

9
Themes / Re: Games list fade out
« on: October 28, 2024, 10:27:24 AM »
Do you mean, like the list fades to the background from the selected game to the extremes (top and bottom)? I would also like to do that. How do I use modules?

10
Scripting / Re: Keep the correct aspect ratio of vertical snapshots
« on: October 28, 2024, 10:01:44 AM »
OK. I made if by copying code from other layouts:

local snap = fe.add_artwork( "snap", 1250, 26, 640, 480 );
snap.preserve_aspect_ratio = true;
local title = fe.add_artwork( "marquee", 1250, 570, 640, 480 );
title.preserve_aspect_ratio = true;

11
Scripting / Keep the correct aspect ratio of vertical snapshots
« on: October 27, 2024, 11:16:39 AM »
I have a layout which shows the snapshot of the selected game. It scales the original artworks (which have different dimensions) to a fixed size of 640x480. So far so good. The problem is with vertical games, as these images get very distorted. My idea is that vertical snapshots are displayed on the same area, keeping the 480 pixels high, but at 360 pixels wide to keep the right proportions. Could you please provide an example of the code? Thank you.

12
General / Key delay, gradients and transparency
« on: October 08, 2024, 12:51:30 AM »
How can I reduce the delay when you press a key or button and hold it to browse the list of games (I'm not asking about the general speed when scrolling).

How can I create a gradient for the list selector so that it fades to transparency from the center to the left and right.

Same question as before but for the list of games, fading from the selected to the top and bottom of the list.

Thanks.

13
General / Re: Basic questions for my layout
« on: October 08, 2024, 12:41:54 AM »
My question about changing layouts with one button was much simpler. Now I've found out that I just need to define both layouts in attract.cfg and then configure a key for "next_display".


Code: [Select]

display display
layout               horizontal
romlist              MAME
in_cycle             yes
in_menu              yes
global_filter       
rule                 Rotation equals 0|180

display display
layout               vertical
romlist              MAME
in_cycle             yes
in_menu              yes
global_filter       
rule                 Rotation equals 90|270



14
General / Re: Basic questions for my layout
« on: October 07, 2024, 09:44:47 AM »
                _my_image = fe.add_image( "help.png", 0, 0 );

The 0,0 is your X and Y cords, change those to position it where you want


I know, but I have to write the code for the popup and it wil be valid for centering the image in one of my layouts. I am using the same button in both cases. It can't be centered in both because one is horizontal and the other one is vertical. I wonder if there is an option in the pop up code to tell the program to use certain x and y values for the horizontal layout and others for the vertical layout.

15
General / Basic questions for my layout
« on: October 05, 2024, 09:23:12 AM »
Hello. I'm new to Attract Mode and I have several questions. I have already made a very simple and minimalistic layout for a resolution of 640x480 and I would like to improve some aspects.

First: is there any way to have a key for menu select and another key for launching games? I see that the "select" option under controls works for both.

Second: I have made a vertical version of my layout (I will rotate my 4:3 CRT monitor). Is there any way I can toggle between the horizontal and the vertical layout with a button/key? My current solution is to use Autohotkey to map a button to perform a series of actions such as copying different versions of attract.cfg in a toggle and restart the frontend.

Third: I am using the popup script to show an imagen with some help information. How can I center it on screen for both my horizontal and vertical layouts? This is the code I have:

Code: [Select]

class PopUpImage
{
        _my_image=null;

        constructor()
        {
                _my_image = fe.add_image( "help.png", 0, 0 );
                _my_image.visible=false;
                fe.add_signal_handler( this, "on_signal" )
        }

        function on_signal( signal )
        {
                if ( signal == "custom1" )
                {
                        _my_image.visible=!_my_image.visible;
                        return true;
                }
                return false;
        }
}

local blah = PopUpImage();

Logged


Pages: [1]