Fixes issues with shifting the gui selection dropdown to be searchable via the Ex control.

This commit is contained in:
JeffR 2025-09-06 19:28:14 -05:00
parent 1d2ed41ab3
commit 50e05800f4
3 changed files with 30 additions and 12 deletions

View file

@ -291,7 +291,7 @@ $guiContent = new GuiControl(GuiEditorGui, EditorGuiGroup) {
horizSizing = "right";
vertSizing = "center";
position = "8 0";
extent = "300 27";
extent = "300 20";
minExtent = "8 2";
canSave = "1";
visible = "1";

View file

@ -96,7 +96,11 @@ function GuiEditorContentList::scanGroup( %this, %group )
//---------------------------------------------------------------------------------------------
function GuiEditorContentList::onSelect( %this, %ctrl )
function GuiEditorContentList::onSelect( %this, %index, %text )
{
GuiEditor.openForEditing( %ctrl );
//Strip out just the guiControl id
%ctrlId = getToken(%text, "-", 1);
%ctrlId = trim(%ctrlId);
GuiEditor.openForEditing( %ctrlId );
}