Search the Community
Showing results for tags 'ui button'.
Found 2 results
Hey, so I was wondering if it would be possible to add an interaction button to zeds, nothing fancy, more like a proof-of-concept. If you press your right mouse button on an zed an small interaction button should pop up (like on anything else interactable), if i click it some function or so should be triggered. Im pretty new to modding Project Zomboid, im not quite sure where to start but I found some example LUA scripts from the devs located in: \media\luaexamples\ui But I dont know if its the right to look at, any tips or help would be appreciated.
I've had a look inside the "LastStandSetup.lua" found in the SteamApps/lua folders. I noted that essentially, the Last Stand and subsequent Challenges, are in fact written as if by the way of a modder- that is to say, everything in there is handled from event handlers. Neat. I've took it upon myself (after being unable to find anything on the forum under User Interfaces), to have a shot at achieving the following: STEP 1: Create a button that slots in alongside the initial game UI. Like so: STEP 2: Once the button is clicked, execute the code to join the server's I.P Address. And thats it! basically! I haven't looked at any of the multiplayer code, but I've been diving into the UI stuff, would I be right in assuming it is not without the realm of possibility to use the following event: OnPostUIDraw To create some kind of button to achieve this? Watch this thread for more progress as it happens-