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

Pages: [1] 2 3 ... 16
1
Scripting / Re: Animate a Suffle List
« on: July 04, 2018, 05:43:31 AM »
Change for text and avoid "width''  ;D

Code: [Select]
class ShufflePow extends Shuffle
 {

   function select(slot)
 {
slot.visible = true;
}

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

}


::OBJECTS1 <- {
pow = ShufflePow(5, "artwork", "flyer2")
}

OBJECTS1.pow.slots[0].set_pos(flx*0.018, flh*0.495, flw*0.19, flh*0.45);

//Slot 0 Animation
fe.add_transition_callback( "first_transitions" );
function first_transitions( ttype, var, ttime ) {
 switch ( ttype )
 {
 
  case Transition.StartLayout:
  case Transition.ToNewList:
  case Transition.ToNewSelection:
   
  local pow0_alpha_onload = {
    property = "alpha",
    start = 55,
    end = 255,
    time = 200,
    tween = Tween.Expo,
    } 
   
  animation.add( PropertyAnimation ( OBJECTS1.pow.slots[0], pow0_alpha_onload ) );
   
    local pow0_width_onload = {
    property = "width",
    start = flw*0.005,
    end = flw*0.244,
    time = 400,
    tween = Tween.Expo,
    }
   
  animation.add( PropertyAnimation ( OBJECTS1.pow.slots[0], pow0_width_onload ) );

  break;
 }
 return false;
 }


OBJECTS1.pow.slots[1].set_pos(flx*0.148, flh*0.06, flw*0.9, flh*0.45);
local pow1_alpha = {
    when = Transition.ToNewSelection, property = "alpha", start = 55, end = 255, time = 200, tween = Tween.Expo,
 }
 animation.add( PropertyAnimation( OBJECTS1.pow.slots[1], pow1_alpha ) );
 
local pow1_width = {
    when = Transition.ToNewSelection, property = "width", start = flw*0.005, end = flw*0.244, time = 500, tween = Tween.Expo,
 }
 animation.add( PropertyAnimation( OBJECTS1.pow.slots[1], pow1_width ) );
 
 

OBJECTS1.pow.slots[2].set_pos(flx*0.348, flh*0.06, flw*0.19, flh*0.45);
local pow2_alpha = {
    when = Transition.ToNewSelection, property = "alpha", start = 55, end = 255, time = 200, tween = Tween.Expo,
 }
 animation.add( PropertyAnimation( OBJECTS1.pow.slots[2], pow2_alpha ) );
 
local pow2_width = {
    when = Transition.ToNewSelection, property = "width", start = flw*0.005, end = flw*0.244, time = 500, tween = Tween.Expo,
 }
 animation.add( PropertyAnimation( OBJECTS1.pow.slots[2], pow2_width ) );
 
 

OBJECTS1.pow.slots[3].set_pos(flx*0.548, flh*0.06, flw*0.19, flh*0.45);
local pow3_alpha = {
    when = Transition.ToNewSelection, property = "alpha", start = 55, end = 255, time = 200, tween = Tween.Expo,
 }
 animation.add( PropertyAnimation( OBJECTS1.pow.slots[3], pow3_alpha ) );
 
local pow3_width = {
    when = Transition.ToNewSelection, property = "width", start = flw*0.005, end = flw*0.244, time = 500, tween = Tween.Expo,
 }
 animation.add( PropertyAnimation( OBJECTS1.pow.slots[3], pow3_width ) );
 
 

OBJECTS1.pow.slots[4].set_pos(flx*0.748, flh*0.06, flw*0.19, flh*0.45);
local pow4_alpha = {
    when = Transition.ToNewSelection, property = "alpha", start = 55, end = 255, time = 200, tween = Tween.Expo,
 }
 animation.add( PropertyAnimation( OBJECTS1.pow.slots[4], pow4_alpha ) );
 
local pow4_width = {
    when = Transition.ToNewSelection, property = "width", start = flw*0.005, end = flw*0.244, time = 500, tween = Tween.Expo,
 }
 animation.add( PropertyAnimation( OBJECTS1.pow.slots[4], pow4_width ) );

2
Any chance to upload a basic working image with all the stuff setup ready?
I mean not roms but all your custom additions.

Ok, I will try to best draft it  :)
Awesome , thanks!

3
Themes / Re: Neo Geo Mini Theme
« on: June 19, 2018, 04:08:27 AM »
I´m working (with Oomeks help ;D) on my own version based on Verion`s.
I have to make a sepparate post.



https://www.youtube.com/watch?v=PrvltBXSXzY

4
Any chance to upload a basic working image with all the stuff setup ready?
I mean not roms but all your custom additions.

5
Scripting / Re: Favourite Icon doesn´t work
« on: June 17, 2018, 03:10:12 AM »
If all you want to do is toggle an image, use a magic function and case not favorite return an empty string for image url.
Example please :)

I`ve tried this but doesnt work for me

http://forum.attractmode.org/index.php?topic=670.0

6
Themes / Re: Put a random icon on the screen. (SOLVED)
« on: June 16, 2018, 12:38:57 PM »
Another simple solution is put some "random" jpg´s into the "scrapper/[sytem]" folder.
I mean , you have a "NES" layou.nut with something like

fe_add.artwork = icon...

Then just create a folder "scrapper/nes/icon"
Inside 1.jpg , 2.jpg , 3.jpg or wathever you want  :D

