- Joined
- Aug 5, 2015
- Messages
- 12
- Thread Author
- #1
Attempting to detect the interface mode for the purpose of hud-based actions...
Outputs:
This is a considerably large issue for me as I wish to produce something that is universal and I, myself, only use legacy when I can help it.
However, in addition to this issue, I'm presented with an additional issue which I've noticed has an affect on other developers' bots as well...
When using
The inventory does not open...
Its possible that I'm doing something wrong, sure, but I believe this to be a bug... If I'm doing something wrong, please tell me..
Edit:
The second bug is not entirely a bug. I've found what was causing the issue and the interface is now opening. However, the custom ribbon on the ActionWindow causes the ActionWindow.BACKPACK.open function to fail...
Edit2:
This temporarily fixes my issue with legacy mode:
but I'd rather not use this indefinitely as I'm sure that I will, at some point, come into contact with other issues...
Code:
if (InterfaceMode.LEGACY.equals(InterfaceMode.getCurrent())) {
System.out.println("Legacy InterfaceMode.");
} else if (InterfaceMode.MODERN.equals(InterfaceMode.getCurrent())) {
System.out.println("Modern InterfaceMode.");
} else {
System.out.println("Unknown InterfaceMode.");
}
even in legacy mode...(12:14:05) Modern InterfaceMode.
This is a considerably large issue for me as I wish to produce something that is universal and I, myself, only use legacy when I can help it.
However, in addition to this issue, I'm presented with an additional issue which I've noticed has an affect on other developers' bots as well...
When using
Code:
if (!ActionWindow.BACKPACK.isOpen()) {
ActionWindow.BACKPACK.open();
}
Its possible that I'm doing something wrong, sure, but I believe this to be a bug... If I'm doing something wrong, please tell me..
Edit:
The second bug is not entirely a bug. I've found what was causing the issue and the interface is now opening. However, the custom ribbon on the ActionWindow causes the ActionWindow.BACKPACK.open function to fail...
Edit2:
This temporarily fixes my issue with legacy mode:
Code:
if (!ActionWindow.BACKPACK.isOpen()) {
ActionWindow.BACKPACK.open();
}
if (!LegacyTab.BACKPACK.isOpen()) {
LegacyTab.BACKPACK.open();
}
Last edited: