-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2277a27
commit c0288c5
Showing
5 changed files
with
74 additions
and
33 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -2,6 +2,12 @@ Changelog | |
--------- | ||
--------- | ||
|
||
1.48 | ||
|
||
*web client* | ||
- added visuals tab to settings dialog | ||
|
||
|
||
1.47 | ||
|
||
*world* | ||
|
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/*************************************************************************** | ||
* Copyright © 2024 - Faiumoni e. V. * | ||
*************************************************************************** | ||
*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU Affero General Public License as * | ||
* published by the Free Software Foundation; either version 3 of the * | ||
* License, or (at your option) any later version. * | ||
* * | ||
***************************************************************************/ | ||
|
||
import { AbstractSettingsTab } from "./AbstractSettingsTab"; | ||
|
||
import { SettingsDialog } from "../SettingsDialog"; | ||
|
||
import { ui } from "../../UI"; | ||
import { UIComponentEnum } from "../../UIComponentEnum"; | ||
|
||
import { ChatLogComponent } from "../../component/ChatLogComponent"; | ||
|
||
|
||
export class VisualsTab extends AbstractSettingsTab { | ||
|
||
constructor(parent: SettingsDialog, element: HTMLElement) { | ||
super(element); | ||
const chatLog = (ui.get(UIComponentEnum.ChatLog) as ChatLogComponent); | ||
|
||
parent.createCheckBox("chk_light", "effect.lighting", | ||
"Lighting effects are enabled", "Lighting effects are disabled"); | ||
|
||
parent.createCheckBox("chk_weather", "effect.weather", | ||
"Weather is enabled", "Weather is disabled", function() { | ||
if (chatLog) { | ||
chatLog.addLine("client", "Weather changes will take effect after you change maps."); | ||
} | ||
})!; | ||
|
||
parent.createCheckBox("chk_blood", "effect.blood", | ||
"Gory images are enabled", "Gory images are disabled"); | ||
|
||
parent.createCheckBox("chk_nonude", "effect.no-nude", | ||
"Naked entities have undergarments", "Naked entities are not covered"); | ||
|
||
parent.createCheckBox("chk_shadows", "effect.shadows", | ||
"Shadows are enabled", "Shadows are disabled"); | ||
|
||
parent.createCheckBox("chk_activityindicator", "activity-indicator", | ||
"Indicator will be drawn", "Indicator will not be drawn"); | ||
|
||
parent.createCheckBox("chk_clickindicator", "click-indicator", | ||
"Displaying clicks", "Not displaying clicks"); | ||
} | ||
} |