improve ui sizes

This commit is contained in:
Beu
2025-01-12 10:53:46 +01:00
parent b8a4c8e673
commit 402e0168ee

View File

@@ -4,7 +4,8 @@ namespace RenderManager {
void RenderInterface() {
if (G_RenderInterface) {
UI::Begin(Icons::Television + " Custom Interface Loader", G_RenderInterface);
UI::SetNextWindowSize(550., 250.);
UI::Begin(Icons::Television + " Custom Interface Loader###CustomInterfaceLoader", G_RenderInterface, UI::WindowFlags::NoSavedSettings);
if (UI::Button(Icons::FolderOpen + ' Open File Explorer')) {
OpenExplorerPath(IO::FromStorageFolder(''));
@@ -42,12 +43,12 @@ namespace RenderManager {
UI::Dummy(vec2());
if (UI::BeginTable('configs', 5, UI::TableFlags(UI::TableFlags::Resizable | UI::TableFlags::Sortable | UI::TableFlags::NoSavedSettings | UI::TableFlags::SizingStretchProp |UI::TableFlags::ScrollY ))) {
UI::TableSetupColumn("Name", UI::TableColumnFlags::DefaultSort);
UI::TableSetupColumn("Author", UI::TableColumnFlags::None);
UI::TableSetupColumn("Version", UI::TableColumnFlags::None);
UI::TableSetupColumn("Modes", UI::TableColumnFlags::None);
UI::TableSetupColumn("Enable", UI::TableColumnFlags::NoSort, 60.);
if (UI::BeginTable('ConfigTable', 5, UI::TableFlags(UI::TableFlags::NoSavedSettings | UI::TableFlags::Resizable | UI::TableFlags::Sortable | UI::TableFlags::SizingStretchProp |UI::TableFlags::ScrollY ))) {
UI::TableSetupColumn("Name", UI::TableColumnFlags::DefaultSort, 200.);
UI::TableSetupColumn("Author", UI::TableColumnFlags::None, 150.);
UI::TableSetupColumn("Version", UI::TableColumnFlags::None, 100.);
UI::TableSetupColumn("Modes", UI::TableColumnFlags::None, 300.);
UI::TableSetupColumn("Enable", UI::TableColumnFlags::NoSort, 70.);
UI::TableHeadersRow();
const array<string> ConfigIds = PacksManager::G_Configs.GetKeys();