Skip to content

Commit

Permalink
undo changes to volume scale
Browse files Browse the repository at this point in the history
  • Loading branch information
fira committed Nov 14, 2023
1 parent 1f68af4 commit a1ab659
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions code/modules/tgui_panel/audio.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* SPDX-License-Identifier: MIT
*/

/// Admin music volume, from 0 to 0.25. YEAH WE DON'T GO TO 100% IT'S JUST THAT LOUD.
/client/var/admin_music_volume = 0.2
/// Admin music volume, from 0 to 1.
/client/var/admin_music_volume = 0.5

/**
* public
Expand Down
6 changes: 3 additions & 3 deletions tgui/packages/tgui-panel/audio/NowPlayingWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ export const NowPlayingWidget = (props, context) => {
<Flex.Item mx={0.5} fontSize="0.9em">
<Knob
minValue={0}
maxValue={0.25} // Maximum set to 25% to preserve users' sanity
maxValue={1}
value={settings.adminMusicVolume}
step={0.0005}
step={0.0025}
stepPixelSize={1}
format={(value) => toFixed(value * 400) + '%'}
format={(value) => toFixed(value * 100) + '%'}
onDrag={(e, value) =>
settings.update({
adminMusicVolume: value,
Expand Down
2 changes: 1 addition & 1 deletion tgui/packages/tgui-panel/settings/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const initialState = {
fontFamily: FONTS[0],
lineHeight: 1.2,
theme: 'light',
adminMusicVolume: 0.5,
adminMusicVolume: 0.2,
// Keep these two state vars for compatibility with other servers
highlightText: '',
highlightColor: '#ffdd44',
Expand Down

0 comments on commit a1ab659

Please sign in to comment.