From a8f65efc0151cb4da88691af775a1256fcc6b2f1 Mon Sep 17 00:00:00 2001 From: b_krueger Date: Mon, 12 Apr 2010 11:32:06 +0000 Subject: BugFix Plugin 5000points.usdx is now scoring correct Plugin teamduel.usdx now shows both player names (from team 1 and team 2) Maybe, the lua-plugins are not executed atomic (can go wrong on drawing in gl): please verify! git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2230 b956fd51-792f-4845-bead-9b4dfca2ff2c --- game/plugins/5000points.usdx | 4 ++-- game/plugins/teamduel.usdx | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'game') diff --git a/game/plugins/5000points.usdx b/game/plugins/5000points.usdx index 7ebd23b4..b48984f0 100644 --- a/game/plugins/5000points.usdx +++ b/game/plugins/5000points.usdx @@ -21,7 +21,7 @@ function Sing() Scores = ScreenSing.GetScores(); for i = 1, #Scores do - if (Scores[i] >= 5000) then + if (Scores[i] >= 100) then ScreenSing.Finish(); break; end @@ -34,7 +34,7 @@ function Calculate_Winner() Scores = Scores or ScreenSing.GetScores(); local Ranking = {}; for i = 1, #Scores do - if Scores[i] >= 5000 then + if Scores[i] >= 100 then Ranking[i] = 1 else Ranking[i] = #Scores diff --git a/game/plugins/teamduel.usdx b/game/plugins/teamduel.usdx index 844e53b0..a32d963d 100644 --- a/game/plugins/teamduel.usdx +++ b/game/plugins/teamduel.usdx @@ -130,13 +130,12 @@ function DrawPlayerText(i, Text) Gl.Vertex(OSD[i].Right, OSD[i].Bottom); Gl.Vertex(OSD[i].Right, OSD[i].Top); Gl.End(); - + -- text Gl.Color(1, 0, 0, 1); - TextGl.Size(6); + TextGl.Size(18); TextGl.Style(1); TextGl.Italic(false); - local PosX = (OSD[i].Left + OSD[i].Right) / 2; PosX = PosX - TextGl.Width(Text) / 2; -- cgit v1.2.3