@@ -4811,11 +4811,11 @@ eCursorType CStaticFunctionDefinitions::GUIGetCursorType ( void )
4811
4811
}
4812
4812
4813
4813
4814
- CClientGUIElement* CStaticFunctionDefinitions::GUICreateWindow ( CLuaMain& LuaMain, float fX , float fY , float fWidth , float fHeight , const char * szCaption, bool bRelative )
4814
+ CClientGUIElement* CStaticFunctionDefinitions::GUICreateWindow ( CLuaMain& LuaMain, const CVector2D& position, const CVector2D& size , const char * szCaption, bool bRelative )
4815
4815
{
4816
4816
CGUIElement *pElement = m_pGUI->CreateWnd ( NULL , szCaption );
4817
- pElement->SetPosition ( CVector2D ( fX , fY ) , bRelative );
4818
- pElement->SetSize ( CVector2D ( fWidth , fHeight ) , bRelative );
4817
+ pElement->SetPosition ( position , bRelative );
4818
+ pElement->SetSize ( size , bRelative );
4819
4819
4820
4820
// register to the gui manager
4821
4821
CClientGUIElement *pGUIElement = new CClientGUIElement ( m_pManager, &LuaMain, pElement );
@@ -4830,11 +4830,11 @@ CClientGUIElement* CStaticFunctionDefinitions::GUICreateWindow ( CLuaMain& LuaMa
4830
4830
}
4831
4831
4832
4832
4833
- CClientGUIElement* CStaticFunctionDefinitions::GUICreateStaticImage ( CLuaMain& LuaMain, float fX , float fY , float fWidth , float fHeight , const SString& strPath, bool bRelative, CClientGUIElement* pParent )
4833
+ CClientGUIElement* CStaticFunctionDefinitions::GUICreateStaticImage ( CLuaMain& LuaMain, const CVector2D& position, const CVector2D& size , const SString& strPath, bool bRelative, CClientGUIElement* pParent )
4834
4834
{
4835
4835
CGUIElement *pElement = m_pGUI->CreateStaticImage ( pParent ? pParent->GetCGUIElement () : NULL );
4836
- pElement->SetPosition ( CVector2D ( fX , fY ) , bRelative );
4837
- pElement->SetSize ( CVector2D ( fWidth , fHeight ) , bRelative );
4836
+ pElement->SetPosition ( position , bRelative );
4837
+ pElement->SetSize ( size , bRelative );
4838
4838
4839
4839
// Register to the gui manager
4840
4840
CClientGUIElement *pGUIElement = new CClientGUIElement ( m_pManager, &LuaMain, pElement );
@@ -4905,11 +4905,11 @@ bool CStaticFunctionDefinitions::GUIStaticImageGetNativeSize ( CClientEntity& En
4905
4905
}
4906
4906
4907
4907
4908
- CClientGUIElement* CStaticFunctionDefinitions::GUICreateLabel ( CLuaMain& LuaMain, float fX , float fY , float fWidth , float fHeight , const char * szCaption, bool bRelative, CClientGUIElement* pParent )
4908
+ CClientGUIElement* CStaticFunctionDefinitions::GUICreateLabel ( CLuaMain& LuaMain, const CVector2D& position, const CVector2D& size , const char * szCaption, bool bRelative, CClientGUIElement* pParent )
4909
4909
{
4910
4910
CGUIElement *pElement = m_pGUI->CreateLabel ( pParent ? pParent->GetCGUIElement () : NULL , szCaption );
4911
- pElement->SetPosition ( CVector2D ( fX , fY ) , bRelative );
4912
- pElement->SetSize ( CVector2D ( fWidth , fHeight ) , bRelative );
4911
+ pElement->SetPosition ( position , bRelative );
4912
+ pElement->SetSize ( size , bRelative );
4913
4913
4914
4914
// register to the gui manager
4915
4915
CClientGUIElement *pGUIElement = new CClientGUIElement ( m_pManager, &LuaMain, pElement );
@@ -4919,11 +4919,11 @@ CClientGUIElement* CStaticFunctionDefinitions::GUICreateLabel ( CLuaMain& LuaMai
4919
4919
}
4920
4920
4921
4921
4922
- CClientGUIElement* CStaticFunctionDefinitions::GUICreateButton ( CLuaMain& LuaMain, float fX , float fY , float fWidth , float fHeight , const char * szCaption, bool bRelative, CClientGUIElement* pParent )
4922
+ CClientGUIElement* CStaticFunctionDefinitions::GUICreateButton ( CLuaMain& LuaMain, const CVector2D& position, const CVector2D& size , const char * szCaption, bool bRelative, CClientGUIElement* pParent )
4923
4923
{
4924
4924
CGUIElement *pElement = m_pGUI->CreateButton ( pParent ? pParent->GetCGUIElement () : NULL , szCaption );
4925
- pElement->SetPosition ( CVector2D ( fX , fY ) , bRelative );
4926
- pElement->SetSize ( CVector2D ( fWidth , fHeight ) , bRelative );
4925
+ pElement->SetPosition ( position , bRelative );
4926
+ pElement->SetSize ( size , bRelative );
4927
4927
4928
4928
// register to the gui manager
4929
4929
CClientGUIElement *pGUIElement = new CClientGUIElement ( m_pManager, &LuaMain, pElement );
@@ -4937,11 +4937,11 @@ CClientGUIElement* CStaticFunctionDefinitions::GUICreateButton ( CLuaMain& LuaMa
4937
4937
}
4938
4938
4939
4939
4940
- CClientGUIElement* CStaticFunctionDefinitions::GUICreateProgressBar ( CLuaMain& LuaMain, float fX , float fY , float fWidth , float fHeight , bool bRelative, CClientGUIElement* pParent )
4940
+ CClientGUIElement* CStaticFunctionDefinitions::GUICreateProgressBar ( CLuaMain& LuaMain, const CVector2D& position, const CVector2D& size , bool bRelative, CClientGUIElement* pParent )
4941
4941
{
4942
4942
CGUIElement *pElement = m_pGUI->CreateProgressBar ( pParent ? pParent->GetCGUIElement () : NULL );
4943
- pElement->SetPosition ( CVector2D ( fX , fY ) , bRelative );
4944
- pElement->SetSize ( CVector2D ( fWidth , fHeight ) , bRelative );
4943
+ pElement->SetPosition ( position , bRelative );
4944
+ pElement->SetSize ( size , bRelative );
4945
4945
4946
4946
// register to the gui manager
4947
4947
CClientGUIElement *pGUIElement = new CClientGUIElement ( m_pManager, &LuaMain, pElement );
@@ -4951,11 +4951,11 @@ CClientGUIElement* CStaticFunctionDefinitions::GUICreateProgressBar ( CLuaMain&
4951
4951
}
4952
4952
4953
4953
4954
- CClientGUIElement* CStaticFunctionDefinitions::GUICreateScrollBar ( CLuaMain& LuaMain, float fX , float fY , float fWidth , float fHeight , bool bHorizontal, bool bRelative, CClientGUIElement* pParent )
4954
+ CClientGUIElement* CStaticFunctionDefinitions::GUICreateScrollBar ( CLuaMain& LuaMain, const CVector2D& position, const CVector2D& size , bool bHorizontal, bool bRelative, CClientGUIElement* pParent )
4955
4955
{
4956
4956
CGUIElement *pElement = m_pGUI->CreateScrollBar ( bHorizontal, pParent ? pParent->GetCGUIElement () : NULL );
4957
- pElement->SetPosition ( CVector2D ( fX , fY ) , bRelative );
4958
- pElement->SetSize ( CVector2D ( fWidth , fHeight ) , bRelative );
4957
+ pElement->SetPosition ( position , bRelative );
4958
+ pElement->SetSize ( size , bRelative );
4959
4959
4960
4960
// register to the gui manager
4961
4961
CClientGUIElement *pGUIElement = new CClientGUIElement ( m_pManager, &LuaMain, pElement );
@@ -4969,11 +4969,11 @@ CClientGUIElement* CStaticFunctionDefinitions::GUICreateScrollBar ( CLuaMain& Lu
4969
4969
}
4970
4970
4971
4971
4972
- CClientGUIElement* CStaticFunctionDefinitions::GUICreateCheckBox ( CLuaMain& LuaMain, float fX , float fY , float fWidth , float fHeight , const char * szCaption, bool bChecked, bool bRelative, CClientGUIElement* pParent )
4972
+ CClientGUIElement* CStaticFunctionDefinitions::GUICreateCheckBox ( CLuaMain& LuaMain, const CVector2D& position, const CVector2D& size , const char * szCaption, bool bChecked, bool bRelative, CClientGUIElement* pParent )
4973
4973
{
4974
4974
CGUIElement *pElement = m_pGUI->CreateCheckBox ( pParent ? pParent->GetCGUIElement () : NULL , szCaption, bChecked );
4975
- pElement->SetPosition ( CVector2D ( fX , fY ) , bRelative );
4976
- pElement->SetSize ( CVector2D ( fWidth , fHeight ) , bRelative );
4975
+ pElement->SetPosition ( position , bRelative );
4976
+ pElement->SetSize ( size , bRelative );
4977
4977
4978
4978
// register to the gui manager
4979
4979
CClientGUIElement *pGUIElement = new CClientGUIElement ( m_pManager, &LuaMain, pElement );
@@ -4987,11 +4987,11 @@ CClientGUIElement* CStaticFunctionDefinitions::GUICreateCheckBox ( CLuaMain& Lua
4987
4987
}
4988
4988
4989
4989
4990
- CClientGUIElement* CStaticFunctionDefinitions::GUICreateRadioButton ( CLuaMain& LuaMain, float fX , float fY , float fWidth , float fHeight , const char * szCaption, bool bRelative, CClientGUIElement* pParent )
4990
+ CClientGUIElement* CStaticFunctionDefinitions::GUICreateRadioButton ( CLuaMain& LuaMain, const CVector2D& position, const CVector2D& size , const char * szCaption, bool bRelative, CClientGUIElement* pParent )
4991
4991
{
4992
4992
CGUIElement *pElement = m_pGUI->CreateRadioButton ( pParent ? pParent->GetCGUIElement () : NULL , szCaption );
4993
- pElement->SetPosition ( CVector2D ( fX , fY ) , bRelative );
4994
- pElement->SetSize ( CVector2D ( fWidth , fHeight ) , bRelative );
4993
+ pElement->SetPosition ( position , bRelative );
4994
+ pElement->SetSize ( size , bRelative );
4995
4995
4996
4996
// register to the gui manager
4997
4997
CClientGUIElement *pGUIElement = new CClientGUIElement ( m_pManager, &LuaMain, pElement );
@@ -5005,11 +5005,11 @@ CClientGUIElement* CStaticFunctionDefinitions::GUICreateRadioButton ( CLuaMain&
5005
5005
}
5006
5006
5007
5007
5008
- CClientGUIElement* CStaticFunctionDefinitions::GUICreateEdit ( CLuaMain& LuaMain, float fX , float fY , float fWidth , float fHeight , const char * szCaption, bool bRelative, CClientGUIElement* pParent )
5008
+ CClientGUIElement* CStaticFunctionDefinitions::GUICreateEdit ( CLuaMain& LuaMain, const CVector2D& position, const CVector2D& size , const char * szCaption, bool bRelative, CClientGUIElement* pParent )
5009
5009
{
5010
5010
CGUIElement *pElement = m_pGUI->CreateEdit ( pParent ? pParent->GetCGUIElement () : NULL , szCaption );
5011
- pElement->SetPosition ( CVector2D ( fX , fY ) , bRelative );
5012
- pElement->SetSize ( CVector2D ( fWidth , fHeight ) , bRelative );
5011
+ pElement->SetPosition ( position , bRelative );
5012
+ pElement->SetSize ( size , bRelative );
5013
5013
pElement->SetText ( szCaption );
5014
5014
5015
5015
// register to the gui manager
@@ -5025,11 +5025,11 @@ CClientGUIElement* CStaticFunctionDefinitions::GUICreateEdit ( CLuaMain& LuaMain
5025
5025
}
5026
5026
5027
5027
5028
- CClientGUIElement* CStaticFunctionDefinitions::GUICreateMemo ( CLuaMain& LuaMain, float fX , float fY , float fWidth , float fHeight , const char * szCaption, bool bRelative, CClientGUIElement* pParent )
5028
+ CClientGUIElement* CStaticFunctionDefinitions::GUICreateMemo ( CLuaMain& LuaMain, const CVector2D& position, const CVector2D& size , const char * szCaption, bool bRelative, CClientGUIElement* pParent )
5029
5029
{
5030
5030
CGUIElement *pElement = m_pGUI->CreateMemo ( pParent ? pParent->GetCGUIElement () : NULL , szCaption );
5031
- pElement->SetPosition ( CVector2D ( fX , fY ) , bRelative );
5032
- pElement->SetSize ( CVector2D ( fWidth , fHeight ) , bRelative );
5031
+ pElement->SetPosition ( position , bRelative );
5032
+ pElement->SetSize ( size , bRelative );
5033
5033
pElement->SetText ( szCaption );
5034
5034
5035
5035
// register to the gui manager
@@ -5044,11 +5044,11 @@ CClientGUIElement* CStaticFunctionDefinitions::GUICreateMemo ( CLuaMain& LuaMain
5044
5044
}
5045
5045
5046
5046
5047
- CClientGUIElement* CStaticFunctionDefinitions::GUICreateGridList ( CLuaMain& LuaMain, float fX , float fY , float fWidth , float fHeight , bool bRelative, CClientGUIElement* pParent )
5047
+ CClientGUIElement* CStaticFunctionDefinitions::GUICreateGridList ( CLuaMain& LuaMain, const CVector2D& position, const CVector2D& size , bool bRelative, CClientGUIElement* pParent )
5048
5048
{
5049
5049
CGUIElement *pElement = m_pGUI->CreateGridList ( pParent ? pParent->GetCGUIElement () : NULL , true );
5050
- pElement->SetPosition ( CVector2D ( fX , fY ) , bRelative );
5051
- pElement->SetSize ( CVector2D ( fWidth , fHeight ) , bRelative );
5050
+ pElement->SetPosition ( position , bRelative );
5051
+ pElement->SetSize ( size , bRelative );
5052
5052
5053
5053
// register to the gui manager
5054
5054
CClientGUIElement *pGUIElement = new CClientGUIElement ( m_pManager, &LuaMain, pElement );
@@ -5058,11 +5058,11 @@ CClientGUIElement* CStaticFunctionDefinitions::GUICreateGridList ( CLuaMain& Lua
5058
5058
}
5059
5059
5060
5060
5061
- CClientGUIElement* CStaticFunctionDefinitions::GUICreateTabPanel ( CLuaMain& LuaMain, float fX , float fY , float fWidth , float fHeight , bool bRelative, CClientGUIElement* pParent )
5061
+ CClientGUIElement* CStaticFunctionDefinitions::GUICreateTabPanel ( CLuaMain& LuaMain, const CVector2D& position, const CVector2D& size , bool bRelative, CClientGUIElement* pParent )
5062
5062
{
5063
5063
CGUIElement *pElement = m_pGUI->CreateTabPanel ( pParent ? pParent->GetCGUIElement () : NULL );
5064
- pElement->SetPosition ( CVector2D ( fX , fY ) , bRelative );
5065
- pElement->SetSize ( CVector2D ( fWidth , fHeight ) , bRelative );
5064
+ pElement->SetPosition ( position , bRelative );
5065
+ pElement->SetSize ( size , bRelative );
5066
5066
5067
5067
// register to the gui manager
5068
5068
CClientGUIElement *pGUIElement = new CClientGUIElement ( m_pManager, &LuaMain, pElement );
@@ -5076,11 +5076,11 @@ CClientGUIElement* CStaticFunctionDefinitions::GUICreateTabPanel ( CLuaMain& Lua
5076
5076
}
5077
5077
5078
5078
5079
- CClientGUIElement* CStaticFunctionDefinitions::GUICreateScrollPane ( CLuaMain& LuaMain, float fX , float fY , float fWidth , float fHeight , bool bRelative, CClientGUIElement* pParent )
5079
+ CClientGUIElement* CStaticFunctionDefinitions::GUICreateScrollPane ( CLuaMain& LuaMain, const CVector2D& position, const CVector2D& size , bool bRelative, CClientGUIElement* pParent )
5080
5080
{
5081
5081
CGUIElement *pElement = m_pGUI->CreateScrollPane ( pParent ? pParent->GetCGUIElement () : NULL );
5082
- pElement->SetPosition ( CVector2D ( fX , fY ) , bRelative );
5083
- pElement->SetSize ( CVector2D ( fWidth , fHeight ) , bRelative );
5082
+ pElement->SetPosition ( position , bRelative );
5083
+ pElement->SetSize ( size , bRelative );
5084
5084
5085
5085
// register to the gui manager
5086
5086
CClientGUIElement *pGUIElement = new CClientGUIElement ( m_pManager, &LuaMain, pElement );
@@ -5154,11 +5154,11 @@ bool CStaticFunctionDefinitions::GUIDeleteTab ( CLuaMain& LuaMain, CClientGUIEle
5154
5154
return true ;
5155
5155
}
5156
5156
5157
- CClientGUIElement* CStaticFunctionDefinitions::GUICreateComboBox ( CLuaMain& LuaMain, float fX , float fY , float fWidth , float fHeight , const char * szCaption, bool bRelative, CClientGUIElement* pParent )
5157
+ CClientGUIElement* CStaticFunctionDefinitions::GUICreateComboBox ( CLuaMain& LuaMain, const CVector2D& position, const CVector2D& size , const char * szCaption, bool bRelative, CClientGUIElement* pParent )
5158
5158
{
5159
5159
CGUIElement *pElement = m_pGUI->CreateComboBox ( pParent ? pParent->GetCGUIElement () : NULL , szCaption );
5160
- pElement->SetPosition ( CVector2D ( fX , fY ) , bRelative );
5161
- pElement->SetSize ( CVector2D ( fWidth , fHeight ) , bRelative );
5160
+ pElement->SetPosition ( position , bRelative );
5161
+ pElement->SetSize ( size , bRelative );
5162
5162
5163
5163
// Disable editing of the box...
5164
5164
// CClientGUIElement& GUIElement = static_cast < CClientGUIElement& > ( pElement );
@@ -5318,11 +5318,11 @@ bool CStaticFunctionDefinitions::GUIComboBoxSetItemText ( CClientEntity& Entity,
5318
5318
return false ;
5319
5319
}
5320
5320
5321
- CClientGUIElement* CStaticFunctionDefinitions::GUICreateBrowser ( CLuaMain& LuaMain, float fX , float fY , float fWidth , float fHeight , bool bIsLocal, bool bIsTransparent, bool bRelative, CClientGUIElement* pParent )
5321
+ CClientGUIElement* CStaticFunctionDefinitions::GUICreateBrowser ( CLuaMain& LuaMain, const CVector2D& position, const CVector2D& size , bool bIsLocal, bool bIsTransparent, bool bRelative, CClientGUIElement* pParent )
5322
5322
{
5323
5323
CGUIWebBrowser* pElement = m_pGUI->CreateWebBrowser ( pParent ? pParent->GetCGUIElement () : nullptr );
5324
- pElement->SetPosition ( CVector2D ( fX , fY ) , bRelative );
5325
- pElement->SetSize ( CVector2D ( fWidth , fHeight ) , bRelative );
5324
+ pElement->SetPosition ( position , bRelative );
5325
+ pElement->SetSize ( size , bRelative );
5326
5326
5327
5327
// Register to the gui manager
5328
5328
CVector2D absoluteSize;
0 commit comments