public GUI_content
 (
     int ID,
     GUI_Item_Type contentType,
     string text,
     string toolTip,
     GUI_textColor textColor,
     FontStyle fontStyle         = FontStyle.Normal,
     TextAnchor textAlign        = TextAnchor.MiddleCenter,
     GUI_Item_State initialState = GUI_Item_State.NORMAL,
     float fixedWidth            = 0f,
     float fixedHeight           = 0f
 )
 {
     this.ID      = ID;
     ContentType  = contentType;
     Text         = text;
     ToolTip      = toolTip;
     TextColor    = textColor;
     FontStyle    = fontStyle;
     TextAlign    = textAlign;
     InitialState = GUI_Item_State.NORMAL;
     FixedWidth   = fixedWidth;
     FixedHeight  = fixedHeight;
 }
예제 #2
0
 public GUI_content_hSlider
 (
     int ID,
     string text,
     string toolTip,
     GUI_textColor textColor,
     float sliderValue,
     float leftValue,
     float rightValue,
     FontStyle fontStyle  = FontStyle.Normal,
     TextAnchor textAlign = TextAnchor.MiddleCenter,
     float fixedWidth     = 0f,
     float fixedHeight    = 0f,
     int decimals         = 0
 ) : base(ID, GUI_Item_Type.HORIZONTALSLIDER, text, toolTip, textColor, fontStyle, textAlign, GUI_Item_State.NORMAL, fixedWidth, fixedHeight)
 {
     SliderValue = sliderValue;
     LeftValue   = leftValue;
     RightValue  = rightValue;
     Decimals    = decimals;
 }