button.ddh 997 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. (class Button dd_matrix
  2. (group
  3. (def dd_meshColour mesh)
  4. (def float width)
  5. (def float height)
  6. (def float x)
  7. (def float y)
  8. (def float z)
  9. # proportional values
  10. (def float pX)
  11. (def float pY)
  12. (def float pW)
  13. (def float pSize)
  14. # idle animation
  15. (def float idleRot)
  16. (def float idleRotTarget)
  17. (def float idleCol)
  18. (function void setSize (group float sizeX float sizeY))
  19. (function void setPosition (group float posX float posY float posZ))
  20. (function void setProportionalPosition (group float propX float propY))
  21. (function void setProportionalWidth (group float propW))
  22. (function void setProportionalSize (group float propSize))
  23. (function void create (group))
  24. (function void update (group int isSelected int isClicked))
  25. (function void applyTransform (group))
  26. (function void applyMatrixTransform (group))
  27. (function void drawRaw (group))
  28. (function void draw (group))
  29. (function void clean (group))
  30. (function void resize (group))
  31. (function int hasMouseCollided (group))
  32. )
  33. )