Refine dark editor and launcher interface
Native and manual checks / native (ubuntu-24.04) (push) Failing after 52s
Native and manual checks / manual (push) Successful in 34s
Windows editor and software Vulkan / windows-graphics (push) Canceled after 0s
Native and manual checks / native (windows-2025) (push) Canceled after 0s
Native and manual checks / native (ubuntu-24.04) (push) Failing after 52s
Native and manual checks / manual (push) Successful in 34s
Windows editor and software Vulkan / windows-graphics (push) Canceled after 0s
Native and manual checks / native (windows-2025) (push) Canceled after 0s
This commit is contained in:
@@ -20,6 +20,12 @@ int main() {
|
||||
"test", "Unicode scene was saved under the wrong filename");
|
||||
session.commands().call("faset_document_open", {{"path", "Scenes/Начало 世界.scene.json"}});
|
||||
auto& commands = session.commands();
|
||||
const auto play = commands.call("faset_play", {{"document", document.at("id")}});
|
||||
require(play.value("play_pending", false) && session.play_pending() && !session.playing(),
|
||||
"test", "Play must expose its cancellable build phase before Player starts");
|
||||
commands.call("faset_stop", Json::object());
|
||||
require(!session.play_pending() && !session.playing(), "test",
|
||||
"Stop must cancel a pending Play build");
|
||||
const auto initial = commands.call("faset_project_settings_get", Json::object());
|
||||
auto changed = commands.call("faset_project_settings_set",
|
||||
{{"revision", initial.at("revision")},
|
||||
|
||||
@@ -244,6 +244,19 @@ int main() {
|
||||
state = session.authoring().query(ui.current_document());
|
||||
check(state["scene"]["entities"][0]["name"] == "Дверь", "Inspector Unicode rename");
|
||||
const auto cid = state["scene"]["entities"][0]["components"][0]["id"].get<std::string>();
|
||||
ui.widgets().find("inspector_panel")->layout.width = 210;
|
||||
ui.frame({});
|
||||
const auto* position_row = ui.widgets().find("field-" + cid + "-position");
|
||||
const auto* last_axis = ui.widgets().find("field-" + cid + "-position-2");
|
||||
check(position_row && position_row->layout.stack_vertical,
|
||||
"Narrow Inspector stacks vector fields");
|
||||
check(last_axis && last_axis->rect.width >= 35 &&
|
||||
last_axis->rect.x + last_axis->rect.width <=
|
||||
ui.widgets().find("properties")->rect.x +
|
||||
ui.widgets().find("properties")->rect.width,
|
||||
"Narrow Inspector keeps vector inputs within the panel");
|
||||
ui.widgets().find("inspector_panel")->layout.width = 312;
|
||||
ui.frame({});
|
||||
const auto position = "field-" + cid + "-position-0";
|
||||
text(ui, position, "3.5");
|
||||
state = session.authoring().query(ui.current_document());
|
||||
|
||||
Reference in New Issue
Block a user