Author Topic: leftside robo skin with spin wheel like in hyperspin on right using wheel art.  (Read 14866 times)

omegaman

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 873
    • View Profile
Xev-

Ok, now that we have that cleared up. A little run down on the conveyor section. Wheel_x sets the position of each wheel art from (left to right) on the x axis. For example flx*0.0 will start at the left pixel unit, increasing the value to 0.01 will move it to the right and so on. A little goes along way, so use small increments. In the layout that I posted, the select wheel position on the x axis is flx*0.64 to give you an idea. Repeat for wheel_y on the y axis (up and down) with fly*0.0 starting from the top. The select position for the y axis is fly*0.436 but can be whatever. Wheel_w is the width of the art and wheel_h is the height. Wheel_r is the alpha with 0 being transparent and 255 being fully visible.  Hope this helps...

xev1n

  • Full Member
  • ***
  • Posts: 79
    • View Profile
I kind of understand, however is it possible that I can just use X Y W H in scale instead of .x Or what is the difference? Example why can my coordinates not just be: 99, 142, 781, 792 or whatever in relation to pixel size of background?

omegaman

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 873
    • View Profile
Xev-

Yes, of course, you can just use numbers for the coordinates. It's really just preference. The reason that I started doing my layouts like the one I posted is to keep everything proportional when changing my desktop resolution from lets say 1024x768 to 1280x1024 or higher. Otherwise, if my layout was created to be lets say 640x480 or whatever then my desktop resolution would need to be the same to keep everything proportional. And, that is fine as long as you keep the desktop resolution static. If that makes sense. If you do it the way you want to and decide to change your desktop resolution later on then everything in the layout will need to be tweaked some what. Especially, the conveyor module section because the wheel art will not scale in proportion to the new desktop size.       

xev1n

  • Full Member
  • ***
  • Posts: 79
    • View Profile
Perfect, another question why are there so many coordnites

example: local wheel_x = [ flx*0.80, flx*0.795, flx*0.756, flx*0.725, flx*0.70, flx*0.68, flx*0.64, flx*0.68, flx*0.70, flx*0.725, flx*0.756, flx*0.76, ];

Why not just one coordinate for x one for y and so on?

omegaman

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 873
    • View Profile
Xev-

Well, if I am going to have 10 or 12 wheel arts showing on the display then I am going to need coordinates for each one, right? I am essentially setting the position for each wheel art.

xev1n

  • Full Member
  • ***
  • Posts: 79
    • View Profile
Oh WOW gotcha, this makes so much sense now...LOL :o. Perfect, thanks!

akafox

  • Hero Member
  • *****
  • Posts: 800
    • View Profile
Xev-

Well, if I am going to have 10 or 12 wheel arts showing on the display then I am going to need coordinates for each one, right? I am essentially setting the position for each wheel art.

Umm on that note omega how difficult would it be to do a "staggered" effect. Maybe a vertical list not a "wheel" per say. Or..like "falling tiles"? Seeing the wheel art is it "blocks" well some of them anyway.
People want life easy..then complain about it

xev1n

  • Full Member
  • ***
  • Posts: 79
    • View Profile
Xev-

Well, if I am going to have 10 or 12 wheel arts showing on the display then I am going to need coordinates for each one, right? I am essentially setting the position for each wheel art.

I am assuming these coordinates start at top and go to bottom for instance x1top, x2, x3 and so on...Is that correct?

omegaman

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 873
    • View Profile
Xev-

Doing a staggered effect would not be that difficult at all. For example, you could have all the x coordinates with the same value to align the art to whatever position on the display you want then just increment the y coordinates to overlap each art from top to bottom. And, vice versa.   Simple example: X= 10, X=10, X=10 then y=1,y=2, y=3. So, Y=0 would start at the top while  y=-1 would be above that to draw off screen. And, of course y=1 would below or after 0. 

akafox

  • Hero Member
  • *****
  • Posts: 800
    • View Profile
Ahh ok. I get that. This is as far as my brain got me in math..I hate geometry...I was ALWAYS bad at it...but the coordinate system always stayed with me... *shrugs*
People want life easy..then complain about it

michel almeida

  • Jr. Member
  • **
  • Posts: 12
    • View Profile
