• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
RetroPie forum home
  • Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login

Game List Z-index fun

Scheduled Pinned Locked Moved Projects and Themes
themetechniqueselectorz-indexgamelist
41 Posts 13 Posters 15.2k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L
    lilbud @Zigurana
    last edited by 2 Jun 2017, 10:10

    @Zigurana I got it
    alt text

    1 Reply Last reply Reply Quote 3
    • T
      TMNTturtlguy @Zigurana
      last edited by 2 Jun 2017, 10:48

      @Zigurana said in Game List Z-index fun:

      @Syhles
      </waits patiently for @TMNTturtlguy to make a suitable pizza-pie reference...>

      Sorry! I was actually sleeping for a few hours or I would have been on it for sure! Now I am trying to get the kids to daycare! It isn't easy being green. (Wait is the Kermit the frog.....ohhhhh well. I made a funny!)

      L 1 Reply Last reply 2 Jun 2017, 11:34 Reply Quote 2
      • R
        ruckage
        last edited by 2 Jun 2017, 11:17

        Below is a video showing the gamelist working. It also shows it working with a patterned background (slightly more complicated but the same principle).

        @Syhles is correct, everything is layered. So the setup is you set the gamelist z-index to render at the back, next you have the overlay image rendering on top of that (z index higher than gamelist), and in my example the background renders above everything else (zindex higher than both the game-list and overlay.

        The actual overlay image in my first examples is a graphic designed to cover exactly a single line in the game-list, however I use the <tile>true</tile> tag to repeat it vertically 9 times.

        This works well if the background is a single colour but things get slightly more complicated if you have an image or pattern in the background. To make that work your overlay needs to be a duplicate of the backgound but with transparent areas for the game-list to show through.

        So first you would have your background:

        0_1496401398500_pattern_back.png

        Next the gamelist

        0_1496401839557_gamelist.png

        And on top of those your overlay (copy of background with alpha transparency.

        0_1496401496087_pattern1.png

        I hope that explains it better.

        The z-index is a really useful addition, so many possibilities. You may have noticed the preview screenshots have scanlines - that is also an overlay.

        Regarding the border around 'marquee images', they are all edited to have that as I wanted an outline on them for this particular theme.

        SNES mini/Nes mini/Famicom mini theme developer.

        If you'd like to support my work you can donate here: Donate

        1 Reply Last reply Reply Quote 4
        • L
          lilbud @TMNTturtlguy
          last edited by 2 Jun 2017, 11:34

          @TMNTturtlguy said in Game List Z-index fun:

          Kermit the frog

          0_1496402954142_a8445590-3c87-4e74-9f37-109e25f4ebff-image.png

          R 1 Reply Last reply 2 Jun 2017, 11:41 Reply Quote 1
          • R
            ruckage @lilbud
            last edited by ruckage 6 Feb 2017, 12:41 2 Jun 2017, 11:41

            @lilbud
            I'm going to be an old grump now but would you mind not cluttering up the topic with pictures of Kermit the frog.

            SNES mini/Nes mini/Famicom mini theme developer.

            If you'd like to support my work you can donate here: Donate

            L 1 Reply Last reply 2 Jun 2017, 12:31 Reply Quote 2
            • L
              lilbud @ruckage
              last edited by 2 Jun 2017, 12:31

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • S
                Syhles
                last edited by 2 Jun 2017, 15:17

                @ruckage
                Yay I was correct it seems.

                On a more serious note, it would be nice if you made a more in-depth step by step tutorial for this, I followed how to do this, also didn't think of the patterned background working that easily.

                Thanks for sharing how to do cool things.

                R 1 Reply Last reply 2 Jun 2017, 16:02 Reply Quote 0
                • H
                  Hex
                  last edited by 2 Jun 2017, 15:46

                  @ruckage Thanks for clearing that up. I am sure it is jusk like Andoid z index. The only difference is android draws shadows below to show z-index thus giving it an awesome feel

                  Sent from 20,000 leagues under the sea.

                  Powersaver Emulation station : https://github.com/hex007/EmulationStation
                  ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

                  1 Reply Last reply Reply Quote 1
                  • R
                    ruckage @Syhles
                    last edited by 2 Jun 2017, 16:02

                    @Syhles said in Game List Z-index fun:

                    @ruckage
                    Yay I was correct it seems.

                    On a more serious note, it would be nice if you made a more in-depth step by step tutorial for this, I followed how to do this, also didn't think of the patterned background working that easily.

                    Thanks for sharing how to do cool things.

                    I'll see if I can come up with a tutorial, most of the work needed is image editing, the xml side of things is easy.

                    @Hex said in Game List Z-index fun:

                    @ruckage Thanks for clearing that up. I am sure it is jusk like Andoid z index. The only difference is android draws shadows below to show z-index thus giving it an awesome feel

                    Not sure what you mean about Android z-index and shadows. You could easily add shadows between layers if you wish though in ES.

                    A good way to think of z-index is as an extra axis (like 3D). You position you images using x and y coordinates which left/right, up/down repectively, so z is just in/out.

                    SNES mini/Nes mini/Famicom mini theme developer.

                    If you'd like to support my work you can donate here: Donate

                    S 1 Reply Last reply 2 Jun 2017, 16:15 Reply Quote 1
                    • S
                      Syhles @ruckage
                      last edited by Syhles 6 Feb 2017, 18:05 2 Jun 2017, 16:15

                      @ruckage
                      Thanks hope you share more inventive ways of using the z-index for things.

                      1 Reply Last reply Reply Quote 0
                      • H
                        Hex
                        last edited by 2 Jun 2017, 16:59

                        Yes I agree this is great.

                        Android as in the OS. I am also an Android Dev so I was not sure if it was the same thing or not.

                        Sent from 20,000 leagues under the sea.

                        Powersaver Emulation station : https://github.com/hex007/EmulationStation
                        ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

                        1 Reply Last reply Reply Quote 0
                        • J
                          jdrassa
                          last edited by 3 Jun 2017, 02:02

                          @ruckage Amazing job! Although, I can't help but think, wouldn't this be easier if the gamelist could just render an image in place of the selection bar? I might have to look into it.

                          Get latest build of EmulationStation for Windows here

                          L R 2 Replies Last reply 3 Jun 2017, 02:07 Reply Quote 5
                          • L
                            lilbud @jdrassa
                            last edited by 3 Jun 2017, 02:07

                            @jdrassa Didn't you find a way for the gamelist selector to be resized? Or was that someone else?

                            1 Reply Last reply Reply Quote 0
                            • R
                              ruckage @jdrassa
                              last edited by ruckage 6 Mar 2017, 09:52 3 Jun 2017, 08:51

                              @jdrassa said in Game List Z-index fun:

                              @ruckage Amazing job! Although, I can't help but think, wouldn't this be easier if the gamelist could just render an image in place of the selection bar? I might have to look into it.

                              It definitely would be easier and would be a great addition as this method has limitations and can be a little tricky to get right. If you decide to add selector bar image support I'd be first in line to test it :).

                              @lilbud said in Game List Z-index fun:

                              @jdrassa Didn't you find a way for the gamelist selector to be resized? Or was that someone else?

                              Hi @lilbud. Yeah, @jdrassa got y-offset and height working for the selector bar and it's great, if that was combined with image support it would be perfect.
                              https://retropie.org.uk/forum/topic/10435/long-standing-es-bugs/21

                              SNES mini/Nes mini/Famicom mini theme developer.

                              If you'd like to support my work you can donate here: Donate

                              1 Reply Last reply Reply Quote 1
                              • W
                                WXDFever
                                last edited by 23 Feb 2018, 07:48

                                HMM, does anyone know where I can download this theme?

                                1 Reply Last reply Reply Quote 0
                                • W
                                  wcarvalho
                                  last edited by 18 Apr 2018, 02:54

                                  @ruckage
                                  I'm trying to implement this same idea, but I'm not getting it, could you help me?

                                  I was able to make the background image appear for the gamelist, but it does not go to the selected game, always in the same direction as the first gamealt text

                                  J 1 Reply Last reply 18 Apr 2018, 03:46 Reply Quote 0
                                  • J
                                    jdrassa @wcarvalho
                                    last edited by 18 Apr 2018, 03:46

                                    @wcarvalho @ruckage worked some black magic above to make this work. Fortunately, it inspired me to implement a simpler way to achieve the same effect. The textlist component now supports setting an image for the selector bar.

                                    Try setting the following property on your textlist.
                                    <selectorImagePath>path/to/image</selectorImagePath>

                                    Get latest build of EmulationStation for Windows here

                                    W 1 Reply Last reply 18 Apr 2018, 16:16 Reply Quote 0
                                    • W
                                      wcarvalho @jdrassa
                                      last edited by wcarvalho 18 Apr 2018, 16:16

                                      Thanks for the tip @jdrassa . It worked here, I put an arrow-shaped icon, how do I put for that image to stay before the beginning of the game name?

                                      alt text

                                      Edit: I changed the <alignment> to the center and the right one stayed the way I wanted, but for the left alignment would it be possible to do this? put the icon before
                                      alt text

                                      alt text

                                      J 1 Reply Last reply 18 Apr 2018, 17:14 Reply Quote 0
                                      • J
                                        jdrassa @wcarvalho
                                        last edited by 18 Apr 2018, 17:14

                                        @wcarvalho Have you read through the theme docs? I believe horizontalMargin is what you need.

                                        Get latest build of EmulationStation for Windows here

                                        W 1 Reply Last reply 18 Apr 2018, 17:50 Reply Quote 0
                                        • W
                                          wcarvalho @jdrassa
                                          last edited by 18 Apr 2018, 17:50

                                          @jdrassa
                                          Yes I read, now it worked, after many tests, because before it was not working, I put the tag in this way <horizontalMargin> 0.0150 </ horizontalMargin>. Thank you.

                                          Three more questions

                                          1. I have in mind that the current emulationstation support for use of extra sounds are for the game launch (<sound name = "launch">) and the gamelist scrollbar (<sound name = "systemscroll">).
                                            Is there support also, when I change the system and when I turn the "back" to the main page?

                                          2. In the same way that I use <helpsystem name = "help"> to choose the color, font that will appear in the help bar, is it possible to do this in the emulationstation main menu? the one that appears when you press start, if so how?

                                          3. In that same emulationstation menu when I press start, is it possible to customize the options? Add, remove these things? I tried searching for the files, the most I could do is call the oxmplayer running a short video when I go
                                            QUIT> Restart System
                                            QUIT> Shutdown System

                                          J 1 Reply Last reply 19 Apr 2018, 03:16 Reply Quote 0
                                          • First post
                                            Last post

                                          Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                                          Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.

                                            This community forum collects and processes your personal information.
                                            consent.not_received