#include "ui/EditorHost.h"#include "common/config.h"#include "common/Module.h"#include "event/Event.h"#include "filesystem/FileData.h"#include "graphics/Graphics.h"#include "image/ImageData.h"#include "timer/Timer.h"#include "ui/UI.h"#include "window/Window.h"#include <Poco/Dynamic/Var.h>#include <Poco/Exception.h>#include <Poco/JSON/Array.h>#include <Poco/JSON/Object.h>#include <Poco/JSON/Parser.h>#include <Poco/JSON/Stringifier.h>#include <imgui.h>#include <simplesquirrel/simplesquirrel.hpp>#include <squirrel.h>#include <algorithm>#include <cstdlib>#include <cstring>#include <cstdio>#include <fstream>#include <filesystem>#include <functional>#include <map>#include <sstream>#include <string>#include <utility>#include <vector>类 | |
| struct | eve::ui::EditorHost::Impl |
命名空间 | |
| namespace | eve |
| namespace | eve::ui |
变量说明
◆ collapsible
| bool collapsible = true |
在文件 EditorHost.cpp 第 454 行定义.
◆ events
| std::vector<HostEvent> events |
在文件 EditorHost.cpp 第 458 行定义.
被这些函数引用 eve::ui::UI::dispatchEvents() , 以及 eve::ui::UISystem::dispatchEvents().
◆ height
| float height = 0.f |
在文件 EditorHost.cpp 第 452 行定义.
◆ id
| std::string id |
在文件 EditorHost.cpp 第 448 行定义.
被这些函数引用 eve::editor::EditorInspector::addBool(), eve::dialogue::Dialogue::addChoice(), eve::editor::EditorInspector::addChoice(), eve::editor::EditorInspector::addFloat(), eve::editor::EditorInspector::addFloat3(), eve::ui::UI::addListItem(), eve::rpg::AttributeSystem::addModifier(), eve::editor::EditorInspector::addString(), eve::editor::EditorToolbar::addTool(), eve::rpg::StatusSystem::apply(), eve::ui::EditorHost::applyEditor(), eve::ui::UI::beginCollapsing(), eve::ui::UI::beginFlex(), eve::ui::UI::beginGroup(), eve::ui::UI::beginList(), eve::ui::UI::beginWindow(), eve::dev::RenderFlow::bind(), eve::card::captureCardState(), eve::Runtime::compileFile(), eve::Runtime::compileSource(), eve::ui::UISystem::consumeClickFor(), eve::dev::RenderFlow::draw(), eve::ui::EditorHost::editorState(), eve::dev::RenderFlow::error(), eve::Runtime::execute(), eve::card::Hand::find(), eve::voxel::CubeTypeRegistry::find(), eve::physics::World::forgetBody(), eve::procgen::GeneratorRegistry::generate(), eve::procgen::PbrRecipeRegistry::generate(), eve::procgen::TextureRecipeRegistry::generate(), eve::spatial::BSPTree2D::insert(), eve::spatial::QuadTree::insert(), eve::spatial::SpatialHash2D::insert(), eve::spatial::BSPTree3D::insert(), eve::spatial::Octree::insert(), eve::spatial::SpatialHash3D::insert(), eve::card::Card::newZone(), eve::tensor::Graph::node(), eve::tensor::Graph::node(), eve::dev::CallGraph::onCall(), eve::network::NetHost::onDatagram(), eve::dev::CallGraph::onDef(), eve::dev::CallGraph::onReturn(), eve::dev::CallGraph::onUse(), eve::tensor::optimizeGraph(), eve::dev::RenderFlow::passBegin(), eve::building::PlacementSystem::placeAtWorld(), eve::building::PlacementSystem::placeAtWorld3D(), eve::building::PlacementSystem::placeGhost(), eve::procgen::GeneratorRegistry::registerAlgorithm(), eve::dialogue::Dialogue::registerCharacter(), eve::procgen::PbrRecipeRegistry::registerPbrRecipe(), eve::procgen::MeshRecipeRegistry::registerRecipe(), eve::procgen::TextureRecipeRegistry::registerRecipe(), eve::Runtime::reload(), eve::ui::EditorHost::removeEditor(), eve::voxel::resolveFaceTex(), eve::card::restoreCardState(), eve::rpg::restoreRpgState(), eve::dialogue::Dialogue::restoreState(), eve::Runtime::runFile(), eve::Runtime::runSource(), eve::ui::EditorHost::saveEditor(), eve::editor::EditorToolbar::setActive(), eve::building::Ghost::setBuildingId(), eve::scene::Scene::setHostVisible(), eve::building::PlacementWorld::setId(), eve::inventory::Bag::setId(), eve::inventory::EquipmentSet::setId(), eve::scene::SceneHost::setOwnerId(), eve::ui::UIHost::setOwnerId(), eve::network::UdpLink::setPeerId(), eve::dev::RenderFlow::sliceBackward(), eve::dev::CallGraph::sliceBackward(), eve::tensor::GpuProgram::tryBuild(), eve::Runtime::unload(), eve::ui::EditorHost::unloadEditor() , 以及 eve::ui::UI::viewportCanvas().
◆ layout
| std::string layout = "vertical" |
◆ rectMax
| std::map<std::string, ImVec2> rectMax |
在文件 EditorHost.cpp 第 459 行定义.
◆ rectMin
| std::map<std::string, ImVec2> rectMin |
在文件 EditorHost.cpp 第 459 行定义.
◆ removed
| bool removed = false |
在文件 EditorHost.cpp 第 460 行定义.
被这些函数引用 eve::rpg::StatusSystem::remove(), eve::rpg::AttributeSystem::removeAllModifiersBySource(), eve::rpg::StatusSystem::removeByEffect(), eve::rpg::StatusSystem::removeBySource(), eve::rpg::StatusSystem::removeByTag(), eve::inventory::InventorySystem::removeItem(), eve::rpg::AttributeSystem::removeModifiersBySource() , 以及 eve::scene::Scene::unlinkNodeKindAt().
◆ resizable
| bool resizable = true |
在文件 EditorHost.cpp 第 453 行定义.
◆ theme
| Object::Ptr theme |
在文件 EditorHost.cpp 第 456 行定义.
被这些函数引用 eve::ui::applyThemeToImGui(), eve::ui::applyThemeToImGui(), eve::ui::setGlobalTheme() , 以及 eve::ui::setGlobalTheme().
◆ title
| std::string title |
◆ type
| std::string type |
在文件 EditorHost.cpp 第 442 行定义.
被这些函数引用 eve::voxel::CubeTypeRegistry::add(), eve::procgen::Grid2D::addObject(), eve::procgen::Grid2D::addObjectAt(), eve::particles::applyConfigDocument(), eve::tensor::kernels::binaryOp(), eve::graphics::Light2D::createLight(), eve::graphics::Light3D::createLight(), eve::tensor::Func::emitBinary(), eve::tensor::Func::emitPool(), eve::tensor::Func::emitReduce(), eve::tensor::Func::emitTernary(), eve::tensor::Func::emitUnary(), eve::tensor::Func::emitUnaryScalar(), eve::card::Card::getEventType(), eve::model3d::ModelData::getMaterialTextureEmbeddedIndex(), eve::model3d::ModelData::getMaterialTexturePath(), eve::model3d::ModelData::getMaterialTextureSlotCount(), eve::dev::DevTool::handleDebugEvent(), eve::animation::SpineSkeletonData::loadFromJson(), eve::network::NetRpc::NetRpc(), eve::audio::Audio::newSourceFromData(), eve::audio::Audio::newSourceFromDecoder(), eve::network::UdpLink::onDatagram(), eve::graphics::webgpu::Graphics::popValidationScope(), eve::tensor::kernels::reduceAxis(), eve::network::UdpLink::send(), eve::network::UdpLink::sendString(), eve::network::NetHost::sendStringTo(), eve::network::NetHost::sendTo(), eve::particles::ParticleEmitter::setEmissionArea(), eve::graphics::Light2D::setType(), eve::graphics::Light3D::setType(), eve::window::sdl::Window::showMessageBox(), eve::dialogue::Dialogue::VarValue::toString(), eve::dialogue::Dialogue::VarValue::typeName() , 以及 eve::tensor::kernels::unaryOp().
◆ value
| Var value |
在文件 EditorHost.cpp 第 444 行定义.
◆ values
| std::map<std::string, Var> values |
在文件 EditorHost.cpp 第 457 行定义.
被这些函数引用 eve::rpg::AttributeSystem::getBase(), eve::procgen::grayscaleImage(), eve::rpg::AttributeSystem::hasAttribute(), eve::database::Connection::insert(), eve::rpg::AttributeSystem::invalidate(), eve::housegen::HouseComponentLibrary::loadFromJson(), eve::rpg::AttributeSystem::removeModifier(), eve::rpg::AttributeSystem::removeModifiersBySource(), eve::database::Connection::update(), eve::database::Repository< T >::update() , 以及 eve::database::Connection::updateByKey().
◆ view
| Object::Ptr view |
在文件 EditorHost.cpp 第 451 行定义.
◆ vmName
| std::string vmName |
在文件 EditorHost.cpp 第 450 行定义.
◆ widget
| std::string widget |
在文件 EditorHost.cpp 第 443 行定义.
◆ width
| float width = 0.f |
在文件 EditorHost.cpp 第 452 行定义.
◆ x
| float x = 0.f |
在文件 EditorHost.cpp 第 452 行定义.
◆ y
| float y = 0.f |
在文件 EditorHost.cpp 第 452 行定义.