-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from ImAvafe/dev
Dev
- Loading branch information
Showing
19 changed files
with
510 additions
and
177 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,24 @@ | ||
[docusaurus] | ||
title = "NeoHotbar" | ||
tagline = "A modern, flexible hotbar for Roblox" | ||
url = "https://avafe.me" | ||
tagline = "A modern, customizable hotbar for Roblox" | ||
favicon = "/img/favicon.svg" | ||
|
||
[home] | ||
enabled = true | ||
|
||
[[home.features]] | ||
title = "Easy to Use" | ||
description = "Getting started with NeoHotbar is easy, and customization is too." | ||
description = "Getting started with NeoHotbar is easy and customization is too." | ||
|
||
[[home.features]] | ||
title = "Customization" | ||
description = "NeoHotbar features full GUI overriding, custom buttons and more. Make your hotbar for you." | ||
title = "Customizable" | ||
description = "NeoHotbar features custom buttons, full UI overriding and more." | ||
|
||
[[home.features]] | ||
title = "Feature Parity" | ||
description = "NeoHotbar utilizes Tool objects and all of its features, just like the default Roblox hotbar." | ||
|
||
[navbar] | ||
# hideableSidebar = true | ||
title = "Compatible" | ||
description = "NeoHotbar supports all devices, utilizing all Tool features, improving upon many of them." | ||
|
||
[footer] | ||
style = "dark" | ||
copyright = "Copyright © 2023 Avafe. Built with Moonwave and Docusaurus" | ||
|
||
# [[footer.docs]] | ||
# title = "Docs" | ||
|
||
# [[footer.docs.items]] | ||
# label = "Getting Started" | ||
# href = "https://avafe.me/NeoHotbar/docs/intro" | ||
copyright = "Copyright © 2023 Avafe. Built with Moonwave and Docusaurus" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
local UserInputService = game:GetService("UserInputService") | ||
local NeoHotbar = script.Parent.Parent | ||
|
||
local Fusion = require(NeoHotbar.Parent.Fusion) | ||
local FusionUtils = require(NeoHotbar.Parent.FusionUtils) | ||
local States = require(NeoHotbar.States) | ||
local EnsureProp = require(NeoHotbar.ExtPackages.EnsureProp) | ||
|
||
local Hydrate = Fusion.Hydrate | ||
local Computed = Fusion.Computed | ||
local Child = FusionUtils.Child | ||
local Spring = Fusion.Spring | ||
local Observer = Fusion.Observer | ||
local Cleanup = Fusion.Cleanup | ||
|
||
return function(Props: table) | ||
Props.Keycode = EnsureProp(Props.Keycode, "EnumItem", nil) | ||
|
||
local KeycodeImage = Computed(function() | ||
if typeof(Props.Keycode:get()) == "EnumItem" then | ||
return UserInputService:GetImageForKeyCode(Props.Keycode:get()) | ||
else | ||
return "" | ||
end | ||
end) | ||
local Shown = Computed(function() | ||
return States.GamepadInUse:get() and (string.len(KeycodeImage:get()) >= 1) | ||
end) | ||
local ObserverDisconnects = {} | ||
|
||
local ButtonHint = Hydrate(States.InstanceSet:get()[script.Name]:Clone()) { | ||
[Child "Image"] = { | ||
Image = KeycodeImage, | ||
}, | ||
|
||
[Cleanup] = function() | ||
for _, Disconnect in ipairs(ObserverDisconnects) do | ||
Disconnect() | ||
end | ||
end | ||
} | ||
|
||
if States.DefaultEffectsEnabled:get() then | ||
Hydrate(ButtonHint) { | ||
GroupTransparency = Spring(Computed(function() | ||
return (Shown:get() and 0) or 1 | ||
end), 40, 1), | ||
} | ||
end | ||
|
||
table.insert(ObserverDisconnects, Observer(Shown):onChange(function() | ||
ButtonHint:SetAttribute("Shown", Shown:get()) | ||
end)) | ||
ButtonHint:SetAttribute("Shown", Shown:get()) | ||
|
||
return ButtonHint | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.