1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Greetings Guest!!

    In order to combat SPAM on the forums, all users are required to have a minimum of 2 posts before they can submit links in any post or thread.

    Dismiss Notice

Where's the code that makes certain windows transparent?

Discussion in 'UO Enhanced Client Discussion' started by Nalif, Jan 13, 2011.

  1. Nalif

    Nalif Journeyman
    Stratics Veteran

    Joined:
    Nov 30, 2006
    Messages:
    131
    Likes Received:
    0
    I'm trying to track this down while making a skin of mine, and for the life of me, I can't seem to find it. Is it in the LUA somewhere maybe? Namely, I'm talking about the following windows:

    Backpack in grid mode
    Main Menu
    Top portion of the map window
    The BG of the paperdoll window

    I'm looking at the code of the default skin BTW. Thanks for any help :)
     
  2. Dermott of LS

    Dermott of LS UOEC Modder
    Stratics Veteran

    Joined:
    May 12, 2008
    Messages:
    5,320
    Likes Received:
    528
    ...

    For window background, the alpha setting (transparency/opaqueness) is in the UO_DefaultWindow.LUA file, line 20:

    Code:
    -- OnInitialize Handler
    function UO_DefaultWindow.Initialize()
    [b]WindowSetAlpha(SystemData.ActiveWindow.name.."_UO_DefaultWindowBackground", 1;[/b]
    end
    With 1 being fully opaque and 0.xx being the percentage of transparency.
     
  3. Nalif

    Nalif Journeyman
    Stratics Veteran

    Joined:
    Nov 30, 2006
    Messages:
    131
    Likes Received:
    0
    Awesome. That was exactly what I was looking for. Thanks :)