X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fdialog_multiplayer_playersetup.c;h=fd4e5cd19bba87545425e15de98b38477d8d4612;hb=945e6b7cee9fa95c13a80805b2f5d60256216793;hp=482a60510e88cdd2f52d6cc68c9e8d49c6f4ad63;hpb=9226d2a17f8329b6964cf4be5c5433e7e763c240;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/xonotic/dialog_multiplayer_playersetup.c b/qcsrc/menu/xonotic/dialog_multiplayer_playersetup.c index 482a60510..fd4e5cd19 100644 --- a/qcsrc/menu/xonotic/dialog_multiplayer_playersetup.c +++ b/qcsrc/menu/xonotic/dialog_multiplayer_playersetup.c @@ -5,7 +5,7 @@ CLASS(XonoticPlayerSettingsTab) EXTENDS(XonoticTab) ATTRIB(XonoticPlayerSettingsTab, title, string, _("Player Setup")) ATTRIB(XonoticPlayerSettingsTab, intendedWidth, float, 0.9) ATTRIB(XonoticPlayerSettingsTab, rows, float, 22) - ATTRIB(XonoticPlayerSettingsTab, columns, float, 6.2) // added extra .2 for center space + ATTRIB(XonoticPlayerSettingsTab, columns, float, 6.2) // added extra .2 for center space ATTRIB(XonoticPlayerSettingsTab, playerNameLabel, entity, NULL) ATTRIB(XonoticPlayerSettingsTab, playerNameLabelAlpha, float, 0) ENDCLASS(XonoticPlayerSettingsTab) @@ -22,7 +22,7 @@ entity makeXonoticPlayerSettingsTab() } void XonoticPlayerSettingsTab_draw(entity me) { - if(cvar_string("_cl_name") == "Player") + if(cvar_string("_cl_name") == cvar_defstring("_cl_name")) me.playerNameLabel.alpha = ((mod(time * 2, 2) < 1) ? 1 : 0); else me.playerNameLabel.alpha = me.playerNameLabelAlpha; @@ -166,7 +166,7 @@ void XonoticPlayerSettingsTab_fill(entity me) e.onClickEntity = main.weaponsDialog; // I don't really think this is useful as is, and especially it doesn't look very clean... // In the future, if ALL of these buttons had some information, then it would be justified/clean - //me.TD(me, 1, 1, e0 = makeXonoticTextLabel(0, string_null)); + //me.TD(me, 1, 1, e0 = makeXonoticTextLabel(0, string_null)); // e0.textEntity = main.weaponsDialog; // e0.allowCut = 1; me.TR(me); @@ -174,7 +174,7 @@ void XonoticPlayerSettingsTab_fill(entity me) me.TD(me, 1, 2, e = makeXonoticButton(_("HUD settings"), '0 0 0')); e.onClick = DialogOpenButton_Click; e.onClickEntity = main.hudDialog; - // TODO: show hud config name with text here + // TODO: show hud config name with text here me.gotoRC(me, me.rows - 1, 0); me.TD(me, 1, me.columns, makeXonoticCommandButton(_("Apply immediately"), '0 0 0', "color -1 -1;name \"$_cl_name\";sendcvar cl_weaponpriority;sendcvar cl_autoswitch;sendcvar cl_forceplayermodels;sendcvar cl_forceplayermodelsfromxonotic;playermodel $_cl_playermodel;playerskin $_cl_playerskin", COMMANDBUTTON_APPLY));