[Quick Question] Where can i find a certain ui element

tesb

Emperor
Joined
Jan 16, 2010
Messages
1,593
Hi,
i am searching for ui element that appears when you select a unit.
see this screenshot:



can someone please tell me where i can find it?
 

Attachments

  • uielement.png
    uielement.png
    45.2 KB · Views: 92
It's drawn in CvMainInterface, but the actual code to generate the text is in the DLL (CvGameTextMgr.cpp, to be specific)
 
sorry to not be more specific i need the location of the actual texture.
 
Oh, the background grey-green texture? I'm assuming that's part of the actual UI art, and in Resources/UI or something like that.
 
no the green texture i did myself. i am searching the white selection box.
there are two textures on this screen the green one, i did myself and the white "box".
 
Okay, if you are talking about the text and the box itself, it's all drawn in CvMainInterface.py (in Python/Screens). The code starts here:

Code:
elif (pHeadSelectedUnit and CyInterface().getShowInterface() == InterfaceVisibility.INTERFACE_SHOW):

It's rather lengthy.
 
Look in the Python/Screens/CvMainInterface.py file for the updateInfoPaneStrings method. The panel with the name "SelectedUnitPanel" is the one you are looking for.
 
this is from the python code:
screen.addPanel( "SelectedUnitPanel", u"", u"", True, False, 8, yResolution - 140, 140, 130, PanelStyles.PANEL_STYLE_STANDARD )
now i guess there still has to be an actual *.dds or targa file for the python to use, this is what i am searching for.
i unpacked the *fpk but could not find any file.
 
Top Bottom