|
|
@@ -231,7 +231,7 @@ std::shared_ptr<CButton> CMenuEntry::createButton(CMenuScreen * parent, const Js
|
|
|
help = {"", LIBRARY->generaltexth->translate(button["help"].String())};
|
|
|
}
|
|
|
|
|
|
- Point point = adjustNegativeCoordinate(static_cast<int>(button["x"].Float()), static_cast<int>(button["y"].Float()));
|
|
|
+ Point point = adjustNegativeCoordinate(button["x"].Integer(), button["y"].Integer());
|
|
|
EShortcut shortcut = ENGINE->shortcuts().findShortcut(button["shortcut"].String());
|
|
|
|
|
|
if (shortcut == EShortcut::NONE && !button["shortcut"].String().empty())
|