Jump to content

Hayakii

Members
  • Posts

    12
  • Joined

  • Last visited

Everything posted by Hayakii

  1. -------------------------------------------------------------------------------------------------------------------------------------------- Hi everyone! I just added some DayZ/WarZ building in my server who replace "Household" objects. It works perfectly, but some of them cannot be seen from more than 60 meters distance... Is it because some items are codded like that in the game and cannot be seen from far distance so my building are doing the same thing ? So if someone know how to set a bigger draw distance, that will be cool. Thanks! Screen (Sorry for the resolution) ^^: -Brofist- --------------------------------------------------------------------------------------------------------------------------------------------
  2. | ------------------------------------------------------------ | Hi everyone! Im actually looking for someone who can explain me how can i make an editbox (like GuiCreateEdit) using Dx. I've seen an example in a login panel, but i dont uderstand how they did it. I've copy and modify their script but it didn't work like i was expecting... So, if someone has an idéa how to do it, i would be grateful! -brofist- | ------------------------------------------------------------ |
  3. Wow, thanks you man! I've tried it, its really cool!
  4. Hi everyone! I was wondering if there is a script to show a character on the screen. For exemple, i need to show a character and player can change it by pressing a button. If you guys have some ideas about doing this, that would be awesome!
  5. I've done it this way, its working. Thanks man, I appreciate you help! local shouldPlaySound = false function onClickCross(button,state) if button=="left" and state=="down" then local imgX, imgY, imgWidth, imgHeight = (810/1024)*sx, (200/768)*sy , (20/1024)*sx, (20/768)*sy if isMouseInPosition ( imgX, imgY, imgWidth, imgHeight ) then if (shouldPlaySound == true) then playSound("click.mp3") removeEventHandler("onClientRender",getRootElement(),registerPanel) removeEventHandler("onClientRender",getRootElement(),updatesPanel) removeEventHandler("onClientRender",getRootElement(),playPanel) removeEventHandler("onClientRender",getRootElement(),onClickCross) end shouldPlaySound = false end else return false end end
  6. Yea, i already find how to do it before you told me. Thanks anyway. But i have a probleme (yes, another...) with a function. I want the players, when they click a little cross i've made, all the page on the menu panel is close. Its working, but we can still click on it even though the pages are close. We can still ear the sound (click.mp3). So, i imagine that i cant remove the EventHandler onClickCross in the OnClickCross function . Let me paste my code below: function onClickCross(button,state) if button=="left" and state=="down" then local imgX, imgY, imgWidth, imgHeight = (810/1024)*sx, (200/768)*sy , (20/1024)*sx, (20/768)*sy --- Button Location on the screen if isMouseInPosition ( imgX, imgY, imgWidth, imgHeight ) then playSound("click.mp3") --- The click sound when you click on the button --- Close all the pages removeEventHandler("onClientRender",getRootElement(),playPanel) removeEventHandler("onClientRender",getRootElement(),registerPanel) removeEventHandler("onClientRender",getRootElement(),updatesPanel) --- Close the onClickCross function (this function) removeEventHandler("onClientRender",getRootElement(),onClickCross) end else return false end end That would be awesome if you can help me with that! Because im learning lua at the same time (Sorry for my bad english by the way, french are not good at english you should know that ^^)
  7. I need to open an other DxDrawRectangle, when i click on the button. I've made the click function but i dont know how to open (or make it visible) the DxRectangle.
  8. Its fine, i've just delete "tocolor ( 255, 255, 255 )" and my button are not rotating anymore. Finally it work! Thanks a lot! Now i need to make them clickable, im gonna work on it.
  9. Its working perfectly great! But my button are a little bit rotating. Do you know why ? Thanks for the help man!
  10. --------------------------------------------------------------------------------------------------------------------------------------------- Hi everyone! Im working on a login panel since 1 day and i couldn't find how to do this: I've made an image with dxDrawImage and i want when i place my cursor over the image, it is replace by another one. Not over => Image 1 Over it => Image 2 And also that you can click on it. I've tried many things without success. I need you help guys, thank you! -Hayakii- ---------------------------------------------------------------------------------------------------------------------------------------------
×
×
  • Create New...