addStackedBar()

ruff_hi

Live 4ever! Or die trying
Joined
Oct 24, 2005
Messages
9,134
Location
an Aussie in Boston
This site has info on the functions available within python. One of the functions is lists under CyGInterfaceScreen is ...

Code:
# VOID addStackedBar(STRING szName, STRING szAttachTo, FLOAT fX, FLOAT fY, FLOAT fWidth, FLOAT fHeight, FLOAT fZ, INT iNumBars, WidgetType eWidgetType, INT iData1, INT iData2)
void ( string szName, string szAttachTo, float fX, float fY, float fWidth, float fHeight, float fZ, int iNumBars, WidgetTypes eWidgetType, int iData1, int iData2 )

However, when I put that in, I get the following:

Code:
AttributeError: 'CyGInterfaceScreen' object has no attribute 'addStackedBar'
ERR: Python function handleInput failed, module CvScreensInterface

I searched the existing python code and didn't find it used anywhere. I'm assuming that it doesn't exist and the reference web site is wrong. Can anyone confirm?
 
:hmm: - the reference has it wrong. I found this in the maininterface file ...

PHP:
				szStringHealth = szString + "Health"
				screen.addStackedBarGFCAt( szStringHealth, szStringPanel, xOffset + 3, 26, 32, 11, InfoBarTypes.NUM_INFOBAR_TYPES, WidgetTypes.WIDGET_GENERAL, k, -1 )
				screen.hide( szStringHealth )

... so the reference is missing the 'GFCAt' part.
 
Top Bottom