Jump to content

Add support for atlas-type images on lua rendering scripts


ilodev

Recommended Posts

This would help aliviating the need of uploading multiple images when you just want a set of icons for your screens.

 

Following the current image adding function, we could reuse the current one just adding extra args at the end that when ignored, they will use the full image size

addAtlasImage(layer, image, x, y, width, height, atlasx, atlasy, atlasw, atlash)

 

Or just make it a new API to get the atlas image from the loaded image

 

img = loadImage(path) 
icon1 = loadIcon(img, x, y, width, height)
-- then use like normal image 
addImage(layer, icon1, x, y, width, height)

 

anything from screen button images, cockpit shapes, decoration or warning signals, org logos  etc could then be uploaded on a single image and reused as required. The process of validating the images would still be same

Link to comment
Share on other sites

  • 8 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...