mirror of
https://github.com/rrika/cdcEngineDXHR.git
synced 2024-11-23 13:39:54 +00:00
show scripttype from objects list/intro window
This commit is contained in:
parent
af17997916
commit
602a48dc46
@ -12,6 +12,7 @@
|
||||
#if ENABLE_IMGUI
|
||||
#include "../imgui/imgui.h"
|
||||
#include "cdcObjects/Object.h"
|
||||
#include "cdcResource/ResolveSection.h"
|
||||
#endif
|
||||
|
||||
#ifndef _WIN32
|
||||
@ -274,6 +275,15 @@ uint32_t buildUI(UIActions& uiact, cdc::Object *obj) {
|
||||
if (ImGui::SmallButton("Hide")) hide = true;
|
||||
}
|
||||
|
||||
if (uint32_t scriptTypeID = obj->dtpData->m_scriptTypeID) {
|
||||
ImGui::SameLine();
|
||||
if (ImGui::SmallButton("Type")) {
|
||||
auto *scriptSection = cdc::g_resolveSections[8];
|
||||
if (cdc::ScriptType *scriptType = (cdc::ScriptType*)scriptSection->getWrapped(scriptSection->getDomainId(scriptTypeID)))
|
||||
uiact.select(scriptType);
|
||||
}
|
||||
}
|
||||
|
||||
for (uint32_t j = 0; j < obj->numModels; j++) {
|
||||
auto *mesh = obj->models[j]->renderMesh;
|
||||
if (!mesh)
|
||||
|
@ -66,7 +66,7 @@ struct ObjectBaseData {
|
||||
uint32_t dwordB4;
|
||||
uint32_t dwordB8;
|
||||
void *TuneDataPtr; // BC, override data in object by this
|
||||
uint32_t dwordC0;
|
||||
uint32_t m_scriptTypeID; // C0
|
||||
cdc::ObjectBlobAnim **animationsC4;
|
||||
uint32_t dwordC8;
|
||||
uint32_t dwordCC;
|
||||
|
Loading…
Reference in New Issue
Block a user