mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
text selection color fix
This commit is contained in:
parent
a11ab7a4eb
commit
a548b15d69
2 changed files with 4 additions and 1 deletions
|
|
@ -58,6 +58,9 @@ class EnterNameDlg extends GuiControl {
|
||||||
this.addChild(dlg);
|
this.addChild(dlg);
|
||||||
|
|
||||||
var enterNameEdit = new GuiTextInput(domcasual32);
|
var enterNameEdit = new GuiTextInput(domcasual32);
|
||||||
|
enterNameEdit.text.textColor = 0;
|
||||||
|
enterNameEdit.text.selectionColor.setColor(0xFFFFFFFF);
|
||||||
|
enterNameEdit.text.selectionTile = h2d.Tile.fromColor(0x808080, 0, hxd.Math.ceil(enterNameEdit.text.font.lineHeight));
|
||||||
enterNameEdit.position = new Vector(87, 136);
|
enterNameEdit.position = new Vector(87, 136);
|
||||||
enterNameEdit.extent = new Vector(255, 36);
|
enterNameEdit.extent = new Vector(255, 36);
|
||||||
enterNameEdit.text.text = Settings.highscoreName;
|
enterNameEdit.text.text = Settings.highscoreName;
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ class GuiTextInput extends GuiControl {
|
||||||
public function new(font:h2d.Font) {
|
public function new(font:h2d.Font) {
|
||||||
super();
|
super();
|
||||||
this.text = new TextInput(font);
|
this.text = new TextInput(font);
|
||||||
this.text.textColor = 0;
|
// this.text.textColor = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override function render(scene2d:Scene) {
|
public override function render(scene2d:Scene) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue