[REFERENCE] UI Modding System

Discussion in 'Mod Discussions' started by Raevn, August 4, 2013.

  1. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    UI Modding System
    Alpha Disclaimer: This information is still being compiled, but is currently based on PA Build 51531 and may change.
    See PA Modding Changes for any changes that may have been made after this build.


    Starting in build 51118, Planetary Annihilation included a new modding system for User Interface mods. A readme for this system can be found in the PA\media\ui\mods folder, and is reproduced below. The system works by loading the designated files after the default UI files, either globally or for certain scenes.

    For CSS files, this means simply creating a file with the appropriate CSS changes, as the later values will overwrite the former default ones. For Javascript & HTML, it is a bit more involved depending on what you wish to achieve.

    While HTML fragments are not yet directly supported, the same effect can be achieved through the use of JQuery, with functions like replaceWith.

    The following threads may also help:

    Readme.txt:

    Quitch likes this.
  2. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    <reserved>
  3. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    <reserved>

Share This Page