Ejemplo n.º 1
0
        private void CreateSkinSelectionUi(float x, ref float y)
        {
            var skinSetting = new SettingsEntryInterface(
                _settingsGroup,
                new Vector2(x, y),
                "Player skin ID",
                typeof(byte),
                0,
                0,
                o => { _clientManager.ChangeSkin((byte)o); }
                );

            y -= 100;

            new ButtonComponent(
                _settingsGroup,
                new Vector2(x, y),
                "Apply skin"
                ).SetOnPress(skinSetting.ApplySetting);

            y -= 40;
        }