release Furnace Pro

This commit is contained in:
tildearrow 2023-04-01 17:00:51 -05:00
parent 6fe8bea50e
commit 2255bdf6c7
12 changed files with 8246 additions and 454 deletions

View file

@ -22,6 +22,7 @@
#include "IconsFontAwesome4.h"
#include "guiConst.h"
#include <imgui.h>
#include "../ta-log.h"
DivSystem FurnaceGUI::systemPicker() {
DivSystem ret=DIV_SYSTEM_NULL;
@ -33,17 +34,21 @@ DivSystem FurnaceGUI::systemPicker() {
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
if (ImGui::InputTextWithHint("##SysSearch","Search...",&sysSearchQuery)) reissueSearch=true;
if (ImGui::BeginTabBar("SysCats")) {
for (int i=0; chipCategories[i]; i++) {
if (ImGui::BeginTabItem(chipCategoryNames[i])) {
if (ImGui::IsItemActive()) {
reissueSearch=true;
if (dejarteArriba) {
curSysSection=demoChips;
} else {
if (ImGui::BeginTabBar("SysCats")) {
for (int i=0; chipCategories[i]; i++) {
if (ImGui::BeginTabItem(chipCategoryNames[i])) {
if (ImGui::IsItemActive()) {
reissueSearch=true;
}
curSysSection=chipCategories[i];
ImGui::EndTabItem();
}
curSysSection=chipCategories[i];
ImGui::EndTabItem();
}
ImGui::EndTabBar();
}
ImGui::EndTabBar();
}
if (reissueSearch) {
String lowerCase=sysSearchQuery;
@ -90,8 +95,10 @@ DivSystem FurnaceGUI::systemPicker() {
if (hoveredSys!=DIV_SYSTEM_NULL) {
const DivSysDef* sysDef=e->getSystemDef(hoveredSys);
ImGui::TextWrapped("%s",sysDef->description);
} else {
ImGui::TextWrapped("register NOW and unlock over 50 chips!");
}
}
ImGui::EndChild();
return ret;
}
}