• Our friends from AlphaCentauri2.info are in need of technical assistance. If you have experience with the LAMP stack and some hours to spare, please help them out and post here.

Can't access a context

ispanets

Warlord
Joined
Apr 1, 2013
Messages
136
Location
Moscow
Hi all:

I need some help with contexts, I got completely lost.

I have modded UnitPanel.lua, and there I have one action button that calls and shows a XML ("TextBoxInputIA") as a PopUp. I need to pass some parameters from UnitPanel to that TextBoxInputIA XML, but I can't access the controls of TextBoxInputIA XML from UnitPanel.

This is how I have tried to do:

Code:
        local cContext = ContextPtr:LoadNewContext("TextBoxInputIA");	
	
	for i=0, constiNumArt,1 do
		local oArt = GetArt(i);
		--local sControl = "TextBoxInputIA/" .. i;
		local sTagID = "Tag" .. i;
		local sString = oArt:GetName();
                -- next lines fails, says LookUpControl was not found
		local cControl = cContext:LookUpControl(sTagID);

                cControl:SetText(sString);
	end

	
	UIManager:PushModal("TextBoxInputIA", true);

At cContext:LookUpControl fails: says LookUpControl was not found (found a nil value instead).

I have tried with cContext:LookUpControl, ContextPtr:LookUpControl ... no way.


Any idea?

Thanks in advance.

Jose
 
LoadNewContext() is almost certainly NOT what you want, as it should only ever be called once per filename (its parameter).

If you want a popup dialog, you should be using one of the spare ButtonPopupTypes (see any of the TurnsRemaining.lua files from the scenarios for how to do this) or just simply hiding/showing a container that is part of the main context (UnitPanel in this case). The former is "more correct", the latter is considerably easier.
 
LoadNewContext() is almost certainly NOT what you want, as it should only ever be called once per filename (its parameter).

If you want a popup dialog, you should be using one of the spare ButtonPopupTypes (see any of the TurnsRemaining.lua files from the scenarios for how to do this) or just simply hiding/showing a container that is part of the main context (UnitPanel in this case). The former is "more correct", the latter is considerably easier.

Hi whoward, as always, thank you very much for your priceless help.

Actually, how triggering the PopUp (with LoadNewContext or PopUps) is not a real problem. The problem is that i want to fill the new XML popup with data available on UnitPanel, that changes allover the game.

In concrete, I have lots of empty labels on that XML (TextBoxInputIA) that I fill up from UnitPanel, when an action button is clicked, and then show the PopUp. The problem is that I cannot access to the COntrols of that XML from UnitPanel.

The solution could be to modify the UnitPanel.xml and include that XML (TextBoxInputIA) as a container, and then fill and show or hide. I've tried this. I have copied the UnitPanel.xml in my project and modified it, BUT I don't know why It doesn't replaces the standard UnitPanel.xml with mine. And if setting a InGameUIAddin - it loads it two times (the standard and mine) and renders incorrectly.

What do you think?

Thank you again.
 
I have copied the UnitPanel.xml in my project and modified it, BUT I don't know why It doesn't replaces the standard UnitPanel.xml with mine.
You remembered to set it VFS=true, right?
 
And if setting a InGameUIAddin - it loads it two times (the standard and mine) and renders incorrectly.

Wrong. If replacing an existing xml/lua file do NOT add an InGameUIAddin entry for it, but (as Nutty says) just set VFS=true.

See the "File Attributes" link in my sig for more details of what is needed for each file type under different circumstances

W
 
Guys, thank you very much for your help.

I know about VFS=true, but I think I've tried it with a LuaContext and not with just a container instead.

I'm going to test it all and come back to you.

THANKS AGAIN.
 
Guys, this is what I got. I have put my XML inside a Container tag in UnitPanel.xml:
Spoiler :

<?xml version="1.0" encoding="utf-8"?>
<Context ColorSet="Beige_Black" Font="TwCenMT20" FontStyle="Shadow" >

<Container Size="1024,700" Anchor="c,c" ID="Container">

<Box Anchor="C,C" Size="354,184" Color="255,255,255,0" >

<Grid Anchor="C,C" Offset="0,0" Size="350,180" Padding="0,0" Style="GridBlackIndent8" Hidden="0" >
<Grid Anchor="C,C" Offset="0,0" Size="354,184" Padding="0,0" Style="Grid9Frame" Hidden="0" >

<Stack Anchor="L,T" Offset="20,50" StackGrowth="Bottom" Padding="20" ID="Stack" >

