Improving window layouts (#532)
* improving component window layouts * sound window update * transform window update * editor top gui animation; delete callback for entity tree * layer window update * other layout changes * grid helper ini * don't allow negative or zero local scale * version bump * camera fps config check if exists
This commit is contained in:
@@ -1324,9 +1324,15 @@ void GraphicsWindow::Create(EditorComponent* _editor)
|
||||
gridHelperCheckBox.SetTooltip("Toggle showing of unit visualizer grid in the world origin");
|
||||
gridHelperCheckBox.SetPos(XMFLOAT2(x, y += step));
|
||||
gridHelperCheckBox.SetSize(XMFLOAT2(itemheight, itemheight));
|
||||
gridHelperCheckBox.OnClick([](wi::gui::EventArgs args) {
|
||||
if (editor->main->config.GetSection("graphics").Has("grid_helper"))
|
||||
{
|
||||
wi::renderer::SetToDrawGridHelper(editor->main->config.GetSection("graphics").GetBool("grid_helper"));
|
||||
}
|
||||
gridHelperCheckBox.OnClick([=](wi::gui::EventArgs args) {
|
||||
wi::renderer::SetToDrawGridHelper(args.bValue);
|
||||
});
|
||||
editor->main->config.GetSection("graphics").Set("grid_helper", args.bValue);
|
||||
editor->main->config.Commit();
|
||||
});
|
||||
gridHelperCheckBox.SetCheck(wi::renderer::GetToDrawGridHelper());
|
||||
AddWidget(&gridHelperCheckBox);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user