removed broken scripting interface

This commit is contained in:
Ryzerth
2021-07-29 22:08:42 +02:00
parent a487c0aaea
commit 1f3dcc1beb
12 changed files with 0 additions and 105387 deletions

View File

@ -1,22 +0,0 @@
#include <gui/menus/scripting.h>
#include <core.h>
#include <gui/style.h>
#include <imgui/imgui.h>
namespace scriptingmenu {
void init() {
}
void draw(void* ctx) {
float menuWidth = ImGui::GetContentRegionAvailWidth();
for (const auto& [name, script] : core::scriptManager.scripts) {
bool running = script->running;
if (running) { style::beginDisabled(); }
if (ImGui::Button(name.c_str(), ImVec2(menuWidth, 0))) {
script->run();
}
if (running) { style::endDisabled(); }
}
}
}

View File

@ -1,6 +0,0 @@
#pragma once
namespace scriptingmenu {
void init();
void draw(void* ctx);
}