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 [4] 5 6 ... 17
46
Themes / Re: At-The-Arcade Multi-Cab [Released]
« on: February 03, 2021, 09:37:28 AM »
 
Quote
now I need to concentrate on real world things

Terrible.

I'll take a look later tonight.

47
Themes / Re: Handheld Desktop Layouts
« on: February 02, 2021, 11:38:16 PM »
One final one. If anyone wants any other versions, let me know. Until then, this is the last handheld I'm working on for now.

Desktop Sega Gamegear

This layout has  optional boxart, wheel logos, GPK cards and scanlines

    Snap: video snaps
    Wheel: wheel logos 
    Boxart: boxart 

https://github.com/mahuti/Gamegear

48
Themes / Re: robospin Conveyer Wheel help
« on: February 02, 2021, 07:03:46 PM »
Hard to notice the file... its right above the pic.

I didn't use conveyor mostly because I don't have a code sample handy that uses it. And carrier is nice and smooth.

49
Themes / Re: Nostalgic Bedroom By Pademonium
« on: February 02, 2021, 07:00:40 PM »
".nuts or it didn't happen"

Looks cool.

50
Themes / Re: robospin Conveyer Wheel help
« on: February 02, 2021, 03:10:40 PM »
I made a very simple version of this to remove (most) of the extra stuff.

I used my module Pos (positioning) module and a slightly modified Carrier module (by Oomek) that basically just adds the capability to use wheel logos instead of snaps.

Carrier does all of the work with the wheel stuff at top. All of the scale.x, scale.y, scale.width, etc just made it quicker for me to position everything for an example. You can swap that out with hard coded values if it's easier.

51
Themes / Re: At-The-Arcade Multi-Cab [Relased]
« on: February 02, 2021, 11:32:13 AM »
Quote
could you pass me the code so I have the bezels for all the games?
Sure. Code below

That said... Yaron, do you have any interest in looking into the horizontal bezel thing? Or would you want me to? Or does your latest version handle horizontal bezels already? I haven't had a chance to look

This is the simple version that just looks for the snap width to height ratio. It doesn't look for cfg files or anything. I tried to boil this down to the basics... this code is untested as I cut it out and simplified it, but it should be pretty close

Code: [Select]
local bezel = fe.add_artwork("bezel", 0,0, 640, 480))
bezel.trigger = Transition.EndNavigation

local snap_scaling_finished = false

//change x/y values as neeeded
local h_snap_x = 10
local h_snap_y = 20
local v_snap_x = 20
local v_snap_y = 10
   
function artwork_transition( ttype, var, ttime )
{
    if ( ttype == Transition.EndNavigation || ttype == Transition.StartLayout || ttype==Transition.ToNewList || ttype==Transition.FromGame )
    {
        if ( !snap_scaling_finished )
        {
            // check if vertical
            if (snap.subimg_width !=0 && snap.subimg_height !=0)
            {
                if (snap.subimg_width/snap.subimg_height < 1)
                {
                    // vertical
                    snap.x= v_snap_x
                    snap.y= v_snap_y

                    snap_scaling_finished = true
                    return true // redraw
                }
                else
                {
                    // horizontal
                    snap.x = h_snap_x
                    snap.y = h_snap_y
                    snap_scaling_finished = true
                    return true // redraw
                }
            }
            else
            {
                // only happens if there's no snap video or for some reason can't get subimg values
                snap_scaling_finished = true
                return false
            }
        }
        return false
   }
   if (ttype== Transition.FromOldSelection)
   {
        if (snap_scaling_finished)
        {
            // set back to defaults
            snap.x = h_snap_x
            snap.y = h_snap_y
            snap_scaling_finished = false
            return true // redraw
        }
   }
   return false
}
fe.add_transition_callback("artwork_transition")

52
Themes / Re: At-The-Arcade Multi-Cab [Relased]
« on: February 02, 2021, 02:02:33 AM »
Quote
Right I think so too, but there would be no way to resize videos to automatically fit you have bezels?   

