本文整理汇总了C#中Skin.get方法的典型用法代码示例。如果您正苦于以下问题:C# Skin.get方法的具体用法?C# Skin.get怎么用?C# Skin.get使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Skin
的用法示例。
在下文中一共展示了Skin.get方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TextField
public TextField( string text, Skin skin, string styleName = null )
: this(text, skin.get<TextFieldStyle>( styleName ))
{
}
示例2: ScrollPane
public ScrollPane( Element widget, Skin skin, string styleName ) : this( widget, skin.get<ScrollPaneStyle>( styleName ) )
{ }
示例3: prepCanvas
void prepCanvas()
{
_skin = Skin.createDefaultSkin();
// modify some of the default styles to better suit our needs
var tfs = _skin.get<TextFieldStyle>();
tfs.background.leftWidth = tfs.background.rightWidth = 4;
tfs.background.bottomHeight = 0;
tfs.background.topHeight = 3;
var checkbox = _skin.get<CheckBoxStyle>();
checkbox.checkboxOn.minWidth = checkbox.checkboxOn.minHeight = 15;
checkbox.checkboxOff.minWidth = checkbox.checkboxOff.minHeight = 15;
checkbox.checkboxOver.minWidth = checkbox.checkboxOver.minHeight = 15;
// since we arent using this as a Component on an Entity we'll fake it here
ui = new UICanvas();
ui.onAddedToEntity();
ui.stage.isFullScreen = true;
_table = new Table();
_table.top().left();
_table.defaults().setPadTop( 4 ).setPadLeft( 4 ).setPadRight( 0 ).setAlign( Align.left );
_table.setBackground( new PrimitiveDrawable( new Color( 40, 40, 40 ) ) );
// wrap up the table in a ScrollPane
_scrollPane = ui.stage.addElement( new ScrollPane( _table, _skin ) );
// force a validate which will layout the ScrollPane and populate the proper scrollBarWidth
_scrollPane.validate();
_scrollPane.setSize( 295 + _scrollPane.getScrollBarWidth(), Screen.height );
}
示例4: ProgressBar
public ProgressBar( Skin skin, string styleName = null ) : this( 0, 1, 0.01f, false, skin.get<ProgressBarStyle>( styleName ) )
{}
示例5: CheckBox
public CheckBox( string text, Skin skin, string styleName = null ) : this( text, skin.get<CheckBoxStyle>( styleName ) )
{}
示例6: Dialog
public Dialog( string title, Skin skin, string styleName = null ) : this( title, skin.get<WindowStyle>( styleName ) )
{}
示例7: TextButton
public TextButton( string text, Skin skin, string styleName = null ) : this( text, skin.get<TextButtonStyle>( styleName ) )
{}
示例8: Label
public Label( string text, Skin skin, string styleName = null )
: this(text, skin.get<LabelStyle>( styleName ))
{
}
示例9: TextTooltip
public TextTooltip( string text, Element targetElement, Skin skin, string styleName = null )
: this(text, targetElement, skin.get<TextTooltipStyle>( styleName ))
{
}
示例10: ImageButton
public ImageButton( Skin skin, string styleName = null ) : this( skin.get<ImageButtonStyle>( styleName ) )
{}
示例11: Slider
public Slider( Skin skin, string styleName = null, float min = 0, float max = 1, float step = 0.1f ) : this( min, max, step, false, skin.get<SliderStyle>( styleName ) )
{}