Skip to content

Commit

Permalink
- Bump Version to 1.4.1
Browse files Browse the repository at this point in the history
- Add option to disable red notifications to MCM debug page
  • Loading branch information
Garry Red committed Apr 23, 2024
1 parent 034cf46 commit b969105
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 4 deletions.
12 changes: 11 additions & 1 deletion README.md
@@ -1,4 +1,4 @@
# Telekinesis (Bluetooth Toy Control for Skyrim) 1.4.0
# Telekinesis (Bluetooth Toy Control for Skyrim) 1.4.1

Telekinesis is a mod that brings native support for naughty devices (bluetooth or others) to Skyrim SE, AE.

Expand Down Expand Up @@ -113,6 +113,16 @@ This mod is free software and can be used under the terms of the [Apache License

## Changelog

## 1.4.1

### Features

- Add option to disable red error notifications (Page "Debug")

### Bugfixes

- Fix systems with unicode characters in skyrim path (previous version will crash on load due to encoding issues)

## 1.4.0

### Features
Expand Down
7 changes: 5 additions & 2 deletions deploy/Data/Source/Scripts/Tele_Devices.psc
Expand Up @@ -11,7 +11,7 @@ Spell Property Tele_Stop Auto

Int Property MajorVersion = 1 AutoReadOnly Hidden
Int Property MinorVersion = 4 AutoReadOnly Hidden
Int Property PatchVersion = 0 AutoReadOnly Hidden
Int Property PatchVersion = 1 AutoReadOnly Hidden
String Property Revision = "" AutoReadOnly Hidden

String Property Version Hidden
Expand All @@ -20,6 +20,7 @@ String Property Version Hidden
EndFunction
EndProperty

Bool Property LogErrors = true Auto Hidden
Bool Property LogDeviceConnects = true Auto Hidden
Bool Property LogDeviceEvents = false Auto Hidden
Bool Property LogDeviceEventEnd = false Auto Hidden
Expand Down Expand Up @@ -297,7 +298,9 @@ EndFunction

Function LogError(String msg)
{ Log Telekinesis Error }
Debug.Notification("<font color='#fc3503'>[Tele] " + msg)
If LogErrors
Debug.Notification("<font color='#fc3503'>[Tele] " + msg)
EndIf
Trace(msg, 2)
EndFunction

Expand Down
16 changes: 16 additions & 0 deletions deploy/Data/Source/Scripts/Tele_MCM.psc
Expand Up @@ -643,6 +643,7 @@ Event OnPageReset(String page)
AddToggleOptionST("OPTION_LOG_EVENTS", "Device Starts Moving", TDevices.LogDeviceEvents)
AddToggleOptionST("OPTION_LOG_EVENTS_ENDS", "Device Stops Moving", TDevices.LogDeviceEvents)
AddToggleOptionST("OPTION_LOG_DEBUG", "Other messages", TDevices.LogDebugEvents)
AddToggleOptionST("OPTION_LOG_ERROS", "Errors", TDevices.LogErrors)

AddHeaderOption("Spells")
AddToggleOptionST("ACTION_ADD_SPELLS_TO_PLAYER", "Learn debug spells", _DebugSpellsAdded)
Expand Down Expand Up @@ -2280,6 +2281,21 @@ State OPTION_LOG_CONNECTS
EndEvent
EndState

State OPTION_LOG_ERROS
Event OnSelectST()
TDevices.LogErrors = !TDevices.LogErrors
SetToggleOptionValueST(TDevices.LogErrors)
EndEvent

Event OnDefaultST()
SetToggleOptionValueST(TDevices.LogErrors)
EndEvent

Event OnHighlightST()
SetInfoText("Red notification on connection or device errors")
EndEvent
EndState

State OPTION_LOG_EVENTS_ENDS
Event OnSelectST()
TDevices.LogDeviceEventEnd = !TDevices.LogDeviceEventEnd
Expand Down
2 changes: 1 addition & 1 deletion vcpkg.json
@@ -1,7 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg/master/scripts/vcpkg.schema.json",
"name": "telekinesis",
"version-string": "1.4.0",
"version-string": "1.4.1",
"port-version": 0,
"description": "Telekinesis SKSE Plugin",
"homepage": "https://github.com/garryrot/telekinesis",
Expand Down

0 comments on commit b969105

Please sign in to comment.