mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-03 00:46:55 +02:00
Chat textbox now correctly positioned and uses blue slider
This commit is contained in:
@ -768,8 +768,9 @@ std::shared_ptr<CTextBox> InterfaceObjectConfigurable::buildTextBox(const JsonNo
|
|||||||
auto alignment = readTextAlignment(config["alignment"]);
|
auto alignment = readTextAlignment(config["alignment"]);
|
||||||
auto color = readColor(config["color"]);
|
auto color = readColor(config["color"]);
|
||||||
auto text = readText(config["text"]);
|
auto text = readText(config["text"]);
|
||||||
|
auto blueTheme = config["blueTheme"].Bool();
|
||||||
|
|
||||||
return std::make_shared<CTextBox>(text, rect, 0, font, alignment, color);
|
return std::make_shared<CTextBox>(text, rect, blueTheme ? 1 : 0, font, alignment, color);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::shared_ptr<CIntObject> InterfaceObjectConfigurable::buildWidget(JsonNode config) const
|
std::shared_ptr<CIntObject> InterfaceObjectConfigurable::buildWidget(JsonNode config) const
|
||||||
|
@ -89,7 +89,8 @@
|
|||||||
"font": "small",
|
"font": "small",
|
||||||
"alignment": "left",
|
"alignment": "left",
|
||||||
"color": "white",
|
"color": "white",
|
||||||
"rect": {"x": 440, "y": 70, "w": 430, "h": 495}
|
"blueTheme" : true,
|
||||||
|
"rect": {"x": 440, "y": 68, "w": 418, "h": 495}
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user