From: Matthias T. <mt...@us...> - 2005-12-23 18:53:06
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/client/gui/wt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16493/src/games/stendhal/client/gui/wt Modified Files: SettingsPanel.java Log Message: fixed bug when closing the inventory panel was not recognized by the settings panel Index: SettingsPanel.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/client/gui/wt/SettingsPanel.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** SettingsPanel.java 19 Dec 2005 11:50:11 -0000 1.10 --- SettingsPanel.java 23 Dec 2005 18:52:57 -0000 1.11 *************** *** 98,102 **** buttonMap.put("minimap",new Button("minimap", 150, 30, "Enable Minimap")); buttonMap.put("character",new Button("character", 150, 30, "Enable Character")); ! buttonMap.put("inventory",new Button("inventory", 150, 30, "Enable Inventory")); int y = 10; --- 98,102 ---- buttonMap.put("minimap",new Button("minimap", 150, 30, "Enable Minimap")); buttonMap.put("character",new Button("character", 150, 30, "Enable Character")); ! buttonMap.put("bag",new Button("bag", 150, 30, "Enable Inventory")); int y = 10; *************** *** 232,236 **** // check inventory panel ! if (name.equals("inventory")) { // inventory disabled? --- 232,236 ---- // check inventory panel ! if (name.equals("bag")) { // inventory disabled? *************** *** 250,254 **** inventoryEnabled = pressed; // be sure to update the button ! buttonMap.get(name).setPressed(pressed); return; } --- 250,254 ---- inventoryEnabled = pressed; // be sure to update the button ! buttonMap.get("bag").setPressed(pressed); return; } *************** *** 258,261 **** --- 258,262 ---- public void onClose(String name) { + System.out.println("closing "+name); // pseudo-release the button onClick(name, false); |