Recent Posts

Pages: 1 ... 7 8 [9] 10
81
Scripting / Update to popup Plug-In to show image for given game (Instructions)
« Last post by therick3 on April 14, 2025, 01:23:48 PM »
Update for PopUp.net:

As you move through game list this allows a person to press a key and have a specific image (using the game name) to appear.  Great to show game instructions and control layout before selecting a game:

class UserConfig </ help="This plugin will show a popup image when the specified key is pressed." /> {
   </ label="Path to instructions, from .attract folder",
   help="Enter full path assuming you start from .attract folder.", order=1 />
   filePath="/scraper/mame/launch/";
//   </ label="Image", help="The full path to the image that will be displayed", order=1 />
//   image="";
   </ label="Select file extension of instruction file",
   help="File extension to use when opening instructions (png or jpg)", options="png,jpg",   order=2 />
   fileExtension="png";
   </ label="Key", help="The key that will display the image", is_input="yes", order=3 />
   key="";
   </ label="Hold Key", help="If enabled, you must hold the key down", options="Yes,No", order=4 />
   hold="No";
};

class PopUpImage
{
   fileExtension = null;
   filePath = null;
        _image = null;
      _key = null;
      _hold = false;
      _showing = false;
      _key_delay = 250;
      _last_check = 0;
      
        constructor()
        {
         local config = fe.get_config();
         filePath = config["filePath"];
         fileExtension = config["fileExtension"];
         print(filePath+"[Name]."+fileExtension+"\n")
         _image = fe.add_image(filePath+"[Name]."+fileExtension, 0, 0, fe.layout.width, fe.layout.height);
//         _image = fe.add_image(config["image"], 0, 0, fe.layout.width, fe.layout.height );
         _image.visible=false;
         _image.preserve_aspect_ratio = true;
         _key = config["key"];
         _hold = config["hold"];
         fe.add_ticks_callback( this, "on_tick" );
        }

      function on_tick( ttime )
      {
         local is_down = fe.get_input_state( _key );
         if ( _hold == "Yes" )
         {
            _image.visible = is_down;
            _showing = is_down;
         } else
         {
            if ( is_down )
            {
               if ( ttime - _last_check > _key_delay )
               {
                  _last_check = ttime;
                  _image.visible = !_showing;
                  _showing = !_showing;
               }
            }
         }
      }
}

fe.plugin[ "PopUpImage" ] <- PopUpImage();
82
Scripting / Re: Scrolling text?
« Last post by therick3 on April 14, 2025, 01:20:16 PM »
I did a smooth vertical scroll on one of my layouts borrowing code from this post:

http://forum.attractmode.org/index.php?topic=300.0

My give you something to leap off from.

I grabbed something from a layout called Smooth.  here is my code:

// **Add in game description text box taken from Smooth Theme
// setup Overview text
// make the new surface

local surface = fe.add_surface(screenWidth*0.44, screenHeight*0.35  );
surface.x = screenWidth*0.52;
surface.y = screenHeight*0.58;

// put overview text on the new surface
local text = surface.add_text( "Year: [Year]\nPlayed Count: [PlayedCount]\nManufacturer: [Manufacturer]\n\n[Overview]", 0, 0, screenWidth*0.44, screenHeight );
text.word_wrap = true;
text.align = Align.TopLeft;
text.set_rgb (255, 255, 255);
text.charsize = 12;

//text.set_bg_rgb( 100, 100, 100 );
// uncoment the ubove line to visibley see the transparent text layer !
// so can u position and size in layout easier!

// calling "local text" in the animation     
local an = { when=Transition.ToNewSelection,
//local an = { when=Transition.StartLayout,
property="y",
start=text.y+200 ,
end=text.y-340,
time=20000
loop = true,
}
animation.add( PropertyAnimation( text, an ) );
83
General / Re: I can't play on DuckStation and PCSX2 through Attract Mode
« Last post by poyomg on April 12, 2025, 02:27:15 PM »
I faced this issue today, and you don't need to replace all the "/" characters by "\"

