本文整理汇总了C#中FButton.SetElements方法的典型用法代码示例。如果您正苦于以下问题:C# FButton.SetElements方法的具体用法?C# FButton.SetElements怎么用?C# FButton.SetElements使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FButton
的用法示例。
在下文中一共展示了FButton.SetElements方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OptionsPage
public OptionsPage()
{
FSprite bg = new FSprite("Futile_White");
bg.width = Futile.screen.width;
bg.height = Futile.screen.height;
bg.color = Color.gray;
bg.x = Futile.screen.width / 2;
bg.y = Futile.screen.height / 2;
AddChild(bg);
// Labels
moonwalkLabel = new FLabel("font","Moon walk");
lefthandedLabel = new FLabel("font","Left handed controls");
screenshakeLabel = new FLabel("font","Screenshake intensity");
controlsScale = new FLabel("font", "Controls scale");
moonwalkLabel.alignment = FLabelAlignment.Left;
lefthandedLabel.alignment = FLabelAlignment.Left;
screenshakeLabel.alignment = FLabelAlignment.Left;
controlsScale.alignment = FLabelAlignment.Left;
SaveAndReturn = new FButton("Futile_White", "Futile_White");
SaveAndReturn.SignalRelease += SaveAndReturnSignal;
// Buttons and probs the slider for screenshake?
moonwalkButton = new FButton("radioOn");
moonwalkButton.expansionAmount = 40f;
if(GameConfig.isMoonWalkingActive)
moonwalkButton.SetElements("radioOn", "radioOn", "radioOn");
else
moonwalkButton.SetElements("radioOff", "radioOff", "radioOff");
moonwalkButton.SignalRelease += HandleMoonWalkButton;
lefthandedButton = new FButton("radioOn");
lefthandedButton.expansionAmount = 40f;
if(GameConfig.isLeftHandedActive)
lefthandedButton.SetElements("radioOn", "radioOn","radioOn");
else
lefthandedButton.SetElements("radioOff", "radioOff", "radioOff");
lefthandedButton.SignalRelease += HandleLeftiesButton;
shakeSlider = new RSlider("sliderBar", "sliderIndicator", GameConfig.screenShakeIntensity);
scaleSlider = new RSlider("sliderBar", "sliderIndicator", GameConfig.virtualControlsSize);
}