rename interfaces to packs
This commit is contained in:
@@ -12,7 +12,7 @@ namespace RenderManager {
|
||||
UI::SameLine();
|
||||
|
||||
if (UI::Button('Reload')) {
|
||||
InterfacesManager::LoadConfigs();
|
||||
PacksManager::LoadConfigs();
|
||||
}
|
||||
|
||||
if (UI::BeginTable('configs', 5, UI::TableFlags(UI::TableFlags::Resizable | UI::TableFlags::Sortable | UI::TableFlags::NoSavedSettings | UI::TableFlags::BordersInnerV | UI::TableFlags::SizingStretchProp | UI::TableFlags::ScrollY))) {
|
||||
@@ -23,11 +23,11 @@ namespace RenderManager {
|
||||
UI::TableSetupColumn("Enable", UI::TableFlags(UI::TableColumnFlags::NoResize | UI::TableColumnFlags::WidthFixed), 60.);
|
||||
UI::TableHeadersRow();
|
||||
|
||||
const array<string> ConfigIds = InterfacesManager::G_Configs.GetKeys();
|
||||
const array<string> ConfigIds = PacksManager::G_Configs.GetKeys();
|
||||
|
||||
for (uint i = 0; i < ConfigIds.Length; i++) {
|
||||
const string Id = ConfigIds[i];
|
||||
const InterfacesConfig@ Config = InterfacesManager::GetConfig(Id);
|
||||
const PackConfig@ Config = PacksManager::GetConfig(Id);
|
||||
|
||||
UI::TableNextRow();
|
||||
UI::TableNextColumn();
|
||||
@@ -40,14 +40,14 @@ namespace RenderManager {
|
||||
UI::Text(Config.ModePattern);
|
||||
UI::TableNextColumn();
|
||||
|
||||
const int index = InterfacesManager::G_EnabledConfigs.Find(Id);
|
||||
const int index = PacksManager::G_EnabledConfigs.Find(Id);
|
||||
const bool enabled = (index >= 0);
|
||||
const bool newValue = UI::Checkbox('###'+ Id, enabled);
|
||||
if (newValue != enabled) {
|
||||
if (enabled) {
|
||||
InterfacesManager::DisableInterface(Id);
|
||||
PacksManager::DisableInterface(Id);
|
||||
} else {
|
||||
InterfacesManager::EnableInterface(Id);
|
||||
PacksManager::EnableInterface(Id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user