Thanks, a great idea...  :D  but i do not use the scrapper for nothing at all  ::)

Don`t need to use it , just create the folder structure and put your media inside :)

7
Scripting / Favourite Icon doesn´t work
« on: June 16, 2018, 12:18:51 PM »
Tried to show a "favorite" icon on my layout.

Code: [Select]
::OBJECTS <- {
fav = fe.add_image( "favorite.png", 5, 55, 60, 60 ),
}

OBJECTS.fav.visible = false;

function show_favorite( ttype, var, ttime ) {
 switch ( ttype ) {
  case Transition.ToNewList:
  case Transition.ToNewSelection:
    local inf_fav=fe.game_info(Info.Favourite);
if (inf_fav=="1")
       OBJECTS.fav.visible  = true;
    else
           OBJECTS.fav.visible  = false;
    break;
  }
 return false;
}

fe.add_transition_callback( "show_favorite" );

The thing is the icon only shows "on layout start" and if I change the selected game , shows if I have the previous or the next game selected.
I mean . if I have three games, 1, 2, 3
2 is tag as favourite
If I move to 3 , the favourite icon is showed , same with 1 , but not with 2  :(
Only if I start the f.e. with the 2 game previously selected.

8
Scripting / Re: New feature: vertical text alignment
« on: June 16, 2018, 10:19:18 AM »
Thanks for the work , I love this new feature.
I have tried and I dont know if something is going wrong.



Super Sidekicks 2 , Super Sidekicks 3 the word "Super" has dissapeard.

9
One guy helped me to create a ".sh" to automaticatly add the filters.
I mean , just open your romlist.txt with libreoffice for example.
Create a .txt with all the "filters" , should be named "filtros_duplicados.txt"

Code: [Select]
Action
Action
Action
Educational
Educational
Educational
Educational
Educational
Flying
Flying
Flying
Flying
Flying
Flying
Flying

Then create the .sh and execute:

Code: [Select]
cat -n filtros_duplicados.txt |
sort -u -k2,7 |
sort -n |
sed 's/.*\t/    /;s/\([0-9]\{4\}\).*/\1/' >> filtros.txt


sed -i 's/\r//' filtros.txt
while read LINE;
do
{
  echo '  filter               '$LINE'' >> filtros2.txt
  echo '    rule                 Category contains '$LINE'' >> filtros2.txt
}
done < filtros.txt

A new "filtros2.txt" will be created with all your filters without duplicates.

Maybe I have to create an step by step detayled tutorial , but I think is quite simple  ;)

10
Themes / Re: Put a random icon on the screen. (SOLVED)
« on: June 15, 2018, 08:58:26 AM »
Another simple solution is put some "random" jpg´s into the "scrapper/[sytem]" folder.
I mean , you have a "NES" layou.nut with something like

fe_add.artwork = icon...

Then just create a folder "scrapper/nes/icon"
Inside 1.jpg , 2.jpg , 3.jpg or wathever you want  :D

11
Themes / Re: NEO GEO mini RED MVS edition
« on: June 10, 2018, 11:06:30 AM »
You inspired me , I create an alternate version for the "conveyour helper module"


12
General / Re: Help to compile attract-mode in windows 10 64bits
« on: June 07, 2018, 07:56:14 AM »
Compiling AttractMode on Windows requires the use of many .dll files once complete. Because of this I don't think many people do it. The recommend method is to cross compile using Linux since it a cleaner build that doesn't require outside dependencies.

https://github.com/mickelson/attract/blob/v2.3.0/Compile.md

I know this doesn't answer your question but can explain the lack of response. I think I've seen currently compiled Windows versions of AttractMode on Discord which might be a better option if you can't compile in Linux.



So... any step by step "for dummies" on linux?
I mean I´ve tried cross-compile too but set an mxe enviroment is not like "sudo apt-get install..."

http://forum.attractmode.org/index.php?topic=1061.msg7821#msg7821

13
Scripting / Re: Wrong code
« on: June 06, 2018, 09:03:46 AM »

14
Scripting / Problems Login
« on: June 04, 2018, 07:29:15 AM »
I´m having problems with the login page and when I try to create a new post , redirects me to a blank page.
Some other users are having the same problem.

Sorry for posting here but the "wiki" and "bug reports" section.

15
Scripting / Re: Wrong code
« on: June 03, 2018, 10:56:41 AM »
I've writted two "" , but maybe this will work even with "&"

Quote
ocal a = "I'm a wonderful string\n"
// has a newline at the end of the string
local x = @"I'm a verbatim string\n"
// the \n is copied in the string same as \\n in a regular string "I'm a verbatim string\n"

So:

Code: [Select]
//box_system
local x = @"Watch & Game"

function box_system(ttype, var, ttime)
{
    switch ( ttype )
    {
        case Transition.ToNewList:
        case Transition.StartLayout:
//case Transition.ToNewSelection:
//case Transition.FromOldSelection:
    switch ( fe.list.name )
            {             
case "x":
                local artwork_image = fe.add_image("hh/[Emulator].png", flx*0.52, fly*0.4,  flw*0.260, flh*0.462);
                artwork_image.preserve_aspect_ratio = true;
    break;
        }
    }

}

fe.add_transition_callback("box_system" );

Pages: [1] 2 3 ... 16