Added ImageHUD
Type of change
New feature
Description
A new HUD element that can draw still images and animated images from paths/urls in the in-game HUD
Related issues
Not related
How Has This Been Tested?
https://private-user-images.githubusercontent.com/51824929/499489242-eafb079f-3120-4a0a-a395-710eba5c37f6.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjE1ODUxOTEsIm5iZiI6MTc2MTU4NDg5MSwicGF0aCI6Ii81MTgyNDkyOS80OTk0ODkyNDItZWFmYjA3OWYtMzEyMC00YTBhLWEzOTUtNzEwZWJhNWMzN2Y2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTEwMjclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUxMDI3VDE3MDgxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTIwODZjYjVhMzg1ZGZlNTQ1ZjQ3MTJmOTU5MDFiNjM3NzVhMGY1YzA4OGFkYTUzYmM5ZTEwYjI2NDYwOTg4ZDMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.uLKzeuOsSQi2bDrQsm1wq6Ngdl-ffWDvecIbce1UZy0
https://private-user-images.githubusercontent.com/51824929/499490549-0e8c5b15-a82c-4a0e-bce6-15f0de793787.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjE1ODUxOTEsIm5iZiI6MTc2MTU4NDg5MSwicGF0aCI6Ii81MTgyNDkyOS80OTk0OTA1NDktMGU4YzViMTUtYTgyYy00YTBlLWJjZTYtMTVmMGRlNzkzNzg3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTEwMjclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUxMDI3VDE3MDgxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTUwOGQ3MGRhNDk1ZmE1Zjg0NmM3NDM4ZjMwYjkzN2JhNjI3OTE3OTM5NWFhNmU4ZTIwMzFiOGJjMDBiNDEyOWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.7CU1wvuNc6_i1yUjKb4RZEL6zfKf6aJB9630zqXdOiM
Checklist:
- ✔ My code follows the style guidelines of this project.
- ✔ I have added comments to my code in more complex areas.
- ✔ I have tested the code in both development and production environments.
~~I'm also unsure about the idea of packing a gif into a single texture, it sounds like that would either quickly hit some upper limit or take up a massive amount of vram~~
it's fine, anything else would be complicated to implement and probably be out of scope for meteor, though the size of the "atlas" should be checked before uploading, with anything too big either rejected or resized to fit
LGTM 🚀🚀🚀
~I'm also unsure about the idea of packing a gif into a single texture, it sounds like that would either quickly hit some upper limit or take up a massive amount of vram~
it's fine, anything else would be complicated to implement and probably be out of scope for meteor, though the size of the "atlas" should be checked before uploading, with anything too big either rejected or resized to fit
The atlas is automatically resized by getting the max texture size from OpenGL, and wraps columnwise if it reaches that limit. Maybe a hard limit should be imposed, but I don't know what would be a reasonable one.