Reference UI elements without ID in lua

Thildemar

Chieftain
Joined
Aug 4, 2019
Messages
1
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.

Thanks!
 
Top Bottom