mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-03 06:11:03 +00:00
- fixed mouse coordinate checks for Strife conversations
ypositions needs one entry per response, not one per line.
This commit is contained in:
parent
2c75e2cac9
commit
9963b5a57f
1 changed files with 1 additions and 2 deletions
|
@ -497,14 +497,13 @@ class ConversationMenu : Menu
|
||||||
double sx = (x - 160.0) * CleanXfac + (screen.GetWidth() * 0.5);
|
double sx = (x - 160.0) * CleanXfac + (screen.GetWidth() * 0.5);
|
||||||
double sy = (y - 100.0) * CleanYfac + (screen.GetHeight() * 0.5);
|
double sy = (y - 100.0) * CleanYfac + (screen.GetHeight() * 0.5);
|
||||||
|
|
||||||
ypositions.Push(sy);
|
|
||||||
|
|
||||||
screen.DrawText(displayFont, Font.CR_GREEN, sx / fontScale, sy / fontScale, mResponseLines[i], DTA_KeepRatio, true, DTA_VirtualWidth, displayWidth, DTA_VirtualHeight, displayHeight);
|
screen.DrawText(displayFont, Font.CR_GREEN, sx / fontScale, sy / fontScale, mResponseLines[i], DTA_KeepRatio, true, DTA_VirtualWidth, displayWidth, DTA_VirtualHeight, displayHeight);
|
||||||
|
|
||||||
if (i == mResponses[response])
|
if (i == mResponses[response])
|
||||||
{
|
{
|
||||||
String tbuf;
|
String tbuf;
|
||||||
|
|
||||||
|
ypositions.Push(sy);
|
||||||
response++;
|
response++;
|
||||||
tbuf = String.Format("%d.", response);
|
tbuf = String.Format("%d.", response);
|
||||||
x = 50 - displayFont.StringWidth(tbuf);
|
x = 50 - displayFont.StringWidth(tbuf);
|
||||||
|
|
Loading…
Reference in a new issue