kipper0k Posted January 28, 2022 Share Posted January 28, 2022 (edited) Greetings. There are people who could help to add a overlay. I will be grateful. Thanks! Edited January 28, 2022 by kipper0k Link to comment https://forums.kleientertainment.com/forums/topic/137181-how-add-overlay/ Share on other sites More sharing options...
Monti18 Posted January 29, 2022 Share Posted January 29, 2022 You will first need to create a widget for this overlay. Then you will need to add this widget to screens/playerhud.lua in the CreateOverlays function. Take a look at the Tropical Experience mod, they add the poison overlay into the game with this code: Spoiler AddClassPostConstruct("screens/playerhud",function(inst) local PoisonOver = require("widgets/poisonover") local fn =inst.CreateOverlays function inst:CreateOverlays(owner) fn(self, owner) self.poisonover = self.overlayroot:AddChild(PoisonOver(owner)) end end) Link to comment https://forums.kleientertainment.com/forums/topic/137181-how-add-overlay/#findComment-1536483 Share on other sites More sharing options...
kipper0k Posted January 30, 2022 Author Share Posted January 30, 2022 thx Link to comment https://forums.kleientertainment.com/forums/topic/137181-how-add-overlay/#findComment-1536571 Share on other sites More sharing options...
kipper0k Posted January 30, 2022 Author Share Posted January 30, 2022 I added an overlay, but because of the knowledge I did not understand how to run it ;D And yes, for testing I took an overlay from the mod that you suggested to me, for a start I would like to understand how I can run it. Link to comment https://forums.kleientertainment.com/forums/topic/137181-how-add-overlay/#findComment-1536575 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now