wasd plugin: add player name to chatbox text
This commit is contained in:
@@ -141,7 +141,7 @@ public class WASDCameraPlugin extends Plugin
|
|||||||
{
|
{
|
||||||
if (chatboxFocused() && !typing)
|
if (chatboxFocused() && !typing)
|
||||||
{
|
{
|
||||||
chatboxInput.setText(PRESS_ENTER_TO_CHAT);
|
chatboxInput.setText(client.getLocalPlayer().getName() + ": " + PRESS_ENTER_TO_CHAT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -164,7 +164,7 @@ public class WASDCameraPlugin extends Plugin
|
|||||||
Widget chatboxInput = client.getWidget(WidgetInfo.CHATBOX_INPUT);
|
Widget chatboxInput = client.getWidget(WidgetInfo.CHATBOX_INPUT);
|
||||||
if (chatboxInput != null)
|
if (chatboxInput != null)
|
||||||
{
|
{
|
||||||
chatboxInput.setText(PRESS_ENTER_TO_CHAT);
|
chatboxInput.setText(client.getLocalPlayer().getName() + ": " + PRESS_ENTER_TO_CHAT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user