Menu

#25 fixes for CustomItem.java

open
nobody
None
5
2008-04-09
2008-04-09
No

I fixed a few issues with CustomItem to get it working with my application:
- paint(Graphics g) now also calls the abstract paint(Graphics g, int w, int h) function implemented by subclasses
- an appropriate getHeight() is also computed for the content
- isFocusable() returns true
- select() sends a fake keyPressed(-5): it seems to be the most straightforward way to receive notification for the FIRE button

Discussion

  • Samuel Audet

    Samuel Audet - 2008-04-09

    patch containing fixes for CustomItem.java

     
  • Samuel Audet

    Samuel Audet - 2008-04-09

    Logged In: YES
    user_id=1584125
    Originator: YES

    - and getGameAction(int keycode) now returns Display.getGameAction(keycode)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.