If one knows the inside dimensions of the bezels its possible. I have code for this already that I wrote for a layout i'm working on that uses RetroArch bezels and their CFG files to correctly reposition and scale videos to fit the bezels, regardless of differing aspect or xy placement values

If its just a question of using one size for horizontal and one for vertical then it's much simpler. In that case one just has to look at the snap.subimg_width to height ratio to determine the aspect and then adjust positioning and scaling in a transition callback.

Yaron has my WIP layout already, and he can feel free to use whatever bits of that code that he needs. I owe him for all of the shader code of his that I've borrowed.

53
Themes / Re: Handheld Desktop Themes
« on: February 02, 2021, 01:43:15 AM »
Desktop Atari Lynx

This layout has a selectable version of the original or newer Atari Lynx, optional boxart, wheel logos and scanlines

    Snap: video snaps from emumovies
    Wheel: wheel logos from emumovies
    Boxart: boxart from emumovies

https://github.com/mahuti/Atari-Lynx

54
Themes / Re: iorampage. Theme for Attract-Mode 4:3.
« on: February 01, 2021, 03:48:02 PM »
I just saw this. Genius

55
Scripting / Re: Pos Positioning Module
« on: February 01, 2021, 11:22:31 AM »
Is there another way to look at code? In any case... it doesn't get much more boring than scaling and positioning.

56
Scripting / Re: Pos Positioning Module
« on: February 01, 2021, 01:07:23 AM »
I've updated the module to now include a few more methods.

horizontal_space_between(object,object2=null,padding=0)
gets the horizontal space between 2 objects. Useful for cramming something in between them.  This can be used, for instance, to fill a gap between an object and the edge of the screen, or find the space between 2 things

vertical_space_between(object,object2=null,padding=0)
gets the vertical space between 2 objects. Useful for cramming something in between them.

get_object_xy2 (type, object) 
gets the right or bottom x/y value. Sometimes known as x2 or y2

In the screenshot, i used the vertical_space_between method to set the height of the logo to fit between the instruction card and the bottom of the screen with 10 (scaled) pixels of padding above and below
I used the x method to center the wheel against the instruction card
I used the y method to set the TOP of the wheel 20 pixels (scaled) below the BOTTOM of the instructions

Code: [Select]
            wheel.x = pos.x(0,"center",wheel,instructions_bg,"center")
            wheel.y = pos.y(20,"top",wheel, instructions_bg,"bottom") 
            wheel.height = pos.vertical_space_between(instructions_bg,null,10)

57
Themes / Boardwalk-NeoGeo A NeoGeo Themed Layout
« on: February 01, 2021, 12:31:10 AM »
https://github.com/mahuti/Boardwalk-Neo

Boardwalk-Neo
Neo Geo themed

This is a basic layout styled after NeoGeo look and feel.

Requires:
- File module
- Preserve Art module

Uses:
- snap: video snaps ideally
- instructions: 2d instruction files  (recommended: https://emumovies.com/files/file/1628-neo-geo-mvs-marquee-pack-mini/)
- wheel: wheel logos
- marquee: neogeo marquees (recommended: https://emumovies.com/files/file/1633-neo-geo-mvs-marquee-pack/)


Features:
- Selectable or randomized T-Molding
- 3 Selectable or randomized Bezels
- Randomized backgrounds (add your own to the backgrounds folder and they'll show up as well)
- Themes is scalable to any size
- Does not use a spinning wheel (but does use wheel logos)


This uses my Pos (positioning) module, so it works at most any size

58
Themes / Re: Verted -- Layout for Vertical Cabinets
« on: January 31, 2021, 06:42:53 PM »
What information do you want to see you mentioned Emulator Name and Favorite Status... and Etc. What is included in "Etc"  ;D

59
Themes / Re: At-The-Arcade Multi-Cab [Relased]
« on: January 30, 2021, 07:29:45 PM »
With or without those... yours is better in any case  ;D ;D ;D

60
Themes / Re: Verted -- Layout for Vertical Cabinets
« on: January 30, 2021, 06:24:40 PM »
I'll take a look.

Pages: 1 2 3 [4] 5 6 ... 17