#include "ui.hpp" #include "imgui.h" #include "administration.hpp" #include "locales.hpp" extern bool draw_contact_form(contact* buffer, bool back_button_enabled = true, bool viewing_only = false); static contact company_info; void ui_setup_settings() { company_info = administration_get_company_info(); } void ui_draw_settings() { // @localize if (ImGui::BeginTabBar("SettingsTabBar", 0)) { if (ImGui::BeginTabItem("Company")) { bool save = draw_contact_form(&company_info, false); if (save) { administration_set_company_info(company_info); } ImGui::EndTabItem(); } if (ImGui::BeginTabItem("VAT Rates")) { ImGui::Text("This is the Broccoli tab!\nblah blah blah blah blah"); ImGui::EndTabItem(); } ImGui::EndTabBar(); } }