there are other ways, for example you could use polymorphism to handle buttons, you could also use something like an event bus to handle button clicks.
|
In ClickingButtons is this the only way to do Interface actions like switching between screens of the interface or closing the window? Cause I just currently have a bunch of switch cases for the interfaces to open/switch/close.. which don't seem to effective.
Code:case 162037: case 160049: c.getPA().showInterface(42000); break; case 164023: c.getPA().showInterface(41500); break; case 128238: case 80149: case 80232: case 160042: c.getPA().closeAllWindows(); break;
there are other ways, for example you could use polymorphism to handle buttons, you could also use something like an event bus to handle button clicks.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |