Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Toggled, Support ChannelTabsConfiguration Hiding, Update Aftman #345

Closed
wants to merge 3 commits into from
Closed
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
6 changes: 6 additions & 0 deletions Cmdr/CmdrClient/CmdrInterface/Window.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,16 @@ end

-- Sets the command bar visible or not
function Window:SetVisible(visible)
self.Cmdr.Toggled = visible
Gui.Visible = visible

if visible then
self.PreviousChatWindowConfigurationEnabled = TextChatService.ChatWindowConfiguration.Enabled
self.PreviousChatInputBarConfigurationEnabled = TextChatService.ChatInputBarConfiguration.Enabled
self.PreviousChannelTabsConfigurationEnabled = TextChatService.ChannelTabsConfiguration.Enabled
TextChatService.ChatWindowConfiguration.Enabled = false
TextChatService.ChatInputBarConfiguration.Enabled = false
TextChatService.ChannelTabsConfiguration.Enabled = false

Entry.TextBox:CaptureFocus()
self:SetEntryText("")
Expand All @@ -97,6 +100,9 @@ function Window:SetVisible(visible)
~= nil
then self.PreviousChatInputBarConfigurationEnabled
else true
TextChatService.ChannelTabsConfiguration.Enabled = if self.PreviousChannelTabsConfigurationEnabled ~= nil
then self.PreviousChannelTabsConfigurationEnabled
else true

Entry.TextBox:ReleaseFocus()
self.AutoComplete:Hide()
Expand Down
1 change: 1 addition & 0 deletions Cmdr/CmdrClient/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ do
RemoteEvent = script:WaitForChild("CmdrEvent"),
ActivationKeys = { [Enum.KeyCode.F2] = true },
Enabled = true,
Toggled = false,
MashToEnable = false,
ActivationUnlocksMouse = false,
HideOnLostFocus = true,
Expand Down
4 changes: 2 additions & 2 deletions aftman.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
[tools]
rojo = "rojo-rbx/[email protected]"
wally = "upliftgames/[email protected]"
selene = "kampfkarren/selene@0.25.0"
stylua = "johnnymorganz/stylua@0.18.1"
selene = "kampfkarren/selene@0.27.1"
stylua = "johnnymorganz/stylua@2.0.2"