From: terencehill Date: Sat, 3 Aug 2013 14:53:24 +0000 (+0200) Subject: Remove the standalone clear button for the soundlist filter X-Git-Tag: xonotic-v0.8.1~157^2~17 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8b086d09fdd23f1fc1f5df8bab2097c20bc75ed7;p=xonotic%2Fxonotic-data.pk3dir.git Remove the standalone clear button for the soundlist filter --- diff --git a/qcsrc/menu/xonotic/dialog_multiplayer_musicplayer.c b/qcsrc/menu/xonotic/dialog_multiplayer_musicplayer.c index 83a1f04b0..4ff457912 100644 --- a/qcsrc/menu/xonotic/dialog_multiplayer_musicplayer.c +++ b/qcsrc/menu/xonotic/dialog_multiplayer_musicplayer.c @@ -21,19 +21,15 @@ entity makeXonoticMusicPlayerTab() void XonoticMusicPlayerTab_fill(entity me) { entity e; - entity btn; entity soundList, playList; float columns_nospacing = (me.columns - 0.2); me.TR(me); me.TD(me, 1, 0.5, e = makeXonoticTextLabel(0, _("Filter:"))); - me.TD(me, 1, 0.5, btn = makeXonoticButton(_("Clear"), '0 0 0')); - btn.onClick = InputBox_Clear_Click; - me.TD(me, 1, 2, e = makeXonoticInputBox(0, string_null)); + me.TD(me, 1, 2.5, e = makeXonoticInputBox(0, string_null)); soundList = makeXonoticSoundList(); e.onChange = SoundList_Filter_Change; e.onChangeEntity = soundList; - btn.onClickEntity = e; soundList.controlledTextbox = e; playList = makeXonoticPlayList(); soundList.playlist = playList;