1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

How to Hide World Anchored UI behind FoW and Notification Panel?

Discussion in 'Civ5 - SDK / LUA' started by JFD, Feb 20, 2016.

  1. JFD

    JFD Kathigitarkh

    Joined:
    Oct 19, 2010
    Messages:
    9,112
    Location:
    The Kingdom of New Zealand
    How would one have a World Anchored UI remain hidden behind the Fog of War and behind the Notification Panel? Screenshot below of the issue (It also overlays the mini map).

    Spoiler :


    Thanks for any info.
     
  2. Klisz

    Klisz King

    Joined:
    Aug 18, 2014
    Messages:
    805
    I don't know about the Notification Panel, but for FoW couldn't you use Events.HexFOWStateChanged to hide or show the UI? This seems to be what Map Labels does, anyway.
     
  3. JFD

    JFD Kathigitarkh

    Joined:
    Oct 19, 2010
    Messages:
    9,112
    Location:
    The Kingdom of New Zealand
    I never thought to look at Map Labels. Thanks!
    EDIT: That helped! Thanks again. Still open for issues relating to Notification Panel and Minimap, however, if anyone has insight. Overlaps with the City Banner, too - which is a bit of a killer to the use of this banner.
     
  4. bc1

    bc1

    Joined:
    Jan 12, 2004
    Messages:
    1,221
    ContextPtr:ChangeParent(LookUpControl("/InGame/YieldIconManager"))
     
  5. JFD

    JFD Kathigitarkh

    Joined:
    Oct 19, 2010
    Messages:
    9,112
    Location:
    The Kingdom of New Zealand
    Although that does stop the overlays, it also appears to break the banner's tooltip.
    EDIT: But hooking it up to ResourceIconManager works! Thank you - hopefully there are no adverse side-effects to this.
     

Share This Page