Implements misc fixes for the particle editor and particlesList inspector field

- Clicking the [...] button from the Particle Emitter tab now opens to the Particle tab *and* properly selects the particle data to be edited
- Selecting an emitter object in the map and opening the particle editor now selects the Particle Data to be edited
- Selecting a new Particle Data for a particles slot on a Particle Emitter in the editor now correctly updates the values and updates the field display
- Made it so if clicking [...] button on the ParticleEmitterData or other similar fields for objects, it will now open to the Particle editor instead of the Datablock editor
This commit is contained in:
JeffR 2026-04-19 02:18:05 -05:00
parent 12dddd07b5
commit defbaea2fe
7 changed files with 145 additions and 45 deletions

View file

@ -51,8 +51,6 @@ function ParticleEditor::initEditor( %this )
if(exec("./PETabTemplate.gui"))
{
echo("MADE A NEW TAB PAGE: " @ $guiContent);
$guiContent.text = %groupName;
$guiContent.typesList = %typesList;
$guiContent.setName(%editorName);
@ -199,7 +197,7 @@ function ParticleEditor::open(%this, %datablock)
for(%t=0; %t < %typesListCount; %t++)
{
%type = getWord(%typesList, %t);
if( %datablock.isMemberOfClass( %type ) )
{
PE_TabBook.selectPage(%i);