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

Reference UI elements without ID in lua

Discussion in 'Mod Creation Help' started by Thildemar, Aug 4, 2019.

  1. Thildemar

    Thildemar Chieftain

    Aug 4, 2019
    Hi Everyone,

    New to Civ modding and trying to fix the UI for ultrawidescreen. Have a lot of the pieces in place, but running into trouble re-positioning elelemts without an ID. I am mostly using "ContextPtr:LookUpControl("/InGame/Screens/TechTree/")" to set size and offset for elements and cal lookup the tree via "controltree" in the debug window, but cant find an easy way to reference Child objects with no id value set. For example, there is a control with no ID under the techtree above that contains most of the UI elements for that screen, including a background texture that does not scale properly and I need to adjust.


Share This Page