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

Pages: [1] 2 3 ... 54
1
Scripting / Re: shuffle module Q: regards animation
« on: Yesterday at 08:38:07 PM »
Feel free to send me an updated copy and I work off that.

2
Scripting / Re: shuffle module Q: regards animation
« on: Yesterday at 07:11:30 PM »
Some missing information. I tried to fill in the blanks. Make notice of my comments. I also know nothing about animations, so hopefully that part works. Give it a shot, but you might have to tweak it. Going to bed. Let me know how you make out. Will check in the am.

Code: [Select]
// ---------- List

class ShuffleList extends Shuffle
function select(slot) {
    slot.set_rgb (200,160,0);
  }

function deselect(slot) {
    slot.set_rgb (200,160,0); // set to another color?
}
}

local list = []
  list.push(); // add objects

local shuffleList = ShuffleList(list, "text");

// ---------- Pow

class ShufflePow extends Shuffle
function select(slot) {
slot.visible = true;
  }

function deselect(slot) {
slot.visible = false;
}
}

local pow = [];
pow.push(fe.add_image("art/icon.png", x1, fly*0.118, w1, h1));
pow.push(fe.add_image("art/icon.png", x1, fly*0.173, w1, h1));
pow.push(fe.add_image("art/icon.png", x1, fly*0.228, w1, h1));
pow.push(fe.add_image("art/icon.png", x1, fly*0.283, w1, h1));
pow.push(fe.add_image("art/icon.png", x1, fly*0.338, w1, h1));
pow.push(fe.add_image("art/icon.png", x1, fly*0.393, w1, h1));
pow.push(fe.add_image("art/icon.png", x1, fly*0.448, w1, h1));
pow.push(fe.add_image("art/icon.png", x1, fly*0.503, w1, h1));
pow.push(fe.add_image("art/icon.png", x1, fly*0.558, w1, h1));
pow.push(fe.add_image("art/icon.png", x1, fly*0.613, w1, h1));
pow.push(fe.add_image("art/icon.png", x1, fly*0.668, w1, h1));
pow.push(fe.add_image("art/icon.png", x1, fly*0.723, w1, h1));
pow.push(fe.add_image("art/icon.png", x1, fly*0.778, w1, h1));
pow.push(fe.add_image("art/icon.png", x1, fly*0.833, w1, h1));
pow.push(fe.add_image("art/icon.png", x1, fly*0.888, w1, h1));

  local powAnimation = {
  when = Transition.ToNewSelection,
  property = "scale",
  start = 1.0,
  end = size,
  time = 0500,
  }

  for (local i=0; i<pow.len(); i++) {
    pow[i].mipmap = true;
    animation.add(PropertyAnimation(pow[i], powAnimation));
  }

local shufflePow = ShufflePow(pow, "image");


3
Scripting / Re: shuffle module Q: regards animation
« on: Yesterday at 03:05:44 PM »
Your writing over the variable pow. Pow as an array and then a class. Fix that and then have your animation reference the objects stored in the array you created.

If you need further help, I can do an example later tonight when on the computer.

5
Scripting / Re: Stupid Programming Question
« on: February 08, 2019, 01:27:16 PM »
Share more of the code please.

6
Themes / Re: Square Theme Recommendation?
« on: February 06, 2019, 11:35:55 PM »
I play vertical shooters on my crt. It’s not perfect unless I rotate it vertically, but still better than lcd with shaders. Are you sure you don’t have a 4:3 crt? I never heard of a square one.

7
Themes / Re: Square Theme Recommendation?
« on: February 06, 2019, 03:22:24 AM »
What tv do you have? Are you sure it will accept a 1080x1080 input? My KV32HS500 allows dvi 1080i and 720p, component 480i and 480p. There’s no way I’m going to a high 4:3 resolution. With that being said, lower resolutions look fine.

Crt’s are awesome. You just need to figure it out.

8
Scripting / Re: Easy way of forcing Uppercase text
« on: February 04, 2019, 04:32:08 PM »
I wrote a function to "re-sanitize" titles when using magic tokens:

Code: [Select]
function getTitle (ioffset = 0) {
    // Working from the raw title, we have to cut away any extra junk:
    local _t = fe.game_info( Info.Title, ioffset );
   
    // Ignore anything after the first (, [, or /:
    local _i = null;
    _i = _t.find( "(" );
    _t = _i ? _t.slice( 0, _i ) : _t;

    _i = _t.find( "[" );
    _t = _i ? _t.slice( 0, _i ) : _t;

    _i = _t.find( "/" );
    _t = _i ? _t.slice( 0, _i ) : _t;
 
    return strip(_t).toupper();
}

split(string, "(/[");

9
Scripting / Re: Easy way of forcing Uppercase text
« on: February 04, 2019, 01:53:46 PM »
Magic function and then return toupper(string); Not hard.

11
Scripting / Re: Diving into squirrel-scripting: some questions
« on: February 03, 2019, 04:39:33 AM »
Not sure what a screen blank is.

or a console-blanking, when the screen turns off - a screensaver.
as I said I already went for the grub-option but it's not working.

RetroArch has some kind of disabling that works a charm...

What distro are you using?

12
Scripting / Re: Diving into squirrel-scripting: some questions
« on: February 02, 2019, 07:19:07 PM »
Is there a opposite method for add_x? Like remove_image and remove_artwork?

Also, I see that the base for positioning a video is top/left. Could it be that this is different for images?
When I do
Code: [Select]
fe.add_image("myImage.extension", 0, 0, layout_with/2, layout_height/2);it looks like the horizontal center is off to the left...

I'm still struggeling to disable the screen blank in AttractMode.

You can toggle visibility, opacity, change path to empty string, or possibly changing the variable (haven’t actually tried the latter, but assume it would work).

Images will stretch (default) to the dimensions provided, and be placed at the location provided. Horizontal center of the image is off to the left of the screen because that is where you placed the image. Image is placed in the top left of your layout, and is half the size of your layout. You need to change your position if you want the image centered horizontally within your layout.

Not sure what a screen blank is.

13
Scripting / Re: Anyway to Auto-generate Shuffle (plugin) List Size
« on: February 02, 2019, 01:10:39 PM »
Create a for loop based on list size. You will need to recreate the class each time your list changes.

14
General / Re: Attract Mode only displaying parent ROMs and no clone ROMs.
« on: January 31, 2019, 04:31:48 PM »
Never download a mame xml file, especially from hyperspin or unofficial binaries. Try generating one from official mame binary.

15
General / Re: Attract Mode only displaying parent ROMs and no clone ROMs.
« on: January 31, 2019, 01:24:02 PM »
Share your attract.cfg file. Perhaps you have a filter for no clones?

Pages: [1] 2 3 ... 54