/// <summary> /// Creates the combo display sprite. /// </summary> private void CreateComboDisplay() { // Create the combo display. ComboDisplay = new NumberDisplay(NumberDisplayType.Combo, "0", new Vector2(1, 1)) { Parent = Playfield.ForegroundContainer, Alignment = Alignment.MidCenter, Y = Skin.ComboPosY }; OriginalComboDisplayY = ComboDisplay.Y; ComboDisplay.X = -ComboDisplay.TotalWidth / 2f; // Start off the map by making the display invisible. ComboDisplay.MakeInvisible(); }
/// <summary> /// Creates the combo display sprite. /// </summary> private void CreateComboDisplay() { var skin = SkinManager.Skin.Keys[Screen.Map.Mode]; // Create the combo display. ComboDisplay = new NumberDisplay(NumberDisplayType.Combo, "0", new Vector2(skin.ComboDisplayScale / 100f, skin.ComboDisplayScale / 100f), 0) { Parent = Playfield.ForegroundContainer, Alignment = Alignment.MidCenter, Y = Skin.ComboPosY }; OriginalComboDisplayY = ComboDisplay.Y; // Start off the map by making the display invisible. ComboDisplay.MakeInvisible(); }