Newbie Spellweaver
- Joined
- Mar 9, 2016
- Messages
- 29
- Reaction score
- 0
Does anyone know how to disbale a UI button (such as skill/stat/inventory on the status bar) using the disable nodes from the wz?
Or if not, is it possible to stop it from the source?
I found openUI, lockUi, and disableUi from the MaplePacketCreator on moopledev and I thought I could use it. openUi can send a byte to open a UI window, but disableUi only accepts boolean and it will disable all Ui. Is disabling only a specific Ui window possible from the source?
these are from moopledev
Or if not, is it possible to stop it from the source?
I found openUI, lockUi, and disableUi from the MaplePacketCreator on moopledev and I thought I could use it. openUi can send a byte to open a UI window, but disableUi only accepts boolean and it will disable all Ui. Is disabling only a specific Ui window possible from the source?
these are from moopledev
PHP:
public static byte[] openUI(byte ui) {
final MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter(3);
mplew.writeShort(SendOpcode.OPEN_UI.getValue());
mplew.write(ui);
return mplew.getPacket();
}
public static byte[] lockUI(boolean enable) {
final MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter(3);
mplew.writeShort(SendOpcode.LOCK_UI.getValue());
mplew.write(enable ? 1 : 0);
return mplew.getPacket();
}
public static byte[] disableUI(boolean enable) {
final MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
mplew.writeShort(SendOpcode.DISABLE_UI.getValue());
mplew.write(enable ? 1 : 0);
return mplew.getPacket();
}