Recent Posts

Pages: 1 ... 7 8 [9] 10
81
Themes / Re: Classic Anime & Tokusatsu (C.A.T.) JukeBox - [availabe soon]
« Last post by kent79 on February 03, 2024, 03:57:34 PM »
The final build demo is out now.  :)

https://youtu.be/gj4c5XtZggw
82
Scripting / How to transfer Added Coins to Game in the main menu
« Last post by lazenes on February 03, 2024, 11:40:19 AM »
I want to use Numpad 1 as a token eject button, but even though I press the button 1 time, it increases the value of my sayac  variable as if it was pressed more than 1. Is there a function that I can increase it only once? Then I want to add the coins from my Coin Channel on the Attract-Mode Home screen to the user's digit when the game is opened.


Code: [Select]
local sayac = 0

local lcdLeftTextCoin = fe.add_text("COIN: " + sayac, blip*0.4536, blip*0.83, blip*0.8208, blip*0.04)
lcdLeftTextCoin.set_rgb(255, 0, 3)
lcdLeftTextCoin.align = Align.Left
lcdLeftTextCoin.rotation = -12.5
lcdLeftTextCoin.font = "digital-7 (italic)"

fe.add_ticks_callback(this, "tick")

local stringkeys = "1"

local keys = {}
foreach(letter in stringkeys) {
   keys[letter.tochar()] <- false
}


function tick(tick_time){
   foreach(key, value in keys) {
      local yeniDurum = fe.get_input_state("Num" + key)
      if (yeniDurum != keys[key]) {
         sayac = sayac + 1
      }
      keys[key] = yeniDurum
   }
   lcdLeftTextCoin.msg = "COIN: " + sayac
}
83
Scripting / Re: Pop up window for Infos
« Last post by gamesmame on February 03, 2024, 04:46:28 AM »
I liked this ideia!!! "I created" this with some infos:

// Step 1: Create a surface to store information objects
local infoSurface = fe.add_surface(fe.layout.width, fe.layout.height);
infoSurface.visible = false;

// Step 2: Add game information objects to the surface
local infoText = fe.add_text("", 50, 50, infoSurface.width - 100, infoSurface.height - 100);
infoText.set_rgb(255, 255, 255);
infoText.set_font("your_font", your_font_size);

local closeButton = fe.add_text("Close", infoSurface.width - 100, infoSurface.height - 50, 100, 50);
closeButton.set_rgb(255, 0, 0);
closeButton.set_font("your_font", your_font_size);
closeButton.preserve_aspect_ratio = true;

// Step 3: Add signal handler for the custom button
local showInfoButton = fe.add_text("Show Info", 100, 100, 100, 50);
showInfoButton.set_rgb(0, 255, 0);
showInfoButton.set_font("your_font", your_font_size);

showInfoButton.add_signal("on_trigger", "toggleInfoVisibility");

// Toggle visibility function
function toggleInfoVisibility()
{
    infoSurface.visible = !infoSurface.visible;
}

// Use this function to update the information displayed on the infoText
function updateInfoText()
{
    infoText.msg = "Game Title: " + fe.game_info(Info.Title) + "\n" +
                   "Year: " + fe.game_info(Info.Year) + "\n" +
                   "Genre: " + fe.game_info(Info.Genre);
}

// Add a signal handler to update the information when a game is selected
fe.add_signal("on_game_selected", "updateInfoText");

BUT i dont know how this work exacly... some part code or almost code dont work or something its wrong  :-\
84
Themes / Re: Arcadeflow theme v 16.8 [Release] Updated 12 January2024
« Last post by jackson99 on February 01, 2024, 06:19:26 AM »
Yes. It’s stuck. Scraping metadata for a particular rom works.

Hmm not good, can you share your pref_layoutoptions file from Arcadeflow directory? You can send it to my email paolo.zago@gmail.com or come to AF discord server where it's easier do follow the debug discussion... I'll do more tests tonight by the way.
Sure. 'stanleyyeh0205" on discord uploaded pref_layoutoptions.
85
Themes / Re: Classic Anime & Tokusatsu (C.A.T.) JukeBox - [availabe soon]
« Last post by kent79 on February 01, 2024, 01:12:23 AM »
The theme is still in progress. I post the new pictures in post #1. It may be released within a week. Thanks :)
86
Themes / Re: Arcadeflow theme v 16.6 [Release] Updated 13 December 2023
« Last post by zpaolo11x on January 31, 2024, 05:35:11 AM »
Yes. It’s stuck. Scraping metadata for a particular rom works.

Hmm not good, can you share your pref_layoutoptions file from Arcadeflow directory? You can send it to my email paolo.zago@gmail.com or come to AF discord server where it's easier do follow the debug discussion... I'll do more tests tonight by the way.
87
Themes / Re: Arcadeflow theme v 16.6 [Release] Updated 13 December 2023
« Last post by jackson99 on January 31, 2024, 05:26:41 AM »

Is it stuck?
Yes. It’s stuck. Scraping metadata for a particular rom works.
88
Themes / Re: *Solved* Can't get Nevato to work in 2.6.1
« Last post by lazenes on January 30, 2024, 02:26:24 PM »
https://i.hizliresim.com/buu1yst.jpg
How to solve this problem I'm trying 2.6.0, 2.6.1 and 2.7.0 it doesn't work in any version
90
Themes / Re: Arcadeflow theme v 16.6 [Release] Updated 13 December 2023
« Last post by jackson99 on January 30, 2024, 04:19:59 AM »
May I know how to use the new ADB to only scrape metadata in ArcadeFlow?

In the scraper options you can select the metadata scraper to be "ADB Only", and then disable media scraping so that only metadata is scraped.
Pages: 1 ... 7 8 [9] 10