distinguish editable and non editable textboxes; the former will usually
be colored like input fields, while the others will be colored like normal text
This commit is contained in:
parent
feb555b087
commit
5299ab0304
1 changed files with 2 additions and 0 deletions
|
@ -759,6 +759,8 @@ FGDialog::setColor(puObject * object, SGPropertyNode * props, int which)
|
|||
string type = props->getName();
|
||||
if (type == "")
|
||||
type = "dialog";
|
||||
if (type == "textbox" && props->getBoolValue("editable"))
|
||||
type += "-editable";
|
||||
|
||||
FGColor *c = new FGColor(_gui->getColor("background"));
|
||||
c->merge(_gui->getColor(type));
|
||||
|
|
Loading…
Add table
Reference in a new issue