Page MenuHomeFeedback Tracker

Add condition to COMBO control itemconfig
New, NormalPublic

Description

Combo has the option to dynamically pull from config, however it lacks an option to filter it. This makes it difficult to use it for configs such as CfgFactionClasses where you might not want to include factions assigned to sideLogic.


https://community.bistudio.com/wiki/Eden_Editor:_Configuring_Attributes:_Controls#Combo

class Value: Combo
{
	// Static items
	class Items
	{
		class None
		{
			text = "None";
			data = "";
		};
	};
	// Dynamically loaded items
	class ItemsConfig
	{
		path[] = {"CfgNotifications"}; // Path to config container
		localConfig = 1; // 1 to search local Description.ext as well
		// Name of the property which will be used for item text
		propertyText = "title";
		// Name of the property which will be used for item right text
		propertyTextRight = "description";
		// Name of the property which will be used for item picture
		propertyPicture = "iconPicture";
		// Name of the property which will be used for item text color
		propertyColor = "color"; 
                // Decide whether the list should be sorted or not (1 = sorted/ 0 = unsorted)
                sort = 1;
	};
};

Details

Severity
Tweak
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Modding

Event Timeline