mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-02 18:56:49 +01:00
feat(model): .ng3d and .ng3p in what this branch adds, as below it
The model files are .ng3d and the family store .ng3p, selected with modelformat ng3d (8637101d9 on feat/e4d-compact).
This commit is contained in:
@@ -953,7 +953,7 @@ bool eu07m_model_panel::load(TModel3d &Model)
|
||||
m_problem = STR("The models of the EU07M format are turned off (modelformat in eu07.ini)");
|
||||
return false;
|
||||
}
|
||||
auto const path{FileCased(Model.NameGet() + ".r3a")};
|
||||
auto const path{FileCased(Model.NameGet() + ".ng3d")};
|
||||
if (path.empty())
|
||||
{
|
||||
// one is made of the model as the game loaded it: for a vehicle, its body or its cab, that is what the game writes to the
|
||||
@@ -1298,12 +1298,12 @@ void eu07m_model_panel::render_header()
|
||||
}
|
||||
if (m_importable && ImGui::IsItemHovered())
|
||||
{
|
||||
ImGui::SetTooltip("%s", STR_C("Writes an .r3a file beside the model, made of the model as the game has it. From then on the game loads the model from it, in every scenery"));
|
||||
ImGui::SetTooltip("%s", STR_C("Writes an .ng3d file beside the model, made of the model as the game has it. From then on the game loads the model from it, in every scenery"));
|
||||
}
|
||||
// the game doesn't compare the .r3a with the file it was made of: an update of that one is shadowed by it
|
||||
// the game doesn't compare the .ng3d with the file it was made of: an update of that one is shadowed by it
|
||||
if (m_importable)
|
||||
{
|
||||
ImGui::TextDisabled("%s", STR_C("While the .r3a is there, a later update of the .e3d or .t3d doesn't reach the game: import it again, or delete the .r3a"));
|
||||
ImGui::TextDisabled("%s", STR_C("While the .ng3d is there, a later update of the .e3d or .t3d doesn't reach the game: import it again, or delete the .ng3d"));
|
||||
}
|
||||
if (false == m_message.empty())
|
||||
{
|
||||
@@ -1800,7 +1800,7 @@ bool eu07m_model_panel::has_animations() const
|
||||
bool eu07m_model_panel::editable(scene::basic_node const *Node) const
|
||||
{
|
||||
auto const *instance{dynamic_cast<TAnimModel const *>(Node)};
|
||||
return Global.modelformat_eu07m && (instance != nullptr) && (instance->pModel != nullptr) && (false == FileCased(instance->pModel->NameGet() + ".r3a").empty());
|
||||
return Global.modelformat_eu07m && (instance != nullptr) && (instance->pModel != nullptr) && (false == FileCased(instance->pModel->NameGet() + ".ng3d").empty());
|
||||
}
|
||||
|
||||
bool eu07m_model_panel::pick_vehicle(std::string_view const Name, int const Part)
|
||||
|
||||
Reference in New Issue
Block a user