| We hope you enjoy your visit. You're currently viewing the Ultimate 3D Community as a guest. This means that you can only read posts, but can not create posts or topics by yourself. To be able to post you need to register. Then you can participate in the community active and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you are already a member please log in to your account to access all of our features: |
| Clickable Buttons With DrawText | |
|---|---|
| Tweet Topic Started: Oct 30 2010, 02:46 PM (252 Views) | |
| alexw | Oct 30 2010, 02:46 PM Post #1 |
|
Advanced Member
![]() ![]() ![]() ![]() ![]()
|
Hi, I have the follow text based on some information i figured out how to make the best script for buttons: MakeClickableButton:
But i think i did something wrong, because it is not working. I tryd it with this:
The IfMousePos2 function:
I can see test, but if i press it nothing happend. Does anyone got a working script like this? Thanks, Alexw Edited by alexw, Oct 30 2010, 03:41 PM.
|
![]() |
|
| DJ-Habana | Nov 28 2010, 09:19 AM Post #2 |
|
C# King
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Did you make use of the MouseCheck(...) and these: u3dcontroller.left_pressed etc. |
|
| |
![]() |
|
| 112 in actie | Nov 28 2010, 12:35 PM Post #3 |
|
Member
![]() ![]() ![]() ![]()
|
In your code, you select the width of the string, but not the height, so you check if your mouse is between x and x+width and y and y, where y is (of course) always te same, perhaps you should try string_height()? Besides that, you now use argument1 (y) for the right side (x2), that should be argument0 (x) Spoiler: click to toggle
Edited by 112 in actie, Nov 28 2010, 12:37 PM.
|
![]() |
|
| Despellanion | Nov 28 2010, 01:05 PM Post #4 |
|
Forum God
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I don't see any mouse click actions so there's your problem. |
![]() |
|
| « Previous Topic · Questions about Ultimate 3D · Next Topic » |





![]](http://z1.ifrm.com/static/1/pip_r.png)



9:12 PM Jul 11