<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="Insert artifact number" ID="UnitLabel" />

<Box Anchor="L,T" Offset="0,-10" Size="288,24" Color="255,255,200,255" ID="UnitEditbox">
<Box Anchor="C,C" Size="286,22" Color="0,0,0,255" >
<EditBox CallOnChar="1" EditMode="1" Size="284,22" Anchor="C,C" ID="EditUnitName" Font="TwCenMT20" MaxLength="15" />
</Box>
</Box>

<!--Artifacts-->
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art0" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art1" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art2" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art3" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art4" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art5" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art6" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art7" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art8" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art9" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art10" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art11" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art12" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art13" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art14" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art15" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art16" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art17" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art18" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art19" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art20" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art21" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art22" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art23" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art24" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art25" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art26" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art27" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art28" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art29" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art30" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art31" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art32" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art33" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art34" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art35" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art36" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art37" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art38" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art39" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art40" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art41" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art42" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art43" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art44" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art45" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art46" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art47" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art48" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art49" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art50" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art51" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art52" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art53" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art54" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art55" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art56" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art57" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art58" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art59" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art60" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art61" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art62" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art63" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art64" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art65" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art66" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art67" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art68" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art69" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art70" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art71" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art72" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art73" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art74" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art75" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art76" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art77" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art78" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art79" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art80" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art81" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art82" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art83" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art84" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art85" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art86" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art87" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art88" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art89" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art90" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art91" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art92" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art93" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art94" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art95" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art96" Hidden="true" />
<Label Anchor="L,T" Font="TwCenMT22" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="hola" ID="Art97" Hidden="true" />


</Stack>
</Grid>
</Grid>

<Image Anchor="L,T" Offset="0,-1" Size="354,45" Texture="Assets/UI/Art/WorldView/SetupTab2.dds" >
<Label Anchor="C,C" Offset="0,-7" Font="TwCenMT20" ColorSet="Beige_Black_Alpha" String="Investigate Artifact" FontStyle="Shadow" ID="Title" />
</Image>

<GridButton Anchor="C,B" Style="SmallButton" Size="150,32" Offset="-85,20" StateOffsetIncrement="0,0" ID="CancelButton" >
<Label Anchor="C,C" Offset="0,0" String="Cancel" Font="TwCenMT18" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" ID="LCancel"/>
</GridButton>

<GridButton Anchor="C,B" Style="SmallButton" Size="150,32" Offset="85,20" StateOffsetIncrement="0,0" ID="AcceptButton" >
<Label Anchor="C,C" Offset="0,0" String="Ok" Font="TwCenMT18" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" ID="LYes"/>
</GridButton>

</Box>
</Container>


.....


Everything that refers to any control inside this new code returns nil:
Controls.Container:SetHide(false)
->attempt to index field 'Container' (a nil value)

Controls.CancelButton:RegisterCallback( Mouse.eLClick, OnCancel );
->attempt to index field 'CancelButton' (a nil value)

etc etc etc


This is what I was talking about.


What I am missing?



:(

P.S: VFS=true in both xml and lua
 
Can you zip and attach UnitPanel.lua, UnitPanel.xml and the ,modinfo file from your mod please
 
Hi whoward,

Thanks for taking a look to it. I am completelly blocked.
 

Attachments

What UI size are you using, as you have no UnitPanel_small.xml
 
What UI size are you using, as you have no UnitPanel_small.xml


Whoward - THAT WAS IT. It calls UnitPanel_small.xml with UnitPanel.lua.

THANK YOU VERY MUCH, I would have never found it without your help.
 
In the main game Interface options you can set the screen size - it will also automatically set depending on the actual screen size.

There are several screens that have THREE files in their context - Xyz.lua, Xyz.xml and Xyz_small.xml - and they are CityView, EnemyUnitPanel, TechPanel, TechPopup, TextPopup and UnitPanel

My guess is that your system is picking the small size, for which you don't have that container in UnitPanel_small.xml
 
In the main game Interface options you can set the screen size - it will also automatically set depending on the actual screen size.

There are several screens that have THREE files in their context - Xyz.lua, Xyz.xml and Xyz_small.xml - and they are CityView, EnemyUnitPanel, TechPanel, TechPopup, TextPopup and UnitPanel

My guess is that your system is picking the small size, for which you don't have that container in UnitPanel_small.xml

Yes, it is. Thank you very much.
 
Back
Top Bottom