GDevelop-extensions
GDevelop-extensions copied to clipboard
New extension: Compare tint
Description
Allows to get and compare the tint of objects.
How to use the extension
Allows to get and compare the tint of objects. (Sprite/Tiled sprite/Panel sprite/BBCode text)
- Use the expression
TintR
to get the red tint value of the object. - Use the expression
TintG
to get the green tint value of the object. - Use the expression
TintB
to get the blue tint value of the object. - Use the expression
TintRGB
to get the tint color of the object. - Every expression has an equivalent condition.
Checklist
- [X] I've followed all of the best practices.
- [X] I confirm that this extension can be integrated to this GitHub repository, distributed and MIT licensed.
- [X] I am aware that the extension may be updated by anyone, and do not need my explicit consent to do so.
What tier of review do you aim for your extension?
Community (Unreviewed)
Example file
Extension file
Disallowed properties huh...
!update CompareTint.json.zip
✅ Successfully updated the extension.
New example without disallowed properties: CompareTintExample.zip
Made it return 255;255;255 (when you try to use in a uncompatible object) because it makes more sense than 0;0;0
!update CompareTint.json.zip
Accidentally sent the old version
Can't update the extension, as it doesn't pass automatic tests:
❌ 2 Errors found in extension 'CompareTint':
⟶ ❌ (🔧) [Dots in sentences]: Field 'shortDescription' of the extension description misses a dot at the end of the sentence!
⟶ ❌ [JavaScript disallowed properties]: Found disallowed properties in extension 'CompareTint':
{
allowedProperties: [
'makeUuid', 'rgbToHex',
'rgbOrHexToRGBColor', 'rgbToHexNumber',
'hexNumberToRGB', 'hexToRGBColor',
'copyArray', 'staticArray',
'staticArray2', 'staticObject',
'toDegrees', 'toRad',
'random', 'randomFloat',
'randomFloatInRange', 'randomInRange',
'randomWithStep', 'evtTools',
'Variable', 'RuntimeObject',
'Logger'
],
disallowedProperty: 'SpriteRuntimeObject',
objectName: 'gdjs'
}
{
allowedProperties: [
'makeUuid', 'rgbToHex',
'rgbOrHexToRGBColor', 'rgbToHexNumber',
'hexNumberToRGB', 'hexToRGBColor',
'copyArray', 'staticArray',
'staticArray2', 'staticObject',
'toDegrees', 'toRad',
'random', 'randomFloat',
'randomFloatInRange', 'randomInRange',
'randomWithStep', 'evtTools',
'Variable', 'RuntimeObject',
'Logger'
],
disallowedProperty: 'TiledSpriteRuntimeObject',
objectName: 'gdjs'
}
{
allowedProperties: [
'makeUuid', 'rgbToHex',
'rgbOrHexToRGBColor', 'rgbToHexNumber',
'hexNumberToRGB', 'hexToRGBColor',
'copyArray', 'staticArray',
'staticArray2', 'staticObject',
'toDegrees', 'toRad',
'random', 'randomFloat',
'randomFloatInRange', 'randomInRange',
'randomWithStep', 'evtTools',
'Variable', 'RuntimeObject',
'Logger'
],
disallowedProperty: 'PanelSpriteRuntimeObject',
objectName: 'gdjs'
}
{
allowedProperties: [
'makeUuid', 'rgbToHex',
'rgbOrHexToRGBColor', 'rgbToHexNumber',
'hexNumberToRGB', 'hexToRGBColor',
'copyArray', 'staticArray',
'staticArray2', 'staticObject',
'toDegrees', 'toRad',
'random', 'randomFloat',
'randomFloatInRange', 'randomInRange',
'randomWithStep', 'evtTools',
'Variable', 'RuntimeObject',
'Logger'
],
disallowedProperty: 'BBTextRuntimeObject',
objectName: 'gdjs'
}
❌ 2 Errors found in extensions - please fix them before generating the registry.
Can't update the extension, as it doesn't pass automatic tests:
❌ 2 Errors found in extension 'CompareTint':
⟶ ❌ (🔧) [Dots in sentences]: Field 'shortDescription' of the extension description misses a dot at the end of the sentence!
⟶ ❌ [JavaScript disallowed properties]: Found disallowed properties in extension 'CompareTint':
{
allowedProperties: [
'makeUuid', 'rgbToHex',
'rgbOrHexToRGBColor', 'rgbToHexNumber',
'hexNumberToRGB', 'hexToRGBColor',
'copyArray', 'staticArray',
'staticArray2', 'staticObject',
'toDegrees', 'toRad',
'random', 'randomFloat',
'randomFloatInRange', 'randomInRange',
'randomWithStep', 'evtTools',
'Variable', 'RuntimeObject',
'Logger'
],
disallowedProperty: 'SpriteRuntimeObject',
objectName: 'gdjs'
}
{
allowedProperties: [
'makeUuid', 'rgbToHex',
'rgbOrHexToRGBColor', 'rgbToHexNumber',
'hexNumberToRGB', 'hexToRGBColor',
'copyArray', 'staticArray',
'staticArray2', 'staticObject',
'toDegrees', 'toRad',
'random', 'randomFloat',
'randomFloatInRange', 'randomInRange',
'randomWithStep', 'evtTools',
'Variable', 'RuntimeObject',
'Logger'
],
disallowedProperty: 'TiledSpriteRuntimeObject',
objectName: 'gdjs'
}
{
allowedProperties: [
'makeUuid', 'rgbToHex',
'rgbOrHexToRGBColor', 'rgbToHexNumber',
'hexNumberToRGB', 'hexToRGBColor',
'copyArray', 'staticArray',
'staticArray2', 'staticObject',
'toDegrees', 'toRad',
'random', 'randomFloat',
'randomFloatInRange', 'randomInRange',
'randomWithStep', 'evtTools',
'Variable', 'RuntimeObject',
'Logger'
],
disallowedProperty: 'PanelSpriteRuntimeObject',
objectName: 'gdjs'
}
{
allowedProperties: [
'makeUuid', 'rgbToHex',
'rgbOrHexToRGBColor', 'rgbToHexNumber',
'hexNumberToRGB', 'hexToRGBColor',
'copyArray', 'staticArray',
'staticArray2', 'staticObject',
'toDegrees', 'toRad',
'random', 'randomFloat',
'randomFloatInRange', 'randomInRange',
'randomWithStep', 'evtTools',
'Variable', 'RuntimeObject',
'Logger'
],
disallowedProperty: 'BBTextRuntimeObject',
objectName: 'gdjs'
}
❌ 2 Errors found in extensions - please fix them before generating the registry.
!update CompareTint.json.zip
✅ Successfully updated the extension.