Recent Posts

Pages: 1 ... 8 9 [10]
Themes / Re: Arcadeflow theme v 4.4 [Release] Updated 9 May 2019
« Last post by zpaolo11x on May 13, 2019, 05:49:52 AM »
A question for people using Arcadeflow as a console layout... sooner or later I'll implement a "boxart" version of the theme, I'm sure, but since then I'm tweaking it to fit console games better.

I need a way to sense if the current system is an arcade, a console or an handheld. My idea was to use the "System" field in the emulator setting. Is it feasible or how do you use that?

The idea is that if the System field contains "Arcade" then the theme will work as usual, if it contains "Console" it will sense the orientation of the screen from the snapshots (Vectrex I didn't forget about you) and adapt some parts of the UI, if it contains "Handheld" it will stop correcting the aspect-ratio of the screenshot since handhelds usually have square pixels.
Scripting / Re: Know the width of a listbox item when using magic tokens?
« Last post by keilmillerjr on May 13, 2019, 03:29:02 AM »
Code: [Select]
// text
local surf = fe.addSurface(flw/2, fly/2);
  surf.x = flw/2-surf.width/2;
  surf.y = fly/2-surf.height/2;
local text = surf.add_text("[Title]", 0, 0, surf.width, surf.height/10);
  text.margin = 0;

// probeText
local probeText = fe.fe.add_text("", 0, 0, flw, text.height); // Must be in layout coordinates, height within a surface might not work
  probeText.visibile = false;
  probeText.margin = 0;

// transitions
function transitions(ttype, var, ttime) {
  if (ttype == "Transition.ToNewList“) {
    probeText = text.msg;
    text.width = probeText.msg_width;

I got this to work in my picknmix layout that I will try to release today. To save explanation, or posting a full layout, I tried to create a small example of what worked. Untested. Will test another time. Very tired. Work schedule has me messed up all the time now. See video to compare platform text (fixed) and filter text (normal msg_width and no margin applied).
Themes / Re: Arcadeflow theme v 4.4 [Release] Updated 9 May 2019
« Last post by zpaolo11x on May 13, 2019, 01:50:15 AM »
The snapshots hack is working very good as you can see in the print, thx again. :) You can also notice that the theme is already picking info automatically from the xml list

In my snes9x setup, how do I tell AM that it has to read the xml list file? And how do I generate it?
Scripting / Re: Know the width of a listbox item when using magic tokens?
« Last post by keilmillerjr on May 12, 2019, 10:20:37 PM »
Revival of an old thread to help others. I was having the same exact issue, finding a text objects length in layout coordinates. Using a transition to dynamically set something similar to text.width = text.msg_width was cutting off characters, and would get smaller and smaller with each transition until only 1 letter of the message was visible.

The following resolved the cutting down size issue, but would consistently be noticbly larger than the text width. I tried multiplying it by a factor since I was using a monospace font, but results were inconsistent.

Code: [Select]
Then I figured it out. Results were accurate when the margin is set to zero. If you require a margin, perhaps you could set a default value of -1, store the calculated margin value in a different variable, change the margin back to 0, and then add the stored margin value twice to your message width.? Otherwise, perhaps create another text object, hide it, and find it’s margin size?

Code: [Select]
text.margin = 0;
text.width = msg_width;

Hopefully this is helpful to others struggling like I was.

Edit: NOPE. It still doesn’t work and I need to go to bed. It only has correct width for the start layout. Each transition after shortens it. Maybe I try the copy method I suggested another time. I need sleep.
Emulators / Re: Various emulator settings
« Last post by hermine.potter on May 12, 2019, 10:08:50 PM »
See post #21
solution of xbs : mame
Scripting / Re: aspect ratio, Q:
« Last post by jedione on May 12, 2019, 05:22:25 PM »
if it were done or resized in 4:3,,  witch it is not ,,,,cool beans case closed, watson
Scripting / Re: aspect ratio, Q:
« Last post by jedione on May 12, 2019, 05:19:55 PM »

working..and off...

Scripting / Re: aspect ratio, Q:
« Last post by jedione on May 12, 2019, 05:10:08 PM »
ok thanks bo....... good looking out,

fe.layout.preserve_aspect_ratio=true;   ohh ya,, yes for some reason for got that , thought use it all the time.... peace  and thank you..
Scripting / Re: aspect ratio, Q:
« Last post by keilmillerjr on May 12, 2019, 05:04:57 PM »

it would be great if you could elaborate on  "My helpers module has an aspect function."

i have used the module to load your theme,   but not 100% on what its doing, that AM lacks ,,because
imlost when it comes to this topic,,,   though i did look up an aspect to pixel ratio,,   that might help

in short would like to make some themes just for vertical...and want to go abought it in the best way posible...ya know

how would you go abought it,,  to still be user friendley,, cross the board?

I just re-read your original question. Kids and wife screaming, so I mis-read. I would think that your original method would work. Perhaps add
Code: [Select]

My suggestion I recommended was because I mis-read and thought you wanted to utilize multiple aspect ratios. My helpers module, I wrote the following method that pertains to this scenario. Of course, you could do the math yourself, but thats why I wrote a function. I use it so my themes look fine in native aspect and can force a 4x3 window, as well as certain design elements maintaining a certain aspect ratio.

Code: [Select]
// Match Aspect Ratio
matchAspect(aw, ah, dimension, param, obj=null)
Themes / Re: [WIP] BIONIC theme - a new approach to vertical theme
« Last post by jedione on May 12, 2019, 05:01:48 PM »
"It looks like a better non-branded version of pandora box. 8)"

well ya..  but needs all new coding and images,,,, like the idea and  and where you have gone with it... :)
Pages: 1 ... 8 9 [10]