Skip to content

Commit efbcd3e

Browse files
authored
Merge pull request #9 from T1ckbase/8-hud-rainbow-sync
8 hud rainbow sync
2 parents 051d189 + 9095c7b commit efbcd3e

15 files changed

Lines changed: 360 additions & 326 deletions

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ insert_final_newline = true
66
end_of_line = lf
77
indent_style = space
88
indent_size = 2
9-
max_line_length = 160
9+
max_line_length = 120

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.github/workflows/release.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ jobs:
1515
- name: Checkout
1616
uses: actions/checkout@v6
1717
with:
18-
fetch-depth: 0 # Required for git describe to work correctly
18+
fetch-depth: 0
1919

2020
- name: Setup Bun
2121
uses: oven-sh/setup-bun@v2
2222
with:
2323
bun-version: latest
2424

2525
- name: Install dependencies
26-
run: bun install
26+
run: bun install --frozen-lockfile
2727

2828
- name: Build
2929
run: bun run build
@@ -34,4 +34,5 @@ jobs:
3434
- name: Create Draft Release
3535
env:
3636
GH_TOKEN: ${{ github.token }}
37-
run: gh release create ${{ github.ref_name }} --draft --generate-notes --verify-tag cfg.zip
37+
TAG_NAME: ${{ github.ref_name }}
38+
run: gh release create "$TAG_NAME" --draft --generate-notes --verify-tag cfg.zip

README.md

Lines changed: 21 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515

1616
## Features
1717

18-
- **Changes color based on mouse movement**
18+
- **Changes the crosshair color based on mouse movement**
19+
- **Can sync the HUD color with the crosshair**
1920
- **Supports multiple color palettes**
2021
- **Allows adjustable speed**
2122

@@ -30,55 +31,37 @@
3031

3132
## Usage
3233

33-
1. Place the `t1ckbase_rainbow_crosshair` folder into: `Steam/steamapps/common/Counter-Strike Global Offensive/game/csgo/cfg`
34+
1. Place the `t1ckbase_rainbow_crosshair` folder in: `Steam/steamapps/common/Counter-Strike Global Offensive/game/csgo/cfg`
3435
2. Add the following commands to your `autoexec.cfg`
3536

3637
```
3738
exec t1ckbase_rainbow_crosshair/init
3839
39-
// Load color palette
40-
rainbow_crosshair_load_oklch
41-
// rainbow_crosshair_load_hsl
40+
rainbow_crosshair_load_hsl
41+
// rainbow_crosshair_load_oklch
4242
43-
// Set color change speed [1-30]
4443
rainbow_crosshair_speed_10
4544
46-
rainbow_crosshair_enable
47-
// rainbow_crosshair_disable
45+
// rainbow_crosshair_hud_sync_on
46+
rainbow_crosshair_hud_sync_off
47+
48+
rainbow_crosshair_on
49+
// rainbow_crosshair_off
4850
// rainbow_crosshair_toggle
4951
```
5052

5153
## Aliases
5254

53-
- Enable rainbow crosshair
54-
55-
```
56-
rainbow_crosshair_enable
57-
```
58-
59-
- Disable rainbow crosshair
60-
61-
```
62-
rainbow_crosshair_disable
63-
```
64-
65-
- Toggle rainbow crosshair
66-
67-
```
68-
rainbow_crosshair_toggle
69-
```
70-
71-
- Load color palette (`oklch`, `hsl`)
72-
73-
```
74-
rainbow_crosshair_load_oklch
75-
```
76-
77-
- Adjust speed `[1-30]`
78-
79-
```
80-
rainbow_crosshair_speed_10
81-
```
55+
| Command | Description |
56+
| ----------------------------------------------------------- | -------------------------------------------- |
57+
| `rainbow_crosshair_on` | Turn the rainbow crosshair on. |
58+
| `rainbow_crosshair_off` | Turn the rainbow crosshair off. |
59+
| `rainbow_crosshair_toggle` | Toggle the rainbow crosshair on or off. |
60+
| `rainbow_crosshair_hud_sync_on` | Sync the HUD color with the crosshair color. |
61+
| `rainbow_crosshair_hud_sync_off` | Stop syncing the HUD color. |
62+
| `rainbow_crosshair_load_hsl` | Load the `hsl` palette. |
63+
| `rainbow_crosshair_load_oklch` | Load the `oklch` palette. |
64+
| `rainbow_crosshair_speed_1` to `rainbow_crosshair_speed_30` | Set the color change speed. |
8265

8366
## Color palettes preview
8467

@@ -89,4 +72,4 @@ rainbow_crosshair_speed_10
8972

9073
<br/>
9174

92-
![cs2-rainbow-crosshair](https://github.com/T1ckbase/cs2-rainbow-crosshair/assets/146760065/6a01bc8a-d4c8-48ad-b6ed-f93c4a2c1b64)
75+
[Watch the CS2 rainbow crosshair preview](https://github.com/user-attachments/assets/0f0c74d4-9cc3-4000-8a3c-e960f30d1234)

assets/download-button-dark.svg

Lines changed: 55 additions & 51 deletions
Loading

assets/download-button-light.svg

Lines changed: 55 additions & 51 deletions
Loading

0 commit comments

Comments
 (0)