Add fallback settings to CSharp
This commit is contained in:
@@ -148,7 +148,7 @@ namespace FlaxEditor.Tools.Foliage
|
||||
Parent = _noFoliagePanel,
|
||||
Enabled = false
|
||||
};
|
||||
var textSize = Style.Current.FontMedium.MeasureText(buttonText);
|
||||
var textSize = Render2D.MeasureText(Style.Current.FontMedium, buttonText);
|
||||
if (_createNewFoliage.Width < textSize.X)
|
||||
{
|
||||
_createNewFoliage.LocalX -= (textSize.X - _createNewFoliage.Width) / 2;
|
||||
|
||||
@@ -106,7 +106,7 @@ namespace FlaxEditor.Tools.Terrain
|
||||
Parent = _noTerrainPanel,
|
||||
Enabled = false
|
||||
};
|
||||
var textSize = Style.Current.FontMedium.MeasureText(buttonText);
|
||||
var textSize = Render2D.MeasureText(Style.Current.FontMedium, buttonText);
|
||||
if (_createTerrainButton.Width < textSize.X)
|
||||
{
|
||||
_createTerrainButton.LocalX -= (textSize.X - _createTerrainButton.Width) / 2;
|
||||
|
||||
@@ -96,7 +96,7 @@ namespace FlaxEditor.Tools.Terrain
|
||||
AnchorPreset = AnchorPresets.HorizontalStretchTop,
|
||||
Offsets = new Margin(0, 0, 0, 40),
|
||||
Parent = this,
|
||||
Font = new MultiFontReference(Style.Current.FontTitle)
|
||||
Font = new FontReference(Style.Current.FontTitle)
|
||||
};
|
||||
var infoLabel = new Label
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user