Attract-Mode Support Forum

Attract-Mode Support => General => Topic started by: manzarek on July 28, 2020, 10:27:48 AM

Title: (solved) I am creating a personal theme, I need a little help
Post by: manzarek on July 28, 2020, 10:27:48 AM
Hi everyone, I'm creating a personal theme, but I can't put the marquee behind the image of the cabinet, the images below better explain what I want to achieve, you can help me to do so thank you in advance.

this is the code concerned, the theme taken and Robospin
Code: [Select]
if ( my_config["enable_marquee"] == "marquee" )
{
local marquee = fe.add_artwork("marquee", flx*0.0840, fly*0.0214, flw*0.415, flh*0.180 );
 marquee.trigger = Transition.EndNavigation;
 marquee.skew_y = 0;
 marquee.skew_x = 0;
 marquee.pinch_x = 0;
 marquee.pinch_y = 0;
 marquee.rotation = 0;
   if ( my_config["enable_Lmarquee"] == "Yes" )
{
    local shader = fe.add_shader( Shader.Fragment "bloom_shader.frag" );
shader.set_texture_param("bgl_RenderedTexture");
marquee.shader = shader;
}
Title: Re: I am creating a personal theme, I need a little help
Post by: bionictoothpick on July 28, 2020, 11:15:45 AM
Have the background image load after the marquee, in the script.
Title: Re: I am creating a personal theme, I need a little help
Post by: manzarek on July 28, 2020, 11:36:02 AM
thanks for the answer, please can you do it for me in the script, I don't know how to do it, I tried to tweak the code a little but without success.
Title: Re: I am creating a personal theme, I need a little help
Post by: bionictoothpick on July 28, 2020, 12:21:22 PM
Try this....no guarantee
Title: Re: I am creating a personal theme, I need a little help
Post by: manzarek on July 28, 2020, 12:29:43 PM
no unfortunately the default background image disappears, i only see videos, thank you very much for your help friend.
Title: Re: I am creating a personal theme, I need a little help
Post by: keilmillerjr on July 28, 2020, 12:37:26 PM
Objects created in your squirrel script will be layered in order from bottom to top, unless you change the z index.
Title: Re: I am creating a personal theme, I need a little help
Post by: bionictoothpick on July 28, 2020, 12:40:02 PM
Is the background image the image with the transparency for the marquee?
Title: Re: I am creating a personal theme, I need a little help
Post by: bionictoothpick on July 28, 2020, 12:41:32 PM
One more attempt.
Title: Re: I am creating a personal theme, I need a little help
Post by: manzarek on July 28, 2020, 12:49:29 PM
Is the background image the image with the transparency for the marquee?
no the background image is separate from the marquee image
Title: Re: I am creating a personal theme, I need a little help
Post by: manzarek on July 28, 2020, 12:53:03 PM
One more attempt.
Same result as before.
Title: Re: I am creating a personal theme, I need a little help
Post by: manzarek on July 28, 2020, 03:32:54 PM
Objects created in your squirrel script will be layered in order from bottom to top, unless you change the z index.
Yes you were right I solved thanks.  :)