mirror of
https://github.com/4ian/GDevelop.git
synced 2025-10-15 10:19:04 +00:00
Add missing group icons on the conditions and actions list (#5014)
This commit is contained in:
@@ -27,6 +27,10 @@ void GD_CORE_API BuiltinExtensionsImplementer::ImplementsBaseObjectExtension(
|
||||
.SetIcon("res/actions/create24.png");
|
||||
extension.AddInstructionOrExpressionGroupMetadata(_("Movement using forces"))
|
||||
.SetIcon("res/actions/force24.png");
|
||||
extension.AddInstructionOrExpressionGroupMetadata(_("Variables"))
|
||||
.SetIcon("res/conditions/var24.png");
|
||||
extension.AddInstructionOrExpressionGroupMetadata(_("Position"))
|
||||
.SetIcon("res/actions/position24_black.png");
|
||||
|
||||
gd::ObjectMetadata& obj = extension.AddObject<gd::ObjectConfiguration>(
|
||||
"", _("Base object"), _("Base object"), "res/objeticon24.png");
|
||||
|
@@ -81,6 +81,7 @@ export const renderInstructionOrExpressionTree = <
|
||||
// $FlowFixMe - see above
|
||||
const groupOfInstructionInformation: InstructionOrExpressionTreeNode = instructionOrGroup;
|
||||
if (useSubheaders) {
|
||||
const iconSrc = getGroupIconSrc(key) || parentGroupIconSrc;
|
||||
return [
|
||||
<Subheader key={getSubheaderListItemKey(key)}>{key}</Subheader>,
|
||||
].concat(
|
||||
@@ -93,7 +94,7 @@ export const renderInstructionOrExpressionTree = <
|
||||
selectedItemRef,
|
||||
initiallyOpenedPath: restOfInitiallyOpenedPath,
|
||||
getGroupIconSrc,
|
||||
parentGroupIconSrc,
|
||||
parentGroupIconSrc: iconSrc,
|
||||
})
|
||||
);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user