Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/Game/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -1331,6 +1331,9 @@ public static void init_login() {
public static void init_game() {
boolean errorOnInit = false;

// Reset login button click state
Panel.setControlClicked(panelLogin, loginPassInput, false);

try {
Camera.init();

Expand Down
9 changes: 9 additions & 0 deletions src/Game/Panel.java
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,15 @@ public static void setControlToggled(Object panelSource, int controlId, int togg
}
}

public static void setControlClicked(Object panelSource, int controlId, boolean isClicked) {
try {
boolean[] clicked = (boolean[]) Reflection.menuClicked.get(panelSource);
clicked[controlId] = isClicked;
Reflection.menuClicked.set(panelSource, clicked);
} catch (Exception e) {
}
}

public static int addCenterTextTo(
Object panelSource,
int xPos,
Expand Down