lua - forms.label - add an optional fixedwidth font param
This commit is contained in:
parent
c0bbbcd47f
commit
afdfe11c7e
|
@ -346,7 +346,8 @@ namespace BizHawk.Client.EmuHawk
|
|||
int? x = null,
|
||||
int? y = null,
|
||||
int? width = null,
|
||||
int? height = null)
|
||||
int? height = null,
|
||||
bool fixedWidth = false)
|
||||
{
|
||||
var form = GetForm(formHandle);
|
||||
if (form == null)
|
||||
|
@ -355,6 +356,11 @@ namespace BizHawk.Client.EmuHawk
|
|||
}
|
||||
|
||||
var label = new Label();
|
||||
if (fixedWidth)
|
||||
{
|
||||
label.Font = new Font("Courier New", 8);
|
||||
}
|
||||
|
||||
SetText(label, caption);
|
||||
form.Controls.Add(label);
|
||||
|
||||
|
|
Loading…
Reference in New Issue