mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-22 19:31:17 +00:00
- fake generic font support for the dialogue system.
This commit is contained in:
parent
cedc5a9702
commit
b702a5a514
1 changed files with 14 additions and 0 deletions
|
@ -83,6 +83,13 @@ class ConversationMenu : Menu
|
||||||
int mSelection;
|
int mSelection;
|
||||||
int ConversationPauseTic;
|
int ConversationPauseTic;
|
||||||
int LineHeight;
|
int LineHeight;
|
||||||
|
int ReplyLineHeight;
|
||||||
|
Font displayFont;
|
||||||
|
int displayWidth;
|
||||||
|
int displayHeight;
|
||||||
|
int fontScale;
|
||||||
|
int refwidth;
|
||||||
|
int refheight;
|
||||||
|
|
||||||
int SpeechWidth;
|
int SpeechWidth;
|
||||||
int ReplyWidth;
|
int ReplyWidth;
|
||||||
|
@ -106,8 +113,15 @@ class ConversationMenu : Menu
|
||||||
ConversationPauseTic = gametic + 20;
|
ConversationPauseTic = gametic + 20;
|
||||||
DontDim = true;
|
DontDim = true;
|
||||||
|
|
||||||
|
displayFont = SmallFont;
|
||||||
|
displayWidth = CleanWidth;
|
||||||
|
displayHeight = CleanHeight;
|
||||||
|
fontScale = CleanXfac;
|
||||||
|
refwidth = 320;
|
||||||
|
refheight = 200;
|
||||||
ReplyWidth = 320-50-10;
|
ReplyWidth = 320-50-10;
|
||||||
SpeechWidth = screen.GetWidth()/CleanXfac - 24*2;
|
SpeechWidth = screen.GetWidth()/CleanXfac - 24*2;
|
||||||
|
ReplyLineHeight = LineHeight = displayFont.GetHeight();
|
||||||
LineHeight = SmallFont.GetHeight();
|
LineHeight = SmallFont.GetHeight();
|
||||||
|
|
||||||
FormatSpeakerMessage();
|
FormatSpeakerMessage();
|
||||||
|
|
Loading…
Reference in a new issue