Remember, just add a "\" at the end of the rompath.

Here's my example:

Quote
K:\Emulators\PSX DuckStation\PSX ISOs\

This fixed my problem today, hope it helps
84
Scripting / Attract-Mode Layout & Emulator Config Generator
« Last post by JJTheKing on April 12, 2025, 12:10:02 PM »
Attract-Mode Layout & Emulator Config Generator

A powerful AHK tool for creating Attract-Mode frontend layouts and emulator configurations


Layout Generator

    Tabbed Interface for easy navigation

    Resolution Settings: Predefined display options

    Wheel Customization: Round/Vertical styles with animation timing

    Visual Effects: Logo pulse with color options (Rainbow, Red, Blue, etc.)

    Module Selection: Enable/disable Attract-Mode modules with tooltips

    Artwork Integration: Import boxart, snaps, wheels, and metadata

    Multi-File Support: Combine multiple layout components

Emulator Config Generator

    Supports MAME, RetroArch, and Custom Emulators

    System-Specific Defaults: Auto-suggests ROM extensions (e.g., .chd for PS1)

    Artwork Folders: Checkbox toggles for boxart, snaps, etc.

    Smart Path Handling: $PROGDIR variables for portable setups

Quality of Life

    Tooltip Guides: Hover explanations for modules

    Version v1.4

:tools: How to Use

    Run the Script:

        Double-click Layout Generator-1.4.exe

    Generate a Layout:

        Navigate through tabs to configure resolution, wheel style, and artwork.

        Click Generate Code → Save As... to export layout.nut.

    Create Emulator Configs:

        Go to the Emulator Cfg tab.

        Select emulator + system, set paths/extensions, and click Save Config.

This Was Made With AutoHotKey And DeepSeek

Grab it Here https://www.mediafire.com/file_premium/56o3diuwcltd9ct/AM%2B_Tool_1.4.7z/file
85
Themes / Grid++ theme (for AM+ only)
« Last post by kent79 on April 08, 2025, 06:22:36 PM »
Grid++ theme is released now. Special thanks Ken Luo for help to complete keyped find game function

The theme is revised by Grid+ and thanks for oomek too. It is only running well on AM+ 3.1.0 beta 4 or later version

Demo:
https://youtu.be/vmG_1NI2QfE

Download:
AM+ Discord
https://discord.gg/86bB9dD
86
General / Exit to Desktop is using Exit Command
« Last post by Matty3891 on March 30, 2025, 12:01:41 AM »
I have the exit command in AM set as ‘shutdown -s -t 00’ which works great to shutdown the pc when required…
However, when I want to exit to the desktop from AM using a key set in the exit to desktop setting, it also uses the shutdown command above instead of exiting to the desktop.
Any ideas why please?
87
General / Re: I can't play on DuckStation and PCSX2 through Attract Mode
« Last post by cutfit on March 24, 2025, 12:53:35 AM »
I just lately encountered the same problem.
For years, these two emulators were compatible with my configuration; unfortunately, they are no more; I continue to receive the same issue.
88
Themes / Re: All.Net P-ras MULTI ver.3
« Last post by PenPen_loves_Rei on March 19, 2025, 10:26:48 AM »
Hi,
Could you reupload your files please  :D
89
Themes / Re: Theme Pandora Box Atract 2.1 (Update-Menu system)
« Last post by jakabasej8 on March 15, 2025, 02:56:46 AM »
Hi guys, I can't see the list of the games in the left side, https://www.rcl-group.com/erp-sistem/ do you know where is the problem? https://www.shopsy.si/Strojna-Oprema/ Thank you!
Any suggestions on what might be wrong?
90
Themes / Re: PopupInfo plug-in
« Last post by jakabasej8 on March 15, 2025, 02:53:59 AM »
Modules are not shared in the build. https://kuhinje-nemec.com/kuhinje/moderne-kuhinje/ You need to download those from the sources.  https://atelierrebul.si/ A quick google will provide you that.
Modules aren’t shared in the build, but you can easily find them by searching online.

Pages: 1 ... 7 8 [9] 10