Skip to content

Commit c5e1717

Browse files
authored
Merge pull request #9 from ImAvafe/dev
1.0.1
2 parents 61f7095 + 82945c6 commit c5e1717

File tree

4 files changed

+41
-41
lines changed

4 files changed

+41
-41
lines changed

.github/workflows/ci.yaml

+20-23
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,18 @@ name: Releases
22

33
on: push
44

5-
jobs:
6-
5+
jobs:
76
deploy:
87
if: ${{ github.ref == 'refs/heads/main' }}
98
runs-on: ubuntu-latest
109

11-
1210
steps:
1311
- name: Checkout Main
14-
uses: actions/checkout@v3
12+
uses: actions/checkout@v4
1513

1614
- name: Setup Aftman
17-
uses: ok-nick/setup-aftman@v0
18-
with:
15+
uses: ok-nick/setup-aftman@v0.4.2
16+
with:
1917
token: ${{ secrets.GITHUB_TOKEN }}
2018

2119
- name: Install Aftman Toolchains
@@ -28,27 +26,26 @@ jobs:
2826
run: mkdir -p Packages
2927

3028
- name: Run Selene
31-
run : selene src
29+
run: selene src
3230

3331
- name: Build package rbxm
3432
run: rojo build -o NeoHotbar.rbxm pack.project.json
3533

3634
- name: Upload package rbxm as build artifact
37-
uses: actions/upload-artifact@v3
38-
with:
35+
uses: actions/upload-artifact@v4
36+
with:
3937
name: NeoHotbar
4038
path: NeoHotbar.rbxm
4139

4240
- name: Get Release from wally.toml
4341
uses: SebRollen/toml-action@v1.0.0
4442
id: read_toml
45-
with:
46-
file: 'wally.toml'
47-
field: 'package.version'
48-
43+
with:
44+
file: "wally.toml"
45+
field: "package.version"
4946

5047
- name: Publish to Wally
51-
env:
48+
env:
5249
WALLY_TOKEN: ${{ secrets.WALLY_AUTH_TOKEN }}
5350
run: |
5451
mkdir =p ~/.wally
@@ -57,31 +54,31 @@ jobs:
5754
5855
- name: Release
5956
uses: softprops/action-gh-release@v1
60-
with:
57+
with:
6158
name: ${{ steps.read_toml.outputs.value }}
6259
tag_name: ${{ steps.read_toml.outputs.value }}
6360
files: NeoHotbar.rbxm
6461
generate_release_notes: true
6562
draft: true
6663

67-
development:
64+
development:
6865
if: ${{ github.ref == 'refs/heads/dev' }}
6966
runs-on: ubuntu-latest
7067

7168
steps:
7269
- name: Checkout development
73-
uses: actions/checkout@v3
70+
uses: actions/checkout@v4
7471

7572
- name: Setup Aftman
76-
uses: ok-nick/setup-aftman@v0
77-
with:
73+
uses: ok-nick/setup-aftman@v0.4.2
74+
with:
7875
token: ${{ secrets.GITHUB_TOKEN }}
7976

8077
- name: Install Aftman Toolchains
8178
run: aftman install
8279

8380
- name: Run Selene
84-
run : selene src
81+
run: selene src
8582

8683
- name: Install Dependencies
8784
run: wally install
@@ -93,7 +90,7 @@ jobs:
9390
run: rojo build -o test-pack.rbxm pack.project.json
9491

9592
- name: Upload test-pack.rbxm as build artifact
96-
uses: actions/upload-artifact@v3
97-
with:
93+
uses: actions/upload-artifact@v4
94+
with:
9895
name: NeoHotbar
99-
path: test-pack.rbxm
96+
path: test-pack.rbxm

src/Components/Hotbar.lua

+18-16
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,28 @@ return function(Props: table)
3333
end),
3434

3535
[Children] = ForPairs(States.CustomButtons, function(ButtonNum, ButtonEntry)
36-
return ButtonNum, CustomButton {
37-
Icon = ButtonEntry.Icon,
38-
Callback = ButtonEntry.Callback,
39-
LayoutOrder = ButtonEntry,
40-
GamepadKeybind = ButtonEntry.GamepadKeybind,
41-
}
36+
return ButtonNum,
37+
CustomButton {
38+
Icon = ButtonEntry.Icon,
39+
Callback = ButtonEntry.Callback,
40+
LayoutOrder = ButtonEntry.LayoutOrder,
41+
GamepadKeybind = ButtonEntry.GamepadKeybind,
42+
}
4243
end, Fusion.cleanup),
4344
},
4445
[Child "ToolSlots"] = {
4546
[Children] = ForPairs(States.ToolSlots, function(ToolNum, ToolSlot)
46-
return ToolNum, ToolButton {
47-
Tool = ToolSlot.Tool,
48-
Equipped = ToolSlot.Equipped,
49-
ToolNumber = ToolNum,
50-
LayoutOrder = ToolNum,
51-
}
47+
return ToolNum,
48+
ToolButton {
49+
Tool = ToolSlot.Tool,
50+
Equipped = ToolSlot.Equipped,
51+
ToolNumber = ToolNum,
52+
LayoutOrder = ToolNum,
53+
}
5254
end, Fusion.cleanup),
5355
},
5456
},
55-
57+
5658
[Children] = {
5759
ToolTip {},
5860
},
@@ -89,12 +91,12 @@ return function(Props: table)
8991
local CustomButtons = States.CustomButtons:get()
9092
local OffsetPadding = ((#ToolSlots >= 1 and #CustomButtons >= 1) and 10) or 0
9193
return UDim.new(0, OffsetPadding)
92-
end)
94+
end),
9395
},
9496
},
95-
}
97+
},
9698
}
9799
end
98100

99101
return Hotbar
100-
end
102+
end

stylua.toml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
call_parentheses = "Input"

wally.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "imavafe/neohotbar"
33
description = "A modern, flexible hotbar for Roblox"
4-
version = "1.0.0"
4+
version = "1.0.1"
55
license = "MIT"
66
authors = ["Avafe"]
77

@@ -13,4 +13,4 @@ include = ["src", "src/*", "default.project.json", "wally.lock", "wally.toml"]
1313

1414
[dependencies]
1515
Fusion = "elttob/fusion@0.2.0"
16-
FusionUtils = "hexcede/fusion-utils@0.1.2"
16+
FusionUtils = "hexcede/fusion-utils@0.1.2"

0 commit comments

Comments
 (0)