From: MirceaKitsune Date: Sun, 12 Sep 2010 16:44:33 +0000 (+0300) Subject: Arrange the campaign text a little differently (so we can have one more line) X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=782819c95900b48d1cfab26abb25ab6f2075092e;p=voretournament%2Fvoretournament.git Arrange the campaign text a little differently (so we can have one more line) --- diff --git a/data/qcsrc/menu/voret/campaign.c b/data/qcsrc/menu/voret/campaign.c index edd02b47..039cc9f7 100644 --- a/data/qcsrc/menu/voret/campaign.c +++ b/data/qcsrc/menu/voret/campaign.c @@ -217,7 +217,7 @@ void resizeNotifyVoretCampaignList(entity me, vector relOrigin, vector relSize, me.realFontSize_y = me.fontSize / (me.itemAbsSize_y = (absSize_y * me.itemHeight)); me.realFontSize_x = me.fontSize / (me.itemAbsSize_x = (absSize_x * (1 - me.controlWidth))); - me.realUpperMargin1 = 0.5 * me.realFontSize_y; + me.realUpperMargin1 = 0.25 * me.realFontSize_y; me.realUpperMargin2 = me.realUpperMargin1 + 2 * me.realFontSize_y; me.checkMarkSize = (eX * (me.itemAbsSize_y / me.itemAbsSize_x) + eY) * 0.5; @@ -231,7 +231,7 @@ void resizeNotifyVoretCampaignList(entity me, vector relOrigin, vector relSize, me.checkMarkOrigin = eY + eX * (me.columnCheckMarkOrigin + me.columnCheckMarkSize) - me.checkMarkSize; - rewrapCampaign(me.columnNameSize, me.rowsPerItem - 3, me.emptyLineHeight, me.realFontSize); + rewrapCampaign(me.columnNameSize, me.rowsPerItem - 2, me.emptyLineHeight, me.realFontSize); } void clickListBoxItemVoretCampaignList(entity me, float i, vector where) {