public bool TryGetModifiedAppearance(out VisualAppearance appearance) { appearance = Player.GetDefaultAppearance(); appearance.SpeedFactor = SpeedFactor; appearance.SizeFactor = new Vector3(1.0f, 1.0f, 1.0f); return(true); }
public bool TryGetModifiedAppearance(out VisualAppearance appearance) { if (IsUsingMimic) { appearance = MimicTarget.GetDefaultAppearance(); var modifier = Modifier.GetModifier(MimicTarget); if (modifier is IVisualAlteration alteration) { alteration.TryGetModifiedAppearance(out appearance); } return(true); } appearance = Player.GetDefaultAppearance(); return(false); }
protected virtual void SetAppearance(VisualAppearance appearance) { switch(appearance) { case VisualAppearance.MultiForm: case VisualAppearance.MultiBox: _shrinkPagesToFit = true; // shrink tabs to fit width _positionAtTop = false; // draw tabs at bottom of control _showClose = false; // do not show the close button _showArrows = false; // do not show the scroll arrow buttons _boldSelected = false; // do not show selected pages in bold _idePixelArea = true; // show a one pixel border at top or bottom IDEPixelBorder = false; // do not show a one pixel border round control break; case VisualAppearance.MultiDocument: _shrinkPagesToFit = false; // shrink tabs to fit width _positionAtTop = true; // draw tabs at bottom of control _showClose = true; // do not show the close button _showArrows = true; // do not show the scroll arrow buttons _boldSelected = true; // do not show selected pages in bold _idePixelArea = true; // show a one pixel border at top or bottom IDEPixelBorder = false; // do not show a one pixel border round control break; } // These properties are the same whichever style is selected _hotTrack = false; // do not hot track paes _dimUnselected = true; // draw dimmed non selected pages // Define then starting page for drawing if (_tabPages.Count > 0) _startPage = 0; else _startPage = -1; _appearance = appearance; // Define the correct style indexer SetStyleIndex(); }
public bool TryGetModifiedAppearance(out VisualAppearance appearance) { appearance = Player.GetDefaultAppearance(); appearance.SpeedFactor = SpeedFactor; return(true); }
public void ResetAppearance() { Appearance = VisualAppearance.MultiForm; }
public static bool TryGetAppearance(this PlayerControl player, IVisualAlteration modifier, out VisualAppearance appearance) { if (modifier != null) { return(modifier.TryGetModifiedAppearance(out appearance)); } appearance = player.GetDefaultAppearance(); return(false); }