/**
* Expects to be added to a SymbolDice. Adds the button to the control window's toolbar and registers itself as a
* {@link KeyStrokeListener}
*/
public void addTo(Buildable parent) {
resultsIcon.setResults(new int[dice.size()]);
launch.addHierarchyListener(new HierarchyListener() {
public void hierarchyChanged(HierarchyEvent e) {
if (launch.isShowing()) {
dialog.setLocationRelativeTo(launch);
launch.removeHierarchyListener(this);
}
}
});
final GameModule mod = GameModule.getGameModule();
ran = mod.getRNG();
mod.getToolBar().add(launch);
idMgr.add(this);
mod.addCommandEncoder(this);
property.addTo((MutablePropertiesContainer)parent);
}
SpecialDiceButton.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:vassal
作者:
评论列表
文章目录