Help With Desaturation in XML
I'm making an addon for ESO where the game desaturates as you run out of stamina. Sadly, I've had no luck finding out how this can be done.
I know that SetSaturation exists, but from what I've seen it's mostly used for textures, icons, etc. But I need the game screen as a whole to be drained of colour, not just a particular texture I've added via my addon. Does someone know how this might be done? Thanks for the help! (I'm still quite new to ESO modding, so trying to learn the ropes haha) |
I think you cannot apply this to the GuiRoot itself so you might need to overlay the whole screen with 1 control, which is MouseEnabled false, and you could add the saturation effect etc there. There was once an addon adding blood drop textures at the screen edges as your health was low, search for blood and you might use it to spy what was done how.
|
Quote:
Problem is, even with looking online I can't find examples of people using either of those controls, so I don't actually know how they're used in practice or what they do. (I've found the blood mod you're talking about, but the author didn't use any XML in the mod. They only used lua and called on the blood textures from within the lua file itself). |
You need to define a top level contro(TLC) and add your other controls to it. The tlc is placed on the GuiRoot (parent of the tlc). And it's invisible/see through.
Set mouseenabled false at the tlc. Set dimensions of the TLC = screen width and height. Put one texture on the tlc and make it anchor topleft and bottom right (anchor fill) and use some see-through texture.dds, set desaturatio to the texture then as needed. That's what I'd try If you already did that and it's not working I'm sorry, I do not know how the saturation actually works with the ESO controls, never tried it. So i'm just guessing here :-) Using lua should do the same. You can either define all in xml or create the controls via lua coding. It's only a different Syntax. |
Quote:
|
Quote:
|
Quote:
|
All times are GMT -6. The time now is 12:38 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI