This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
4rpl:commands:createthemeoverlay [2021/03/04 18:37] – Karsten75 | 4rpl:commands:createthemeoverlay [2021/03/22 18:45] (current) – Highlight size warning Karsten75 | ||
---|---|---|---|
Line 11: | Line 11: | ||
===== Description ===== | ===== Description ===== | ||
- | Creates an overlay texture for the specified overlay (0 or 1) with a textureWidth and textureHeight. The texture will be filled with initColor. If an overlay texture already exists, that texture will be disposed and replaced by the newly created texture. | + | Creates an overlay texture for the specified overlay (0 or 1) with a textureWidth and textureHeight. The texture will be filled with initColor. If an overlay texture already exists, that texture will be disposed and replaced by the newly created texture. |
- | Additional Note: Overlay textures are saved with the map. Don't make a texture bigger than necessary to accomplish your visual goals. The max size is 2048x2048, but such a texture could add megabytes to the map save file size.\\ | + | |
+ | |||
+ | **Additional Note:** Overlay textures are saved with the map. Don't make a texture bigger than necessary to accomplish your visual goals. The max size is 2048x2048, but such a texture could add megabytes to the map save file size. | ||
+ | |||
See [[SetThemeOverlayPixels]] for a larger example of theme overlay use. | See [[SetThemeOverlayPixels]] for a larger example of theme overlay use. | ||