1. We have added the ability to collapse/expand forum categories and widgets on forum home.
    Dismiss Notice
  2. All Civ avatars are brought back and available for selection in the Avatar Gallery! There are 945 avatars total.
    Dismiss Notice
  3. To make the site more secure, we have installed SSL certificates and enabled HTTPS for both the main site and forums.
    Dismiss Notice
  4. Civ6 is released! Order now! (Amazon US | Amazon UK | Amazon CA | Amazon DE | Amazon FR)
    Dismiss Notice
  5. Dismiss Notice
  6. Forum account upgrades are available for ad-free browsing.
    Dismiss Notice

C15's TopPanel Extension 1.0

UI mod which provides an overview of Amenities and Housing

  1. Chrisy15

    Chrisy15 Limmu

    Joined:
    Jul 9, 2015
    Messages:
    1,910
  2. Chrisy15

    Chrisy15 Limmu

    Joined:
    Jul 9, 2015
    Messages:
    1,910
    Updated:
    *Swapped various things around
    *Now shows Net Amenities like it does on the CityPanel; should make more sense than a fraction
    Known issues;
    Amenities don't update instantly: should be easy fix but cbf rn
     
  3. Chrisy15

    Chrisy15 Limmu

    Joined:
    Jul 9, 2015
    Messages:
    1,910
    Updated:
    *Amenity and Housing meters now update when an improvement is fiinished.
     
  4. Chrisy15

    Chrisy15 Limmu

    Joined:
    Jul 9, 2015
    Messages:
    1,910
    Updated for new patch! No longer replaces TopPanel.lua, and so is compatible with all mods that affect it so long as they've been updated for the latest patch too! Thanks to Suk for helping with this!
     
  5. Chrisy15

    Chrisy15 Limmu

    Joined:
    Jul 9, 2015
    Messages:
    1,910
    Updated with minor changes.
     
  6. Chrisy15

    Chrisy15 Limmu

    Joined:
    Jul 9, 2015
    Messages:
    1,910
    Updated for Fall Patch; if you are a UI Modder please read the Workshop Description to see how to handle the fact that the mod once again replaces TopPanel.lua.
     
  7. BWS

    BWS Big Bradd Wolfe

    Joined:
    Jan 4, 2009
    Messages:
    388
    Location:
    San Jose, CA
    I was looking at Sukritact's Simple UI Adjustments the other day, and I discovered his method for extending the minimap buttons without overriding the MinimapPanel scripts. The basic technique is to find the <Stack> containing the minimap buttons, and insert his new control into it. I wonder whether that technique would also work for extending the top panel?
     
  8. Chrisy15

    Chrisy15 Limmu

    Joined:
    Jul 9, 2015
    Messages:
    1,910
    I'm pretty sure this is what I do already, using include to have my Lua file insert functions into a table in TopPanel.lua which then adds the entries in this table into the Yields stack. The issue is that Firaxis removed this functionality in the Fall Patch, so I have to overwrite TopPanel.lua to reintroduce it but since the alteration is pretty simple and not at all intrusive other mods which overwrite TopPanel.lua can easily implement the support themselves.
     
  9. BWS

    BWS Big Bradd Wolfe

    Joined:
    Jan 4, 2009
    Messages:
    388
    Location:
    San Jose, CA
    Right, I am familiar with that mechanism. I just wonder whether it’s necessary to rewrite the RefreshYields() function in TopPanel.lua, or if it’s possible to have a completely separate module that hooks in solely by changing parents in the UI like Sukritact’s Simple UI Adjustments does. Specifically, maybe your graphic could hook the Lua event that triggers RefreshYields(), instead of inserting itself into RefreshYields()? I don’t have the source code handy to explain in greater detail, but maybe I can throw together a proof of concept later.
     

Share This Page