Interface Lift Question

Discussion in 'Mod Discussions' started by warrenkc, November 5, 2014.

  1. warrenkc

    warrenkc Active Member

    Messages:
    542
    Likes Received:
    191
    I have a couple questions. How would I make a mod that would have features such as replacing the background image on the main screen? I was able to do it by changing the image file in the media folder for PA.
    Also is there a way to somehow replace some of the CSS files that are default so I could load my own CSS files in the mod to give the UI a different look?

    Thanks a million!
  2. SXX

    SXX Post Master General

    Messages:
    6,896
    Likes Received:
    1,812
    Background is set in "start.css" too.

    You don't need to replace all styles except you want to completely change menu.
    Basically you can just change styles you want via JavaScript.
  3. warrenkc

    warrenkc Active Member

    Messages:
    542
    Likes Received:
    191
    Could you provide a sample to change the background?..
  4. DeathByDenim

    DeathByDenim Post Master General

    Messages:
    4,328
    Likes Received:
    2,125
    Open the file <PA Install Dir>/media/ui/main/game/start/start.css. Find this code:
    Code:
    body {
      background-image: url('coui://ui/main/shared/img/backgrounds/img_bground_galaxy_01.png');
      background-size: cover;
    }
    
    Either change the url to point to something else, or keep start.css the same and just completely replace the file "coui://ui/main/shared/img/backgrounds/img_bground_galaxy_01.png". By the way, "coui://" points to "<PA Install Dir>/media". You can only access files that are in that directory (or its subdirectories).

    The next step is to implement that mod using shadowing. For details on how the shadowing works, read this post. It's not very clearly written, but that's all I could find. :)
    warrenkc likes this.
  5. warrenkc

    warrenkc Active Member

    Messages:
    542
    Likes Received:
    191
    So is it possible to include images in the mod?
  6. warrenkc

    warrenkc Active Member

    Messages:
    542
    Likes Received:
    191
    Thanks a bunch, I think I got it. Anyway for normal people here is an explanation. Just try to match the structure for the files and it will use them in the game such as the css files. ui\main\game\start\start.css
  7. DeathByDenim

    DeathByDenim Post Master General

    Messages:
    4,328
    Likes Received:
    2,125
    Also if you are happy with your mod, submit it to PAMM, eh?

Share This Page