GDevelop-extensions icon indicating copy to clipboard operation
GDevelop-extensions copied to clipboard

New extension: Compare tint

Open github-actions[bot] opened this issue 1 year ago • 10 comments

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

CompareTintExample.zip

Extension file

CompareTint.json.zip

github-actions[bot] avatar Feb 06 '24 19:02 github-actions[bot]

Disallowed properties huh...

RebornOfc avatar Feb 06 '24 19:02 RebornOfc

!update CompareTint.json.zip

RebornOfc avatar Feb 06 '24 19:02 RebornOfc

✅ Successfully updated the extension.

github-actions[bot] avatar Feb 06 '24 19:02 github-actions[bot]

New example without disallowed properties: CompareTintExample.zip

RebornOfc avatar Feb 06 '24 19:02 RebornOfc

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

RebornOfc avatar Feb 14 '24 15:02 RebornOfc

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.

github-actions[bot] avatar Feb 14 '24 15:02 github-actions[bot]

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.

github-actions[bot] avatar Feb 14 '24 15:02 github-actions[bot]

!update CompareTint.json.zip

RebornOfc avatar Feb 14 '24 15:02 RebornOfc

✅ Successfully updated the extension.

github-actions[bot] avatar Feb 14 '24 15:02 github-actions[bot]