Diddy GUI - Use Draw() Commands?

Monkey Forums/Monkey Programming/Diddy GUI - Use Draw() Commands?

c.k.(Posted 2011) [#1]
Instead of using an image for the GUI, I'd like to use DrawRect() or DrawCircle() for the GUI elements. Is that possible?

There might be a better way to approach this.

I'm going to have interface elements all over the screen. Is there a way to determine if the user has tapped on one of them without using the GUI interface, or is the GUI interface just too efficient to not use? :)

I'd still like to just draw the items. -or- draw to a bitmap which i can then use as the GUI button image. *cough*mark*cough*


Samah(Posted 2011) [#2]
Class MyComponent Extends Component
  Method DrawComponent:Void()
    ' draw stuff here
  End
End

Drawing commands have already been translated and scaled for you so that 0,0 is the top left corner of the component. Also, the scissor has been set so that it will not draw outside of the component.

Enjoy. ;)