Jump to content
Sign in to follow this  
mindstorm

Drawing a line on the GUI

Recommended Posts

For a project I'm working on I wanted to draw a line on the GUI, it will be used on a geiger counter image for the needle (so it has to be able to change direction, a gui block wouldn't work I suppose).

Thus far I haven't found a way to do so.

 

DrawLine seems to be only usable on map controls.

https://community.bistudio.com/wiki/drawLine

 

Even though I get the idea this guy managed to get it to work on the GUI:

 

He might have made a invisible map control overlaying the GUI though, but no clue where to even start there.

 

 

Another way would be to use drawLine3D but I highly doubt I could ever get that working decently with all the transitions. 

 

Any suggestions on how to approach this?

Share this post


Link to post
Share on other sites

I don't think the drawline3d would work well as a meter needle.

 

I'd go for a map with all colours defined as transparent and drawLine. If you have already done some dialogs, maps shouldn't be too difficult.

 

You could also create a dialog with a moving 3D model.

Share this post


Link to post
Share on other sites

You can try style=176

God damn it.

I once tried to find a way to do it, and even came across someone saying it simply wasn't possible. So I just ended up making a map & drawline.

This thing is even in the wiki, but I was just too blind to see it.

 

Thanks!

Share this post


Link to post
Share on other sites

You can try style=176

 

Thanks. What would us guys do without your help :D.

 

Appreciate the time you take in replying even though you're on a break!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×