## XIDInterf
Class XIIIArrowButton

source: C:\XIII\XIDInterf\Classes\XIIIArrowButton.uc

    Core.Object
       |
       +--GUI.GUI
          |
          +--GUI.GUIComponent
             |
             +--GUI.GUILabel
                |
                +--XIDInterf.XIIIGUIBaseButton
                   |
                   +--XIDInterf.XIIIArrowButton

Direct Known Subclasses:None

class XIIIArrowButton
extends XIDInterf.XIIIGUIBaseButton

    //============================================================================
    // A simple button with text
    //============================================================================

Variables
`bool` | `bLeftOrient`
`tIconL,` | `tIconR`

Function Summary
`void` | `Paint(Canvas C, float X, float Y)`

Source Code

    00001	//============================================================================
    00002	// A simple button with text
    00003	//============================================================================
    00004	class XIIIArrowButton extends XIIIGUIBaseButton;
    00005
    00006	VAR texture   tIconL, tIconR;
    00007	VAR bool      bLeftOrient;
    00008
    00009	function Paint(Canvas C,float X,float Y)
    00010	{
    00011	    Super.Paint(C,X,Y);
    00012		if ( myRoot.CurrentPF==0 )
    00013		{
    00014			C.Style=5;
    00015			if ( MenuState==MSAT_Focused )
    00016				C.DrawColor = C.Static.MakeColor(255,255,255,255);
    00017			else
    00018				C.DrawColor = C.Static.MakeColor(255,255,255,128);
    00019		}
    00020		else
    00021			C.DrawColor = C.Static.MakeColor(255,255,255);
    00022
    00023	    if (bLeftOrient)
    00024	    {
    00025			DrawStretchedTexture(C, 0, 0, 16, 16, tIconL);
    00026	//        C.SetPos(0,0);
    00027	//        C.DrawTile( tIcon, 16, 16, tIcon.USize, 0, -tIcon.USize,  );
    00028	    }
    00029	    else
    00030	    {
    00031			DrawStretchedTexture(C, 0, 0, 16, 16, tIconR);
    00032	//        C.SetPos(0,0);
    00033	//        C.DrawTile( tIcon, 16, 16, 0, 0, tIcon.USize, tIcon.VSize );
    00034	    }
    00035		C.Style=1;
    00036
    00037	}
    00038
    00039
    00040
    00041	defaultproperties
    00042	{
    00043	     tIconL=Texture'XIIIMenuStart.Control_Console.fleche_gauche'
    00044	     tIconR=Texture'XIIIMenuStart.Control_Console.fleche_droite'
    00045	}

End Source Code