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

Pages: [1] 2 3 ... 17

Take a look at that plug-in. You can find similar examples of what you  want to do in it.

Also, I think Patricio is visiting his family in Argentina right now. Might be more active when he returns.

General / MOVED: help game boy advance
« on: March 01, 2021, 02:45:21 PM »

Emulators / Re: help game boy advance
« on: March 01, 2021, 02:45:04 PM »
I would advise asking the VBA forums.

Emulators / Re: help game boy advance
« on: February 28, 2021, 03:24:38 PM »
Does it work if you launch it without Attractmode?

General / MOVED: attract mode openbor
« on: February 26, 2021, 12:14:09 AM »

General / MOVED: help with Wii u loadiine game
« on: February 26, 2021, 12:11:58 AM »

Emulators / Re: filters advmame ?
« on: February 25, 2021, 11:57:44 PM »
You may want to ask the question on the advmame message boards:

Emulators / Re: filters advmame ?
« on: February 25, 2021, 11:50:56 PM »
I don't think that Advmame has support for shaders. So it would not be possible.

Scripting / Re: Pos Positioning Module
« on: February 25, 2021, 07:29:37 PM »
I just added a nearest_neighbor function for relatively scaling bitmap images with their edges intact.

Code: [Select]
local digdug = fe.add_image("sprites.png", 0,0)

Scripting / Re: Pos Positioning Module
« on: February 21, 2021, 04:25:51 PM »
To calculate scaling values... it doesn't need anything but a number. To factor in relative sizes and positions it needs an object with a width,, height, x and y positions... which can be text, image, surface, artwork, etc. At its most basic it is just a number converter. If objects are passed in, it can greatly simplify relative and dynamic sizing and scaling

General / Re: [HELP] Function Switch Case
« on: February 20, 2021, 06:53:36 PM »
When the display is changed, the layout is loaded/reloaded (if I recall correctly). You can use the name of the display to load a graphic with the same name as the display. In this example a display called  "Arcade" would load "Arcade.png", if named "Nintendo Entertainment System" then it would load "Nintendo Entertainment System.png".

Code: [Select]
local display =
local display_background = fe.add_image(display + ".png" , 0, 0, fe.layout.width, fe.layout.height)

function on_signal( sig )
    switch ( sig )
        case "up":
            fe.signal( "prev_display" );
            return true;

        case "down":
            fe.signal( "next_display" );
            return true;
    return false;
fe.add_signal_handler(this, "on_signal");

General / Re: list copied to romlist but the number is not displayed.
« on: February 20, 2021, 06:36:54 PM »
Create an emulator in that second copy of attract mode. Generate a list in the second copy of attractmode. Copy your existing list over with the same name as the emulator.


Code: [Select]

General / Re: rom in subfolder?
« on: February 20, 2021, 06:29:56 PM »
What command would you use to launch the rom directly in advmame?

C:\arcade\advmame.exe [arguments/romname .... whatever]

Scripting / Re: Pos Positioning Module
« on: February 20, 2021, 02:31:21 PM »
if it was possible to position elements like an image files like in texts with ".centre" then making fluid layouts would be  super easy.

This does that. This makes relative positioning to both the page and other objects simple.

Code: [Select]
local  posData =  {base_width = 1920,  base_height = 1080,  layout_width = fe.layout.width, layout_height = fe.layout.height, scale= "scale" }
local scale = Pos(posData)

local myimage = fe.add_image("image1.png", 0,0, scale.width(500), scale.height(400))
local secondimage = fe.add_image("image2.png", 0,0, scale.width(400), scale.height(300))

myimage.x = scale.x(0,"center") // position left side to center of page
myimage.x = scale.x(0,"center",myimage) // center image on page
myimage.x = scale.x(0,"center",myimage, second_image, "center") // center against the center of other element

myimage.x = scale.x(0,"center", myimage, second_image, "left") // center against the left edge of other element

myimage.x = scale.x(-300,"center", myimage, second_image, "right" ) // center against the right edge of other element, then move 300px to the left of that
myimage.x = scale.x(0,"right",myimage,second_image,"left") // align the right edge of the image to the left edge of the second image

The scaling part of this module is quite useful to me, but its the ability to relatively position against other elements and the page that really makes my life easier. For instance, I often place the snap image and then align everything else on the page against that snap. So if i change the x/y position for that snap for some reason, everything else is repositioned as well.

Themes / Re: anyone get mamewah themes working?
« on: February 20, 2021, 06:41:33 AM »
Good to hear. I went through the same process a handful of years ago. So how did your theme turn out?

Pages: [1] 2 3 ... 17