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

Pages: 1 ... 29 30 [31] 32 33 ... 76
451
Scripting / Re: Shuffle v2.0.0 - major update
« on: June 10, 2019, 02:08:04 PM »
ok thanks,,,  ill wait for it,, not shure why i cant get it...seem strait up...
hmm not shure...but i look forward to using it and learning,,,,

thanks again...

452
Scripting / Re: Shuffle v2.0.0 - major update
« on: June 10, 2019, 10:55:05 AM »
any help..
i get an error on last line, last column

Code: [Select]
C:\auraAM\layouts/bionic/scripts/shuffle-list.nut line = (90) column = (1) : error expression expected
Script Error in C:\auraAM\layouts/bionic/scripts/shuffle-list.nut - expression expected

ohh.. here is the code...
Code: [Select]
local flx = fe.layout.width;
local fly = fe.layout.height;
local flw = fe.layout.width;
local flh = fe.layout.height;


fe.load_module("shuffle");

local x = flx*0.054
##        fly*
local w = flw*0.305
local h = flh*0.120

local x1 = flx*0.000
##        fly*
local w1 = flw*0.490
local h1 = flh*0.130

// Extend the Shuffle class
class ShuffleList extends Shuffle {
function refresh() {
base.refresh();
}

// Overwrite the _refreshSelected function
function _refreshSelected(slot) {
slot.font="BebasNeue Regular.ttf";

// Overwrite the _refreshDeselected function
function _refreshDeselected(slot) {
slot.font="BebasNeue Regular.ttf";

local list = [];
list.push(fe.add_text("[Title]", x, fly*0.080, w, h));
list.push(fe.add_text("[Title]", x, fly*0.145, w, h));
list.push(fe.add_text("[Title]", x, fly*0.210, w, h));
list.push(fe.add_text("[Title]", x, fly*0.275, w, h));
list.push(fe.add_text("[Title]", x, fly*0.340, w, h));
list.push(fe.add_text("[Title]", x, fly*0.405, w, h));
list.push(fe.add_text("[Title]", x, fly*0.470, w, h));
list.push(fe.add_text("[Title]", x, fly*0.535, w, h));
list.push(fe.add_text("[Title]", x, fly*0.600, w, h));
list.push(fe.add_text("[Title]", x, fly*0.665, w, h));
list.push(fe.add_text("[Title]", x, fly*0.730, w, h));
list.push(fe.add_text("[Title]", x, fly*0.795, w, h));


/////////////////////////////////////////////////////////

//Shufffle Pow Extend the Shuffle class
class ShufflePow extends Shuffle {
function refresh() {
base.refresh();
}

// Overwrite the _refreshSelected function
function _refreshSelected(slot) {
slot.visible = true;
}

// Overwrite the _refreshDeselected function
function _refreshDeselected(slot) {
slot.visible = false;
}
}

local pow = [];
pow.push(fe.add_image("artwork/favourite-off.png", x1, fly*0.090, w1, h1));
pow.push(fe.add_image("artwork/favourite-off.png", x1, fly*0.156, w1, h1));
pow.push(fe.add_image("artwork/favourite-off.png", x1, fly*0.222, w1, h1));
pow.push(fe.add_image("artwork/favourite-off.png", x1, fly*0.286, w1, h1));
pow.push(fe.add_image("artwork/favourite-off.png", x1, fly*0.352, w1, h1));
pow.push(fe.add_image("artwork/favourite-off.png", x1, fly*0.416, w1, h1));
pow.push(fe.add_image("artwork/favourite-off.png", x1, fly*0.482, w1, h1));
pow.push(fe.add_image("artwork/favourite-off.png", x1, fly*0.546, w1, h1));
pow.push(fe.add_image("artwork/favourite-off.png", x1, fly*0.612, w1, h1));
pow.push(fe.add_image("artwork/favourite-off.png", x1, fly*0.678, w1, h1));
pow.push(fe.add_image("artwork/favourite-off.png", x1, fly*0.744, w1, h1));
pow.push(fe.add_image("artwork/favourite-off.png", x1, fly*0.810, w1, h1));



// Create an instance of the extended class
local list = ShuffleList({ slots=list });
local pow = ShufflePow({ slots=pow});

453
Scripting / Re: Shuffle v2.0.0 - major update
« on: June 09, 2019, 11:47:50 AM »
So with the with the new script
Does this alow one to use a favorits
Script and if so,  could you show how..
Thanks...

454
Scripting / Re: shuffle problem
« on: June 03, 2019, 02:58:37 PM »
sweet....thanks alot...bro


455
Scripting / Re: shuffle problem
« on: June 03, 2019, 06:19:40 AM »
OK to be moor exact this is what it is doing after setting controls in AM

Configure/Controls  Previous Letter  "left"
Configure/Controls  Next Letter "right"


here is the comparison of both modules

new module letter skiping wrong
walks off...
https://www.youtube.com/watch?v=12l5BgvEYvA&feature=youtu.be

old module letter skiping right
stays put....
https://www.youtube.com/watch?v=QEzKksclheI&feature=youtu.be

456
good stuff, but i think when re-dream adds win ce,  probably will  be better .
Not a fortuneteller,  just my 2-cents    :-X

granite it wont be a core for reto-arc

457
Scripting / shuffle problem
« on: June 02, 2019, 01:57:26 PM »
im dealing with an ishu with the shuffle module...

when using the new shuffle, and letter skipping alphabet,,,   it is moving up & down
very undesirable.

so iv just taken the old shuffle module and named it "slotmate"
and add it in new theme so there is no conflict to the new shuffle.
ie: fe.load_module("slotmate");


the old shuffle module is working fine not moving..around like new one


any chance new shuffle can be fixed? in the latest shuffle module :)

iv tried to add vid of it but utube not uploading at the moment..hope this make scene

458
General / Re: HLSL in MAME 0.209 when using Attract-Mode
« on: June 02, 2019, 05:50:12 AM »
make shure, both ini, are edited for ...say mameui & mame

ini > presets >mame.ini


make shure am is pointing to mame.exe not the UI exe

good luck

459
Themes / Re: [video preview] BIONIC theme (vertical theme)
« on: May 31, 2019, 06:26:37 AM »
agreed :)

460
Themes / Re: [video preview] BIONIC theme (vertical theme)
« on: May 30, 2019, 05:49:09 PM »
well, hear is the update....  iv got favorites working,  for the regular list..

but cant figure out how to make it work with the shuffle module..its holding thing up :-[

got kind of a tip, from the maker..  but no successes on my end..

if anyone thinks that they could code it , please let me know... i dont know anuff abought it..

but i have a good  starting point though..

till this is remedied ....im at a stall with the theme....sorry..

461
Scripting / Re: was music loop crash ever solved?" solved
« on: May 25, 2019, 05:23:44 PM »
i new i  saw it somewere....

solved..... thought it would be nice to just be fixed

Code: [Select]
// [fe.sound.loop = true;] cause AM crash. I don't know the reason exactly. but, It works well as Plan B.
function playSound( path, loop=false ) {
local sound = fe.add_sound( path, true );
if( ! loop && ! sound.playing ) {
sound.playing = true;
}
if( loop ) {
fe.add_ticks_callback( this, "loopSound" )
}
function loopSound( ttime ) {
if( ! sound.playing ) {
sound.playing = true;
}
}
}

462
Scripting / was music loop crash ever solved?" solved
« on: May 25, 2019, 05:19:01 PM »
was music loop crash ever solved?

cant seem to find,  any info...  but it happens when using..

kind of old topic...but still revalant :-\

after song ends...
Code: [Select]
local mysong = fe.add_sound("music/music-3.mp3");
mysong.loop = true;
mysong.playing = true;

463
Scripting / Re: Q: a bought, adding favorites
« on: May 21, 2019, 07:22:48 AM »

for anyone who wants,    this is the easiest code i could find,,,,  tested and working ;D

taken from,  theme "Dal1980 v1.0 Hello-Nintendo"  thanks

Code: [Select]
local favHolder = fe.add_image("parts/favourite-off.png", 430, 28, 60, 56);

function getFavs(index_offset) {
    if(fe.game_info( Info.Favourite, 0 ) == "1") return "parts/favourite-on.png";
    else return  "parts/favourite-off.png";
}

fe.add_transition_callback( "update_my_list" );
function update_my_list( ttype, var, ttime ) {
    favHolder.file_name = getFavs(0);
    if(ttype == Transition.StartLayout){
        drawNextPage(0);
        favHolder.file_name = getFavs(0);
    }
    else if(ttype == Transition.EndNavigation){
        if(resetDrawGrid) drawNextPage(0);
        favHolder.file_name = getFavs(0);
    }
    return false;
}


464
Scripting / Re: Q: a bought, adding favorites
« on: May 20, 2019, 09:58:40 AM »
well till,  some one can show an simpler method,  im going to be borring this code from

arcadebliss cab

Code: [Select]
</ label="Favorite Icon Type", help="Show which favorite icon should be should on non favorite filters", options="NONE,SOLID,WIREFRAME", order=10 />
favicon="SOLID";

local favIconType="images/favorites/favorite-solid.png";
switch (my_config["favicon"])
{
case "NONE":
favIconType="images/favorites/favorite-none.png";
break;
case "SOLID":
favIconType="images/favorites/favorite-solid.png"
break;
case "WIREFRAME":
favIconType="images/favorites/favorite-wireframe.png"
break;

}
local fav = sur.add_image(favIconType,fi[0],fi[1],fi[2],fi[3]);
//local fav = sur.add_image(favIconType,GAMEITEMWIDTH-19,GAMEITEMHEIGHT-20,16,16);
fav.visible = false;



465
Scripting / Q: a bought, adding favorites
« on: May 20, 2019, 09:38:54 AM »
looking for some direction, on the easiest way to add "favorites "   into a theme

i have never had them in a theme before...  where say like selecting and un-selecting
with an icon that shows up,,,  thanks anyone..

ok i see their is an "add/remove favorite" under controls  to assign to key or button
but how is this linked to an image to show or hide?

Pages: 1 ... 29 30 [31] 32 33 ... 76