Jump to content

Stan`

0 A.D. Project Leader
  • Posts

    18.405
  • Joined

  • Last visited

  • Days Won

    601

Posts posted by Stan`

  1. I don't know if that will make more clear or not:

    styles.xml files work a bit like CSS files. Let's consider this file to be mystyle.xml

    <?xml version="1.0" encoding="utf-8"?>
    <styles>
      <style name="TitleText"
             font="myfont-regular-14"
             textcolor="white"
             text_align="center"
             text_valign="center" />
    </styles>

    for each gui page you need to include the style e.g mypage.xml

    <?xml version="1.0" encoding="utf-8"?>
    <page>
      <include>mystyle.xml</include>
    </page>

    Then you can reference it in stuff contained in that page e.g

    <?xml version="1.0" encoding="utf-8"?>
    <object name="pgToolTip" style="TitleText" type="text" size="100%-313 25 100% 200" />

    or

    <?xml version="1.0" encoding="utf-8"?>
    <object type="text" name="campaignDesc" style="ModernLabelText" font="myfont-regular-14" size="10 10 100%-10 100%-10">

    @trompetin17 unless I'm mistaken this does not exist:

    <text font="myfont-regular-14" />

    and in config/mymod.cfg

    [fonts.myfont]
    regular = "DejaVuSansMono.ttf", "FreeMono.ttf"

     

  2. Have you tried this instead:

    ./pyrogenesis

    .Also is that file executable ?

    chmod +x pyrogenesis && ./pyrogenesis

     

    Quote

    If I just upload a .zip to mod.io, will it be possible to install it via the in-game mod manager regardless?

    Yes but, depending on the one who installs the mod, it might not work for them, because we haven't generated the cache files and compressed the textures and 3d models in that mod (if any)

×
×
  • Create New...