Xev-

The only thing close to what you are asking is something like in verticools layout. Notice the select art image is above the text or you could put it below the text. Not really like you want it. I guess you could theoretically layer a select wheel image centered and over the text listbox. You would have to spread the text really far apart and I'm not sure how good that would look though.



teo this layout the option of choice and freplay enserir coin also I need a scheme gave a coin to enter and another to tell time
and was vertical layout was very good and not given bug
« Last Edit: April 30, 2015, 07:32:35 AM by michel almeida »

raygun

  • Administrator
  • Sr. Member
  • *****
  • Posts: 389
    • View Profile
OK I tried and tried to no avail. Is it even possible to keep the listbox format or does it have to be in a circular pattern? All I want to do is replace the text of my listbox with the wheel image but still have the list below and above. Maybe what I'm asking for can't be done and if so I'm OK with that. Thanks for all your help.

Sorry I'm a bit late on this discussion, but there is a fairly easy way to make a simple "image" listbox instead of a text listbox... The "conveyor" module includes a class called "SimpleArtStrip" which does what you are looking for:

Code: [Select]
fe.add_module( "conveyor" );

// Usage example.  The following code creates a strip of 5 snap artworks across
// the top of the screen:
//
    local my_strip = SimpleArtStrip( "snap", 5, 0, 0,
             fe.layout.width, fe.layout.height/3, 2 );


It looks like you've moved on from this point, but in case this is useful for others looking at this thread...

https://github.com/mickelson/attract/blob/master/config/modules/conveyor.nut#L345

P.S. @omegaman: did you ever get that PM I tried to send you a while back?
« Last Edit: April 30, 2015, 09:49:45 AM by raygun »

omegaman

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 873
    • View Profile
Ray-

Oh WOW!, this is great stuff. So, this extends on the conveyors functionality. Jeez, I didn't even know that was there. I guess, I need to start perusing GitHub more often. This will make things so much easier.


omegaman

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 873
    • View Profile
OK I tried and tried to no avail. Is it even possible to keep the listbox format or does it have to be in a circular pattern? All I want to do is replace the text of my listbox with the wheel image but still have the list below and above. Maybe what I'm asking for can't be done and if so I'm OK with that. Thanks for all your help.

Sorry I'm a bit late on this discussion, but there is a fairly easy way to make a simple "image" listbox instead of a text listbox... The "conveyor" module includes a class called "SimpleArtStrip" which does what you are looking for:

Code: [Select]
fe.add_module( "conveyor" );

// Usage example.  The following code creates a strip of 5 snap artworks across
// the top of the screen:
//
    local my_strip = SimpleArtStrip( "snap", 5, 0, 0,
             fe.layout.width, fe.layout.height/3, 2 );


It looks like you've moved on from this point, but in case this is useful for others looking at this thread...

https://github.com/mickelson/attract/blob/master/config/modules/conveyor.nut#L345

P.S. @omegaman: did you ever get that PM I tried to send you a while back?

I sent a reply like a day after reading your message:p

xev1n

  • Full Member
  • ***
  • Posts: 79
    • View Profile
OK I tried and tried to no avail. Is it even possible to keep the listbox format or does it have to be in a circular pattern? All I want to do is replace the text of my listbox with the wheel image but still have the list below and above. Maybe what I'm asking for can't be done and if so I'm OK with that. Thanks for all your help.

Sorry I'm a bit late on this discussion, but there is a fairly easy way to make a simple "image" listbox instead of a text listbox... The "conveyor" module includes a class called "SimpleArtStrip" which does what you are looking for:

Code: [Select]
fe.add_module( "conveyor" );

// Usage example.  The following code creates a strip of 5 snap artworks across
// the top of the screen:
//
    local my_strip = SimpleArtStrip( "snap", 5, 0, 0,
             fe.layout.width, fe.layout.height/3, 2 );


It looks like you've moved on from this point, but in case this is useful for others looking at this thread...

https://github.com/mickelson/attract/blob/master/config/modules/conveyor.nut#L345

P.S. @omegaman: did you ever get that PM I tried to send you a while back?


This is GREAT NEWS!!! Thanks!