Example #1
0
    void UpdateBox(float _fX, float _fY, float _fWidth, float _fHeight, UnityGUIExt.GUI_ALLIGN _eScreenAllign, UnityGUIExt.GUI_ALLIGN _eAllign)
    {
        m_rectBox = UnityGUIExt.CreateRect(m_fX, m_fY, m_fWidth, m_fHeight, m_eAllignment, m_eScreenAllignment);

        m_rectText.x      = m_rectBox.x + 1;
        m_rectText.y      = m_rectBox.y + m_rectBox.height + 2;
        m_rectText.width  = m_rectBox.width - 1;
        m_rectText.height = 25;
    }
Example #2
0
 // This needs to be recalled if the screen changes
 public void Initialise(float _fX, float _fY, float _fWidth, float _fHeight, UnityGUIExt.GUI_ALLIGN _eScreenAllign, UnityGUIExt.GUI_ALLIGN _eAllign, string _sText)
 {
     m_fX                = _fX;
     m_fY                = _fY;
     m_fWidth            = _fWidth;
     m_fHeight           = _fHeight;
     m_eScreenAllignment = _eScreenAllign;
     m_eAllignment       = _eAllign;
     m_strText           = _sText;
 }
Example #3
0
    public void Initialise(float _fX, float _fY, float _fWidth, float _fHeight, UnityGUIExt.GUI_ALLIGN _eScreenAllign, UnityGUIExt.GUI_ALLIGN _eAllign, string _sPlayerName)
    {
        m_sPlayerName = _sPlayerName;



        m_fX                = _fX;
        m_fY                = _fY;
        m_fWidth            = _fWidth;
        m_fHeight           = _fHeight;
        m_eAllignment       = _eAllign;
        m_eScreenAllignment = _eScreenAllign;

        UpdateBox(m_fX, m_fY, m_fWidth, m_fHeight, m_eScreenAllignment, m_eAllignment);
    }
Example #4
0
 // Button Creation
 uint CreateStandardButton(float _fX, float _fY, UnityGUIExt.GUI_ALLIGN _eAllignment)
 {
     return(0);
 }
Example #5
0
    public static Button CreateButton(float _fX, float _fY, float _fWidth, float _fHeight, UnityGUIExt.GUI_ALLIGN _eScreenAllign, UnityGUIExt.GUI_ALLIGN _eAllign, string _sText)
    {
        Button newButton = new Button();

        newButton.Initialise(_fX, _fY, _fWidth, _fHeight, _eScreenAllign, _eAllign, _sText);

        newButton.SetMouseTextures("UI/Button", "UI/Button_MouseOver", "UI/Button_Down");

        return(newButton);
    }