Announcement

Collapse
No announcement yet.

Problemes with "alphabackground"

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problemes with "alphabackground"

    Hi!
    I want to add a nice, little shadow to a skin, I'm working on.

    I tried using different images for "alphabackground" and "background" (as described in frisbeemonkey's tutorial and seen in other skins).

    But I am still getting some ugly results when I turn off AlphaBgrd. The semi-transparent Shadow becomes a non-transparent thick black line!

    code:

    <layout id="normal" background="player.normal.bgrd_pure" alphabackground="player.normal.bgrd" desktopalpha="1">

  • #2
    1. make a empty png
    2. set that png as your background
    3. add your shadow layer to your layout
    4. add your bg layer to your layout and add sysregion="1" to that layer

    that should do it

    -UUL

    Comment


    • #3
      like this? don't work. winamp disappears...


      <layout id="normal" background="player.fake" w="260" h="370">
      <layer id="bgrd" image="player.normal.bgrd" x="0" y="0" w="260" h="370"/>
      <layer id="bgrd" image="player.normal.bgrd_pure" x="0" y="0" w="260" h="370" sysregion="1"/>

      Comment


      • #4
        strange, it should..

        btw, don't give same id's to different objects

        Comment


        • #5
          Thanks, the ids are 'repaired' now ;-)

          I have winamp back on my screen... YIPPIE

          But I still get those ugly black lines, when I turn off desktop alpha.

          Is there a way to to the layer off via maki, when desktop alpha is not toggled on?

          something like:

          if (desktopalpha == false){
          layerXY.alpha=0;
          }

          wouldn't that be a very easy way to control my layout?

          Comment


          • #6
            you can check DA with System.isDesktopAlphaAvailable(); but you would have to make a timer or sumthing, to check every X seconds, if DA is on or off. Maybe there is an other way like system.ondesktopalphatoggle(){, or somthing, couldn't find it in the std.mi, so

            Comment


            • #7
              Hmmm.....

              I think, I'll simply check it 'onload' and not work around with timers etc... maybe someday I'll find a way to check 'toggle desktop alpha'

              Thanks a lot, UUUUUUUUUUUUL

              Comment


              • #8
                np

                Comment


                • #9
                  Hmmmm...

                  And what would that script look like?

                  After meditating over that subject for a moment, I realize, I have no idea, how to write that script!

                  Comment


                  • #10
                    sumthing like this, place it in your onscriptloaded tags

                    code:
                    If (!System.isDesktopAlphaAvailable()) {
                    layer.hide();
                    }


                    Comment


                    • #11
                      i b o,
                      try this,
                      make another layer with no alpha transparency but has the same shape as the main player. place this layer behind the mainplayer graphics and do a sysregion="1" on this. and remove all sysregion="1" on the other layers.
                      something like:
                      code:

                      <layout id="normal" background="player.fake" w="260" h="370">
                      <layer id="bgrd" image="player.normal.bgrd" x="0" y="0" w="260" h="370"/>
                      <layer id="bgrd.pure.noalpha" image="player.normal.bgrd_noalpha" x="0" y="0" w="260" h="370" sysregion="1"/>
                      <layer id="bgrd.pure" image="player.normal.bgrd_pure" x="0" y="0" w="260" h="370"/>

                      Comment


                      • #12
                        The following script results in Guru Meditation...

                        #include "../../std.mi"

                        Global Layer Shadow;
                        Global Layout mainnormal;

                        System.onScriptLoaded() {

                        Layout mainnormal = getContainer("main").getLayout("normal");
                        Shadow = mainnormal.getObject("shadow_layer");

                        If (!System.isDesktopAlphaAvailable()) {
                        Shadow.hide();
                        }
                        }

                        Comment


                        • #13
                          Hi Leechbite!

                          Don't work. Now the ugly black stroke even appears when Desktop Alpha is ON...

                          ???

                          Damn, this can't be impossible! I mean, I'm not the first one trying to do this, right?

                          Comment


                          • #14
                            Stop. Had a little change to make. Now, it looks fine when Desktop Alpha is off.

                            But it looks the same, when DA in on!

                            You know what? I start feeling funny about this!

                            ;-)

                            Comment


                            • #15
                              HEYHEY!
                              Forget everything I said!
                              I Found the problem. I accidentally used the alpha-image in another layer...

                              Comment

                              Working...
                              X
                              😀
                              🥰
                              🤢
                              😎
                              😡
                              👍
                              👎