Skip to content

Commit

Permalink
gay
Browse files Browse the repository at this point in the history
  • Loading branch information
mcagabe19 committed Nov 19, 2024
1 parent db6a9e9 commit f59e615
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/online/gui/sidebar/MainTab.hx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class MainTab extends TabSprite {

chatInputPlaceholder = new TextField();
chatInputPlaceholder.defaultTextFormat = TabSprite.getDefaultFormat();
chatInputPlaceholder.text = "(Click here or press TAB to chat)";
chatInputPlaceholder.text = Controls.instance.mobileC ? "Touch here to chat" : "(Click here or press TAB to chat)";
chatInputPlaceholder.selectable = false;
chatInputPlaceholder.y = Lib.application.window.height - (chatInputPlaceholder.textHeight + 5);
chatInputPlaceholder.width = Std.int(widthTab);
Expand Down
3 changes: 2 additions & 1 deletion source/online/objects/ChatBox.hx
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ import lime.system.Clipboard;

class ChatBox extends FlxTypedSpriteGroup<FlxSprite> {
public static var instance:ChatBox;
final accept:String = Controls.instance.mobileC ? "RETURN" : "ACCEPT";
final tab:String = Controls.instance.mobileC ? "C" : "TAB";
var prevMouseVisibility:Bool = false;
public var focused(default, set):Bool = false;
function set_focused(v) {
if (v) {
prevMouseVisibility = FlxG.mouse.visible;
FlxG.mouse.visible = true;
typeTextHint.text = "(Type something to input the message, ACCEPT to send)";
typeTextHint.text = "(Type something to input the message, " + accept + " to send)";
typeBg.colorTransform.alphaOffset = 0;
typeBg.scale.x = FlxG.width;
}
Expand Down
2 changes: 1 addition & 1 deletion source/online/states/OnlineOptionsState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ class OnlineOptionsState extends MusicBeatState {
sezOption.ID = i++;

var sidebarOption:InputOption;
items.add(sidebarOption = new InputOption("Open Sidebar", "Open the Network Sidebar, if you aren't able to.\n(Press ` (Tilde) to open it at any time!)"));
items.add(sidebarOption = new InputOption("Open Sidebar", "Open the Network Sidebar" + ((!controls.mobileC) ? ", if you aren't able to.\n(Press ` (Tilde) to open it at any time!)" : "")));
sidebarOption.y = sezOption.y + sezOption.height + 50;
sidebarOption.screenCenter(X);
sidebarOption.ID = i++;
Expand Down

0 comments on commit f59e615

Please sign in to comment.