Juanda Posted July 14, 2015 Share Posted July 14, 2015 Hey guys, im new at this modding thing, ive been coding for a while in another languages but not in lua and i still dont get it entirely. Im developing my first mod, i want to extend the recipespopup.lua, making another popup that gives you a bit more information, as how many of those can you craft or if you cant craft it yet. My problem is, i dont know how to keep the focus in this second window. It works this way: Theres a Craftslot whos the parent of a Recipepopup. Im adding a child to this Recipepopup (self.myPopUp = self:AddChild(MyPopUp()), self being RecipePopup). The normal behavior is, when someone hover a Craftslot this RecipePopup shows and can still be hovered, my mod is already showing MyPopUp when the Craftslot is hovered, but when i try to hover over myPopUp it closes both, cause its losing its hover focus. So, my question is, any ideas on how to keep the hover working still in RecipePopup.MyPopUp? Thanks in advance. Link to comment https://forums.kleientertainment.com/forums/topic/56162-new-modder-needs-some-help/ Share on other sites More sharing options...
Mobbstar Posted July 14, 2015 Share Posted July 14, 2015 If you place that additional window too far to the right, I think the crafting tab it automatically closes. I notice that with maximal HUD size at least. Link to comment https://forums.kleientertainment.com/forums/topic/56162-new-modder-needs-some-help/#findComment-654265 Share on other sites More sharing options...
Juanda Posted July 14, 2015 Author Share Posted July 14, 2015 If you place that additional window too far to the right, I think the crafting tab it automatically closes. I notice that with maximal HUD size at least. Thanks for your comment. I noticed that myself too, but i even tried to place the ChildWindow on top of the other one, but still happens, when it get the focus, it closes both of them. Link to comment https://forums.kleientertainment.com/forums/topic/56162-new-modder-needs-some-help/#findComment-654268 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