This media is not supported in the widget
VIEW IN TELEGRAM
2🤪1
PahomEngine.zip
56 MB
Обнова 0.9.00
Добавлены настройки графики
Переписан UI в настройках
Переписан загрузчик текстур
Добавлены настройки графики
Переписан UI в настройках
Переписан загрузчик текстур
🔥1
This media is not supported in the widget
VIEW IN TELEGRAM
🤯1
Селектор в виде "Карусель" С++ UI (ImGui)
uint8_t u8PresetID = 0;
void GraphicsPresetUI(ImFont* font0) {
static const std::pair <std::string,int> GraphicsPresets[] = {
{"НИЗКИЕ",0},
{"ВЫСОКИЕ",1},
{"УЛЬТРА",2}
};
static const std::array<std::string, 3> setGraph = {
"low",
"high",
"ultra"
};
static int iResID = 0;
if (!u8PresetID) {
iResID = PahomEngine->iReloadTexturesPresetID;
u8PresetID = 1;
}
PahomEngine->iReloadTexturesPresetID = GraphicsPresets[iResID].second;
ImGui::SetCursorPosX(30);
ImGui::PushID(4);
PahomEngine->sGraphPreset = setGraph[iResID];
if (ImGui::Button("<<", { 32,32 })) {
iResID--;
if (iResID < 0) {
iResID = 0;
}
}
ImGui::PopID();
ImGui::SameLine();
ImGui::PushFont(font0);
PahomEngine->TextColored(PahomEngine->RGBA(237.2f, 27.1f, 89.8f, 255), "{}", GraphicsPresets[iResID].first);
ImGui::PopFont();
ImGui::SameLine();
ImGui::PushID(5);
if (ImGui::Button(">>", { 32,32 })) {
iResID++;
if (iResID > 2) {
iResID = 2;
}
}
ImGui::PopID();
}