Jump to content
  • entries
    2
  • comments
    12
  • views
    4,271

3 Comments


Recommended Comments

AggrorJorn

Posted

looks real smooth and everything. very nice

Josh

Posted

My advice is to make the routines based on their hierarchy. If there are ten windows onscreen, each with one button, you should only have to evaluate one button when the mouse is clicked. For both drawing and mouse input commands, the routines should be designed like this:

 

Method Update(x,y)

if not self.hidden()

if x>self.x and x<self.x+self.width and t>self.t and t<self.t+self.height

for child=eachin self.kids...

child.update(x,y)

next

endif

endif

endmethod

Blitzbat

Posted

@Aggror:

Thank you ;)

 

@Josh:

Thanks for this advice. My method is nearly like yours. I will check it later ;)

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...