Compare commits
186 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d257a41660 | |||
| 36f2bbd8d1 | |||
| da291b7fca | |||
| c8485233d5 | |||
| 2d768e4edb | |||
| e58376bf50 | |||
| dceb028184 | |||
| 33a4d94c44 | |||
| b2f158f893 | |||
| da6da32651 | |||
| 477591e2fa | |||
| ddb293399e | |||
| 7494b001a2 | |||
| 9f0a40bedc | |||
| 8da05c3080 | |||
| 5b5f52f86e | |||
| af3caa9b96 | |||
| 206b25b8d6 | |||
| 00deef01a4 | |||
| 74e2c655f0 | |||
| fa91c4e847 | |||
| 1125caabca | |||
| eead8d813c | |||
| 28b20ad6d3 | |||
| a88ec1714d | |||
| 0110295e7d | |||
| 9752206996 | |||
| 2f4e4c33ca | |||
| b30b6b135c | |||
| df0844b737 | |||
| 21d703bf0b | |||
| 4048f0b8d0 | |||
| 2d0e9ae70c | |||
| eaf11dcebe | |||
| 9bd8262191 | |||
| ddb00a0836 | |||
| aec8ba15f2 | |||
| c84eae199b | |||
| 9ead8098f5 | |||
| b190456005 | |||
| ebc0999a8e | |||
| c0b3edb20c | |||
| 64cadcf87b | |||
| 0165cba966 | |||
| 3da550c2fc | |||
| 4b43fdb0ad | |||
| 56621669b2 | |||
| ed2a0f7374 | |||
| 59e86cd8dd | |||
| a74e3da030 | |||
| b8ed2a1ce5 | |||
| e6c6c02780 | |||
| ab9ebedeee | |||
| 11af4ce4c4 | |||
| 8a78390a15 | |||
| 23e47e06c0 | |||
| ff60576f3c | |||
| 5b5bacfc41 | |||
| eb8b7be2f5 | |||
| eb05e04f79 | |||
| 2f0affcdbb | |||
| dfa7c47887 | |||
| acf799440e | |||
| 3e98b9103f | |||
| 4a613f7acb | |||
| af5f4d380a | |||
| ecf1e93a1b | |||
| e404a2e0d9 | |||
| d485f5ea1f | |||
| b48684ce5a | |||
| a11c8bc6e9 | |||
| 985a284e7d | |||
| e629518550 | |||
| c28c972ae3 | |||
| bc0f44712f | |||
| f663cb3c14 | |||
| 5a9c2018b0 | |||
| a1cdae05d0 | |||
| c17f5ae516 | |||
| a2db8cb639 | |||
| 507efc8cda | |||
| 6f3cf2f3ce | |||
| c979a05d6c | |||
| c53e453341 | |||
| 2519b413f8 | |||
| e5ac4faf7b | |||
| 0c26d1aa67 | |||
| 8b13ba1fdc | |||
| 52da5d5e23 | |||
| 916640fb60 | |||
| feeb1df4eb | |||
| f2086865ce | |||
| 15a89dd6e7 | |||
| 53952717c0 | |||
| fcbbd174b6 | |||
| d41cea0031 | |||
| c943a2cff3 | |||
| abcd0847ef | |||
| 2f52cbb7d4 | |||
| 9103bbb892 | |||
| 8f9c01d322 | |||
| af4651b37e | |||
| 485dc4e1b4 | |||
| c878d24d11 | |||
| cb5c940a84 | |||
| dd3a0ea069 | |||
| 4bf6c3ef1f | |||
| 2378ce6bf2 | |||
| b85db24601 | |||
| cae7d76206 | |||
| 4c6d52e652 | |||
| cbfdfe35be | |||
| 537b96c79f | |||
| d3d28924e6 | |||
| 48f1fb5ba1 | |||
| 0b13efd0b5 | |||
| 289fe2eb78 | |||
| fe9e66b0ff | |||
| 990edd8300 | |||
| db95ec7dff | |||
| 7e036c1d00 | |||
| 1c511a147d | |||
| f093d93761 | |||
| e7c8667497 | |||
| 497197eb2c | |||
| 08b2ffc600 | |||
| 8db3eca46c | |||
| 4d54eabdac | |||
| 698eb01bbe | |||
| a3fbaab173 | |||
| 57291e925d | |||
| 8e9332ac8c | |||
| fcb72e2b78 | |||
| 7012e8c0d8 | |||
| 176474ec2a | |||
| 9fc8749d15 | |||
| 09634b416d | |||
| 393ef175bf | |||
| d63c710836 | |||
| fa9baa3929 | |||
| 4c18b9a62b | |||
| 26c12c3410 | |||
| 76a4de1192 | |||
| 55aeaea5b9 | |||
| e6d25f3e38 | |||
| 740c7cf1bb | |||
| 71f0b63079 | |||
| 8ee54bb8df | |||
| e3ce41306e | |||
| af7c757e63 | |||
| a10c115b9b | |||
| 6d49dbad3e | |||
| a651b3b9ad | |||
| 3f2e56be67 | |||
| feb6e262e4 | |||
| 1d557f1b0e | |||
| fea4965889 | |||
| 91663832f0 | |||
| 9cf1b19801 | |||
| 1f7f0945c5 | |||
| cd6afb32cb | |||
| 7d5496e959 | |||
| ed426556e1 | |||
| 96c445356b | |||
| 1c2d361b77 | |||
| 581aae1735 | |||
| 70109e1896 | |||
| 0df5819a88 | |||
| 3fbbe8543f | |||
| 03dfb8e3da | |||
| a987e97610 | |||
| ecd46ed630 | |||
| f2f7599f81 | |||
| ac158907ea | |||
| 9506af49db | |||
| c882eac1ca | |||
| 7a6b44048a | |||
| 0d39d59a04 | |||
| f0e0db55e3 | |||
| f207239d56 | |||
| ccf2ec9f12 | |||
| aff7a5e7ce | |||
| cd84ca2b3f | |||
| 7c645afa1d | |||
| 24c1e0e754 | |||
| 9f6a0807d1 |
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
# Generated files
|
# Generated files
|
||||||
ChatTwo/Resources/Language.*.resx linguist-generated=true
|
HellionChat/Resources/Language.*.resx linguist-generated=true
|
||||||
@@ -59,7 +59,7 @@ body:
|
|||||||
id: log
|
id: log
|
||||||
attributes:
|
attributes:
|
||||||
label: Relevant /xllog excerpt
|
label: Relevant /xllog excerpt
|
||||||
description: Filter for "HellionChat" or "ChatTwo" if the log is huge
|
description: Filter for "HellionChat" if the log is huge
|
||||||
render: text
|
render: text
|
||||||
|
|
||||||
- type: checkboxes
|
- type: checkboxes
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ new commands, new translations, removed behaviour. If none, write
|
|||||||
bump and is it covered by the existing migration tests?
|
bump and is it covered by the existing migration tests?
|
||||||
- Does this change the schema in MessageStore?
|
- Does this change the schema in MessageStore?
|
||||||
- Does this change the repo.json or HellionChat.yaml manifest fields?
|
- Does this change the repo.json or HellionChat.yaml manifest fields?
|
||||||
- Does this affect the upstream cherry-pick path? See UPSTREAM_SYNC.md.
|
- Does this affect the upstream cherry-pick path? See docs/UPSTREAM_SYNC.md.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
## Checklist
|
## Checklist
|
||||||
@@ -67,6 +67,6 @@ new commands, new translations, removed behaviour. If none, write
|
|||||||
- [ ] I updated the README, in-plugin strings or documentation if my
|
- [ ] I updated the README, in-plugin strings or documentation if my
|
||||||
change is user-visible.
|
change is user-visible.
|
||||||
- [ ] I did not include any AI-generated code without disclosing it
|
- [ ] I did not include any AI-generated code without disclosing it
|
||||||
in the PR description (see [AI_DISCLOSURE.md](../AI_DISCLOSURE.md)).
|
in the PR description (see [AI_DISCLOSURE.md](../docs/AI_DISCLOSURE.md)).
|
||||||
- [ ] I confirm my contribution is released under the
|
- [ ] I confirm my contribution is released under the
|
||||||
[EUPL-1.2](../LICENSE).
|
[EUPL-1.2](../LICENSE).
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ updates:
|
|||||||
# noise down while still catching transitive security advisories within
|
# noise down while still catching transitive security advisories within
|
||||||
# a few days of disclosure.
|
# a few days of disclosure.
|
||||||
- package-ecosystem: nuget
|
- package-ecosystem: nuget
|
||||||
directory: /ChatTwo
|
directory: /HellionChat
|
||||||
schedule:
|
schedule:
|
||||||
interval: weekly
|
interval: weekly
|
||||||
day: monday
|
day: monday
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
subtitle: "Theme Foundation"
|
||||||
|
versionsnatur: "Major-UI-Cycle"
|
||||||
|
---
|
||||||
|
- Theme-Engine mit fünf Built-In-Themes: Hellion Arctic (Default), Chat 2 Klassik, Event Horizon, Moonlit Bloom, Mint Grove
|
||||||
|
- Settings öffnet jetzt eine Card-Grid-Übersicht — Klick auf eine Card führt in den Detail-View, Breadcrumb und ESC zurück zur Übersicht
|
||||||
|
- Themes-Tab mit Mini-Mockup pro Theme, Live-Switch beim Klick
|
||||||
|
- Eigene Themes als JSON in `pluginConfigs/HellionChat/themes/` — Beispiel-Vorlage wird beim ersten Start automatisch abgelegt
|
||||||
|
- Optional pro Theme eigene Chat-Channel-Farben mit Übernehmen/Behalten-Banner — niemals automatisch überschrieben
|
||||||
|
- Plugin-Icon zum Hellion-Forge-Hammer gewechselt
|
||||||
|
- Migration v13 → v14: alle User landen auf Hellion Arctic. Wer den Upstream-Look will, wählt Chat 2 Klassik in Settings → Themes
|
||||||
|
- Anleitung zum Schreiben eigener Themes: `docs/THEME-AUTHORING.md`
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
subtitle: "Layout Refresh"
|
||||||
|
versionsnatur: "Major-UI-Cycle"
|
||||||
|
---
|
||||||
|
- Sidebar im neuen Look: fix 44 px breit, nur Icons, Tab-Name als Tooltip beim Hover, vertikale Akzent-Pill markiert den aktiven Tab
|
||||||
|
- Top-Tabs bekommen eine Akzent-Underline statt Background-Fill am aktiven Tab
|
||||||
|
- Pro Tab eigenes Icon wählbar in Einstellungen → Tabs (FontAwesome-Pool)
|
||||||
|
- Auto-Tell-Tabs sind jetzt visuell unterscheidbar: jeder Tell-Partner bekommt ein eigenes Icon (envelope/star/heart/bell/bookmark/flag/fire) plus eigene Farbe aus 12-Farb-Palette — 84 Kombinationen, gleicher Partner ergibt konsistent dieselbe
|
||||||
|
- Pulsierender roter Dot oben rechts am Sidebar-Icon zeigt ungelesene Nachrichten an. Sanft, 2-Sekunden-Cycle, deaktivierbar über `Configuration.ReduceMotion` (UI-Toggle in v1.3.0)
|
||||||
|
- Bottom-Status-Bar (22 px) mit fünf Live-Slots: aktiver Channel + Color-Dot, Privacy-Badge, Tab/Message-Counter, Auto-Tell-Counter, Plugin-Version. Update 1×/Sek
|
||||||
|
- Card-Rows als Default-Message-Render: Sender-Header in Channel-Farbe, Body neue Zeile, dezenter Trenner. `Compact Density`-Toggle in Aussehen schaltet zurück auf den Einzeiler
|
||||||
|
- Bug-Fix: Settings speichern löscht den Chat-Verlauf nicht mehr. Refilter läuft jetzt nur wenn Filter-relevante Settings geändert wurden — Cosmetic-Änderungen lassen den Chat unverändert. Persistente und Auto-Tell-Tabs überleben beide
|
||||||
|
- Bug-Fix: Hellion-Schrift (Exo 2) blockt die Schriftgröße nicht mehr — 4K-User können hochskalieren
|
||||||
|
- Migration v14 → v15: alte Theme-Felder entfernt, alle anderen Settings bleiben
|
||||||
|
|
||||||
|
Animation-Polish (Lerps, Theme-Crossfade, Quick-Picker) folgt in v1.3.0.
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
subtitle: "Settings Cleanup"
|
||||||
|
versionsnatur: "UX-Polish-Cycle"
|
||||||
|
---
|
||||||
|
- Settings-Übersicht thematisch re-sortiert: zusammenhängende Optionen wohnen jetzt zusammen, jede Card hat einen kurzen Untertitel — kein Raten mehr wo eine Setting steckt
|
||||||
|
- Drei neue Cards: **Theme & Layout** (Theme-Picker, Fenster-Style, Zeitstempel-Style), **Schriften & Farben** (Schriftart, Schriftgröße, Chat-Farben pro Channel), **Daten-Verwaltung** (Aufbewahrung, Cleanup, Export, DB-Viewer, Advanced-Tools — vorher zwischen Datenschutz und Datenbank verteilt)
|
||||||
|
- Datenschutz fokussiert sich jetzt auf eine Aufgabe: den Privacy-Filter
|
||||||
|
- Der Auto-Tell-Tabs-History-Preload-Slider ist von Datenschutz nach Chat → Auto-Tell-Tabs umgezogen
|
||||||
|
- KeybindMode wohnt jetzt unter Allgemein → Eingabe statt unter Sprache
|
||||||
|
- Vier tote Schema-Felder entfernt (alle obsolet seit der Theme-Engine in v1.1.0): `Stilüberschreiben`-Toggle, `Stilname`-Auswahl, alter `WindowAlpha`-Slider, ungenutztes `ShowThemeQuickPicker`
|
||||||
|
- Migration v15 → v16: alter `WindowAlpha`-Wert wird automatisch nach `Theme & Layout → Fenster-Style → Fenster-Transparenz` gemappt (nur wenn der Slider noch auf Default 0.85 stand, sonst gewinnt der User-Wert). Backup der Pre-v16-Config liegt unter `pluginConfigs/HellionChat.json.pre-v16-backup`. User die `Stilüberschreiben` aktiv hatten sehen einen einmaligen Hinweis-Toast
|
||||||
|
- UX-Default-Bumps für Bestand-User mit Default-Werten: Card-Rows-Layout zurück auf Single-Line, NG+ standardmäßig hidden, gleiche Zeitstempel werden zusammengefasst, MaxLinesToRender auf konservativere 2500
|
||||||
|
- Frische Installs starten mit dem Hellion-Brand-Chat-Color-Preset out-of-the-box (der First-Run-Wizard hat keine Preset-Wahl)
|
||||||
|
- Hinweis zum Window-Transparenz-Slider in der Beschreibung: Dalamud's per-Window-Hamburger-Menü (oben rechts in der Titelleiste) bietet eigene Overrides für Deckkraft, Hintergrund-Blur, Anpinnen und Durchklick — die haben Vorrang über unseren Slider für das jeweilige Fenster
|
||||||
|
|
||||||
|
Pure UX-Polish, keine neuen Features. Nächster Cycle (v1.3.0): Animation-Polish (Lerps, Theme-Crossfade, Quick-Picker) wie ursprünglich geplant.
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
subtitle: "Theme Expansion"
|
||||||
|
versionsnatur: "Theme-Pack-Patch"
|
||||||
|
---
|
||||||
|
- Vier neue Built-in-Themes verlängern die Auswahl im Picker — keine Engine-Änderung, keine Settings angefasst, einfach mehr Farboptionen
|
||||||
|
- **Night Blue** — Royal Blue auf tiefem Marineblau. Kühles Tech-Dashboard-Mood, bewusst neutral gehalten damit es sich nicht mit den Brand-Themes beißt
|
||||||
|
- **Indigo Violet** — Royal Violet auf Deep Indigo mit Türkis-Mint-Counter für Aurora-Glitter-Stimmung. Schwester von Event Horizon, aber dunkler und dichter; der Türkis-Akzent hält die beiden klar auseinander
|
||||||
|
- **Forge Merchantman** — Patina-Bronze auf Workshop-Slate mit warmem Bernstein-Counter. Hellion Forge bekommt ein eigenes Theme im Plugin selbst — Schwester von Hellion Arctic, aber grüner und wärmer statt kaltem Cyan
|
||||||
|
- **Hellion Spectrum** — Farbenblind-sichere Channel-Farben (Deuteranopie/Protanopie) auf Basis der Wong/Okabe-Ito-Palette. Channel-Identität bleibt erhalten (Tell pink, Yell gelb, Shout orange, Party blau, FC grün); die Töne sind so gewählt dass jeder Channel auch unter Rot-Grün-Schwäche klar trennbar bleibt. Deckt rund 99 % aller CVD-Fälle ab
|
||||||
|
- Kein Schema-Bump, keine Migration. Das Default-Theme bleibt **Hellion Arctic**, eigene Custom-Themes laufen unverändert weiter
|
||||||
|
- Theme-Katalog wächst damit von fünf auf neun Built-ins
|
||||||
|
|
||||||
|
Reines Theme-Pack zwischen v1.2.1 und dem nächsten Polish-Cycle. Eine Tritan-Variante (Spectrum für Blau-Gelb-Schwäche) kann später nachgeliefert werden, falls Bedarf kommt.
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
subtitle: "Plugin Integrations: Honorific"
|
||||||
|
versionsnatur: "Plugin-Integration-Cycle 1"
|
||||||
|
---
|
||||||
|
- Erste Plugin-Integration eingebaut, Cycle 1 von 6 auf der Roadmap
|
||||||
|
- **Honorific-Custom-Titles im Chat-Header** — der Titel den du in Honorific gesetzt hast erscheint jetzt links über dem Message-Log mit der von dir gewählten Farbe, Auto-Hide wenn Honorific nicht installiert ist oder kein Custom-Titel aktiv ist
|
||||||
|
- **Krone-Icon plus Tooltip** vor dem Titel-Text, damit klar ist woher der Slot kommt ohne dass der User raten muss
|
||||||
|
- **Neuer Integrations-Settings-Tab** mit Status-Indikator (erkannt, nicht installiert, inkompatibel) und Toggle. Plus Vorschau-Block der die fünf weiteren geplanten Cycles ankündigt: Kontextmenü-Aktionen, Smart Notifications (NotificationMaster), RP-Status-Block (Moodles und LightlessClient), ExtraChat-Channels, Quick-DM-Button (XIVInstantMessenger)
|
||||||
|
- **Maintainer-Attribution** im Tab als Höflichkeits-Geste, zwei Buttons zum Honorific-Repo und zum Caraxi-Profil. Plus Hellion-Forge-Discord-Button für Community-Vorschläge zu künftigen Integrationen
|
||||||
|
- Keine Migration, keine Schema-Änderung. Wer Honorific eh schon nutzt sieht den Custom-Titel automatisch sobald HellionChat aktualisiert
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## How to install
|
||||||
|
|
||||||
|
This release is distributed via the HellionChat custom repository, not the
|
||||||
|
Dalamud main plugin repo. To install:
|
||||||
|
|
||||||
|
1. In XIVLauncher: **Settings → Experimental → Custom Plugin Repositories**
|
||||||
|
2. Add the URL:
|
||||||
|
`https://raw.githubusercontent.com/JonKazama-Hellion/HellionChat/main/repo.json`
|
||||||
|
3. Enable, save, then `/xlplugins` → search **Hellion Chat** → install
|
||||||
|
|
||||||
|
## Project documents
|
||||||
|
|
||||||
|
- [README](https://github.com/JonKazama-Hellion/HellionChat/blob/main/README.md) — features, architecture, build
|
||||||
|
- [Privacy notice](https://github.com/JonKazama-Hellion/HellionChat/blob/main/PRIVACY.md) — what the plugin stores and sends
|
||||||
|
- [Third-party notices](https://github.com/JonKazama-Hellion/HellionChat/blob/main/docs/THIRD_PARTY_NOTICES.md) — dependencies and licences
|
||||||
|
- [Security policy](https://github.com/JonKazama-Hellion/HellionChat/blob/main/SECURITY.md) — vulnerability reporting
|
||||||
|
- [Support](https://github.com/JonKazama-Hellion/HellionChat/blob/main/SUPPORT.md) — bug reports, questions, contact paths
|
||||||
|
|
||||||
|
## Licence
|
||||||
|
|
||||||
|
[EUPL-1.2](https://github.com/JonKazama-Hellion/HellionChat/blob/main/LICENSE).
|
||||||
|
Based on [Chat 2](https://github.com/Infiziert90/ChatTwo) by Infi and Anna,
|
||||||
|
also EUPL-1.2.
|
||||||
@@ -29,7 +29,7 @@ jobs:
|
|||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Setup .NET 10
|
- name: Setup .NET 10
|
||||||
uses: actions/setup-dotnet@v4
|
uses: actions/setup-dotnet@v5
|
||||||
with:
|
with:
|
||||||
dotnet-version: 10.0.x
|
dotnet-version: 10.0.x
|
||||||
|
|
||||||
@@ -42,15 +42,15 @@ jobs:
|
|||||||
Expand-Archive -Force -Path dalamud.zip -DestinationPath $hooks
|
Expand-Archive -Force -Path dalamud.zip -DestinationPath $hooks
|
||||||
|
|
||||||
- name: Restore
|
- name: Restore
|
||||||
run: dotnet restore ChatTwo/ChatTwo.csproj
|
run: dotnet restore HellionChat/HellionChat.csproj
|
||||||
|
|
||||||
- name: Build (Release)
|
- name: Build (Release)
|
||||||
run: dotnet build ChatTwo/ChatTwo.csproj --configuration Release --no-restore
|
run: dotnet build HellionChat/HellionChat.csproj --configuration Release --no-restore
|
||||||
|
|
||||||
- name: Upload build output
|
- name: Upload build output
|
||||||
uses: actions/upload-artifact@v7
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: HellionChat-build-${{ github.run_number }}
|
name: HellionChat-build-${{ github.run_number }}
|
||||||
path: ChatTwo/bin/Release/**/HellionChat/**
|
path: HellionChat/bin/Release/**/HellionChat/**
|
||||||
if-no-files-found: warn
|
if-no-files-found: warn
|
||||||
retention-days: 14
|
retention-days: 14
|
||||||
|
|||||||
@@ -39,10 +39,10 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
|
||||||
- name: Setup .NET 10
|
- name: Setup .NET 10
|
||||||
uses: actions/setup-dotnet@v4
|
uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5.2.0
|
||||||
with:
|
with:
|
||||||
dotnet-version: 10.0.x
|
dotnet-version: 10.0.x
|
||||||
|
|
||||||
@@ -55,20 +55,20 @@ jobs:
|
|||||||
Expand-Archive -Force -Path dalamud.zip -DestinationPath $hooks
|
Expand-Archive -Force -Path dalamud.zip -DestinationPath $hooks
|
||||||
|
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@v3
|
uses: github/codeql-action/init@e46ed2cbd01164d986452f91f178727624ae40d7 # v4.35.3
|
||||||
with:
|
with:
|
||||||
languages: csharp
|
languages: csharp
|
||||||
build-mode: manual
|
build-mode: manual
|
||||||
queries: security-extended
|
queries: security-extended
|
||||||
|
|
||||||
- name: Restore
|
- name: Restore
|
||||||
run: dotnet restore ChatTwo/ChatTwo.csproj
|
run: dotnet restore HellionChat/HellionChat.csproj
|
||||||
|
|
||||||
- name: Build (Release)
|
- name: Build (Release)
|
||||||
run: dotnet build ChatTwo/ChatTwo.csproj --configuration Release --no-restore
|
run: dotnet build HellionChat/HellionChat.csproj --configuration Release --no-restore
|
||||||
|
|
||||||
- name: Perform CodeQL analysis
|
- name: Perform CodeQL analysis
|
||||||
uses: github/codeql-action/analyze@v3
|
uses: github/codeql-action/analyze@e46ed2cbd01164d986452f91f178727624ae40d7 # v4.35.3
|
||||||
with:
|
with:
|
||||||
category: /language:csharp
|
category: /language:csharp
|
||||||
|
|
||||||
@@ -79,15 +79,15 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@v3
|
uses: github/codeql-action/init@e46ed2cbd01164d986452f91f178727624ae40d7 # v4.35.3
|
||||||
with:
|
with:
|
||||||
languages: actions
|
languages: actions
|
||||||
build-mode: none
|
build-mode: none
|
||||||
|
|
||||||
- name: Perform CodeQL analysis
|
- name: Perform CodeQL analysis
|
||||||
uses: github/codeql-action/analyze@v3
|
uses: github/codeql-action/analyze@e46ed2cbd01164d986452f91f178727624ae40d7 # v4.35.3
|
||||||
with:
|
with:
|
||||||
category: /language:actions
|
category: /language:actions
|
||||||
|
|||||||
@@ -0,0 +1,226 @@
|
|||||||
|
name: Forge Announce
|
||||||
|
|
||||||
|
# Triggered when a vX.Y.Z tag is pushed. Reads .github/forge-posts/<tag>.md
|
||||||
|
# (Frontmatter + DE bullet body) and the matching English block from
|
||||||
|
# HellionChat/HellionChat.yaml, builds a Discord-Webhook embed and posts
|
||||||
|
# it to the Hellion Forge #changelog channel.
|
||||||
|
#
|
||||||
|
# Decoupled from release.yml: a fail here does not block the GitHub
|
||||||
|
# release, and a fail there does not block the announce. Spec lives in
|
||||||
|
# the Vault under "Hellion Chat Forge-Auto-Announce Spec".
|
||||||
|
#
|
||||||
|
# Security: the only user-controlled inputs that enter run-steps are the
|
||||||
|
# tag name and the frontmatter values from a repo-internal markdown file.
|
||||||
|
# Tag name is read via env: (TAG_NAME, $env:TAG_NAME) and validated against
|
||||||
|
# ^v\d+\.\d+\.\d+$ before any string interpolation. Frontmatter values are
|
||||||
|
# parsed by regex with explicit length caps. No webhook event payload data
|
||||||
|
# (issue titles, PR bodies, commit messages, etc.) flows into run-steps.
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
tag:
|
||||||
|
description: 'Existing tag to (re)post, e.g. v1.1.0'
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
announce:
|
||||||
|
name: Post changelog to Hellion Forge
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
# The DISCORD_FORGE_WEBHOOK secret lives under Settings → Environments
|
||||||
|
# → Webhook (case-sensitive). Without this declaration the secret is
|
||||||
|
# not in scope for the job.
|
||||||
|
environment: Webhook
|
||||||
|
timeout-minutes: 5
|
||||||
|
|
||||||
|
steps:
|
||||||
|
# On push:tags github.ref points at the tag commit; on workflow_dispatch
|
||||||
|
# the user supplies the tag explicitly. Always check out that tag so
|
||||||
|
# the yaml + forge-posts file are read from the tagged tree, not main.
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
with:
|
||||||
|
ref: ${{ github.event.inputs.tag || github.ref }}
|
||||||
|
|
||||||
|
# Build embed-payload as a JSON file on disk. PowerShell-Core (pwsh)
|
||||||
|
# ships pre-installed on ubuntu-latest so we get the same scripting
|
||||||
|
# patterns release.yml uses on windows-latest. Tag is read via env: to
|
||||||
|
# treat it as a string variable rather than inline shell text, and
|
||||||
|
# validated against the semver regex before any interpolation.
|
||||||
|
- name: Build embed payload
|
||||||
|
id: build
|
||||||
|
shell: pwsh
|
||||||
|
env:
|
||||||
|
TAG_NAME: ${{ github.event.inputs.tag || github.ref_name }}
|
||||||
|
run: |
|
||||||
|
$tag = $env:TAG_NAME
|
||||||
|
if ($tag -notmatch '^v\d+\.\d+\.\d+$') {
|
||||||
|
throw "V1: Refusing to announce non-semver tag: $tag"
|
||||||
|
}
|
||||||
|
$version = $tag.Substring(1)
|
||||||
|
|
||||||
|
# ---------- Forge-Post-Datei lesen ----------
|
||||||
|
$forgePath = ".github/forge-posts/$tag.md"
|
||||||
|
if (-not (Test-Path $forgePath)) {
|
||||||
|
throw "V2: Forge-Post-Datei für $tag fehlt unter .github/forge-posts/. Datei vor dem Tag anlegen, dann Tag re-pushen oder workflow_dispatch."
|
||||||
|
}
|
||||||
|
$forgeRaw = Get-Content -Path $forgePath -Raw
|
||||||
|
|
||||||
|
# Frontmatter (--- … ---) am Datei-Anfang
|
||||||
|
if ($forgeRaw -notmatch '(?s)\A---\s*\r?\n(.*?)\r?\n---\s*\r?\n(.*)\z') {
|
||||||
|
throw "V3: Frontmatter (---) fehlt oder ist defekt in $forgePath"
|
||||||
|
}
|
||||||
|
$fmText = $matches[1]
|
||||||
|
$deBody = $matches[2].Trim()
|
||||||
|
|
||||||
|
$subtitle = $null
|
||||||
|
$versionsnatur = $null
|
||||||
|
foreach ($line in ($fmText -split "`r?`n")) {
|
||||||
|
if ($line -match '^subtitle:\s*"?([^"]*)"?\s*$') { $subtitle = $matches[1] }
|
||||||
|
if ($line -match '^versionsnatur:\s*"?([^"]*)"?\s*$') { $versionsnatur = $matches[1] }
|
||||||
|
}
|
||||||
|
if ([string]::IsNullOrWhiteSpace($subtitle)) { throw "V3: Frontmatter-Feld 'subtitle' fehlt in $forgePath" }
|
||||||
|
if ([string]::IsNullOrWhiteSpace($versionsnatur)) { throw "V3: Frontmatter-Feld 'versionsnatur' fehlt in $forgePath" }
|
||||||
|
if ($subtitle.Length -gt 60) { throw "V4: Frontmatter-Feld 'subtitle' überschreitet Limit ($($subtitle.Length) Char, max 60)" }
|
||||||
|
if ($versionsnatur.Length -gt 40) { throw "V4: Frontmatter-Feld 'versionsnatur' überschreitet Limit ($($versionsnatur.Length) Char, max 40)" }
|
||||||
|
if ([string]::IsNullOrWhiteSpace($deBody)) { throw "V3: DE-Body fehlt in $forgePath" }
|
||||||
|
|
||||||
|
# ---------- EN-Block aus HellionChat.yaml ziehen ----------
|
||||||
|
# 1:1 Pattern aus release.yml — gleicher Header-Marker, gleiches
|
||||||
|
# Trailer-Verhalten. Bei Drift die zwei Workflows synchron halten.
|
||||||
|
$yamlPath = "HellionChat/HellionChat.yaml"
|
||||||
|
$raw = Get-Content -Path $yamlPath -Raw
|
||||||
|
$marker = "changelog: |-"
|
||||||
|
$idx = $raw.IndexOf($marker)
|
||||||
|
if ($idx -lt 0) { throw "V5: changelog-Block nicht gefunden in $yamlPath" }
|
||||||
|
$afterMarker = $raw.Substring($idx + $marker.Length)
|
||||||
|
$changelogBody = (($afterMarker -split "`r?`n") | ForEach-Object {
|
||||||
|
if ($_ -match '^ ') { $_.Substring(2) } else { $_ }
|
||||||
|
}) -join "`n"
|
||||||
|
|
||||||
|
$header = "**Hellion Chat $version"
|
||||||
|
$start = $changelogBody.IndexOf($header)
|
||||||
|
if ($start -lt 0) {
|
||||||
|
throw "V5: No changelog entry for version $version found in $yamlPath. Update the changelog block before tagging."
|
||||||
|
}
|
||||||
|
$rest = $changelogBody.Substring($start)
|
||||||
|
$nextHdr = $rest.IndexOf("`n`n**Hellion Chat ", 1)
|
||||||
|
$trailer = $rest.IndexOf("`n`n---")
|
||||||
|
if ($nextHdr -ge 0 -and ($trailer -lt 0 -or $nextHdr -lt $trailer)) {
|
||||||
|
$enBlock = $rest.Substring(0, $nextHdr).TrimEnd()
|
||||||
|
} elseif ($trailer -ge 0) {
|
||||||
|
$enBlock = $rest.Substring(0, $trailer).TrimEnd()
|
||||||
|
} else {
|
||||||
|
$enBlock = $rest.TrimEnd()
|
||||||
|
}
|
||||||
|
|
||||||
|
# ---------- Char-Cap-Check (5500 Total auf title + description + footer) ----------
|
||||||
|
$title = "Hellion Chat $version — $subtitle"
|
||||||
|
$description = "**Deutsch**`n`n$deBody`n`n**English**`n`n$enBlock"
|
||||||
|
$footerText = "Hellion Forge · $versionsnatur"
|
||||||
|
$totalChars = $title.Length + $description.Length + $footerText.Length
|
||||||
|
if ($totalChars -gt 5500) {
|
||||||
|
throw "V6: Total char count $totalChars exceeds 5500 limit. Major-Release detected — please post manually via Bot/Multi-Embed (see forge style §8). Forge-Auto-Announce stays off for this tag."
|
||||||
|
}
|
||||||
|
Write-Host "Char-Cap OK: $totalChars / 5500"
|
||||||
|
|
||||||
|
# ---------- Embed-Payload bauen ----------
|
||||||
|
$payload = [ordered]@{
|
||||||
|
username = "Forge Herald"
|
||||||
|
avatar_url = "https://raw.githubusercontent.com/JonKazama-Hellion/HellionChat/main/HellionChat/images/icon.png"
|
||||||
|
content = "<@&1500489631555260446>"
|
||||||
|
allowed_mentions = [ordered]@{
|
||||||
|
parse = @()
|
||||||
|
roles = @("1500489631555260446")
|
||||||
|
}
|
||||||
|
embeds = @(
|
||||||
|
[ordered]@{
|
||||||
|
title = $title
|
||||||
|
url = "https://github.com/JonKazama-Hellion/HellionChat/releases/tag/$tag"
|
||||||
|
color = 12730636
|
||||||
|
description = $description
|
||||||
|
footer = [ordered]@{ text = $footerText }
|
||||||
|
timestamp = (Get-Date).ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ss.fffZ")
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
$payloadJson = $payload | ConvertTo-Json -Depth 8 -Compress
|
||||||
|
# Ausgabe-Datei ohne trailing newline für sauberes curl --data-binary @-
|
||||||
|
[System.IO.File]::WriteAllText("$PWD/embed-payload.json", $payloadJson, [System.Text.UTF8Encoding]::new($false))
|
||||||
|
|
||||||
|
Write-Host "Payload size: $($payloadJson.Length) chars"
|
||||||
|
Write-Host "Embed title: $title"
|
||||||
|
Write-Host "Embed footer: $footerText"
|
||||||
|
|
||||||
|
# POST to the Hellion Forge changelog webhook. curl from PowerShell-Core
|
||||||
|
# so we can pipe the payload via stdin (--data-binary @-) and keep
|
||||||
|
# secrets out of process arg lists. One retry on 5xx, hard fail on 4xx.
|
||||||
|
- name: POST to Hellion Forge webhook
|
||||||
|
shell: pwsh
|
||||||
|
env:
|
||||||
|
DISCORD_FORGE_WEBHOOK: ${{ secrets.DISCORD_FORGE_WEBHOOK }}
|
||||||
|
run: |
|
||||||
|
if ([string]::IsNullOrEmpty($env:DISCORD_FORGE_WEBHOOK)) {
|
||||||
|
throw "V7: DISCORD_FORGE_WEBHOOK secret is empty. Check Settings → Environments → Webhook."
|
||||||
|
}
|
||||||
|
|
||||||
|
$payloadFile = "$PWD/embed-payload.json"
|
||||||
|
if (-not (Test-Path $payloadFile)) {
|
||||||
|
throw "Embed payload file missing — previous step did not produce embed-payload.json"
|
||||||
|
}
|
||||||
|
|
||||||
|
$maxAttempts = 2
|
||||||
|
$attempt = 0
|
||||||
|
while ($attempt -lt $maxAttempts) {
|
||||||
|
$attempt++
|
||||||
|
Write-Host "POST attempt $attempt of $maxAttempts"
|
||||||
|
$tmpResp = "$PWD/.webhook-response"
|
||||||
|
$tmpHeaders = "$PWD/.webhook-headers"
|
||||||
|
# --silent suppresses progress; --show-error prints errors so
|
||||||
|
# the workflow log shows what happened. -w prints HTTP status
|
||||||
|
# to stdout for inspection. -o captures body for diagnosis,
|
||||||
|
# -D captures headers.
|
||||||
|
$rawStatus = Get-Content $payloadFile -Raw |
|
||||||
|
curl --silent --show-error `
|
||||||
|
--header 'Content-Type: application/json' `
|
||||||
|
--data-binary '@-' `
|
||||||
|
-D $tmpHeaders `
|
||||||
|
-o $tmpResp `
|
||||||
|
-w '%{http_code}' `
|
||||||
|
"$env:DISCORD_FORGE_WEBHOOK"
|
||||||
|
$status = [int]$rawStatus
|
||||||
|
Write-Host "HTTP status: $status"
|
||||||
|
|
||||||
|
if ($status -ge 200 -and $status -lt 300) {
|
||||||
|
Write-Host "Forge announce POST succeeded."
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
|
||||||
|
$bodySnippet = ""
|
||||||
|
if (Test-Path $tmpResp) {
|
||||||
|
$bodySnippet = (Get-Content $tmpResp -Raw -ErrorAction SilentlyContinue)
|
||||||
|
if ($bodySnippet.Length -gt 500) { $bodySnippet = $bodySnippet.Substring(0, 500) + " …" }
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($status -ge 400 -and $status -lt 500) {
|
||||||
|
# E2: 4xx is permanent — webhook revoked, channel deleted,
|
||||||
|
# payload malformed. No retry.
|
||||||
|
throw "E2: Discord-Webhook returned permanent $status. Body: $bodySnippet"
|
||||||
|
}
|
||||||
|
|
||||||
|
# E1: 5xx (or transport-level fail with status 0) — wait + retry once
|
||||||
|
if ($attempt -lt $maxAttempts) {
|
||||||
|
Write-Host "Transient $status — sleeping 30s before retry."
|
||||||
|
Start-Sleep -Seconds 30
|
||||||
|
} else {
|
||||||
|
throw "E1: Discord-Webhook returned transient $status after $maxAttempts attempts. Body: $bodySnippet"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -8,7 +8,7 @@ name: Release
|
|||||||
# - the tag name (filtered by on.tags = v*, validated again at runtime
|
# - the tag name (filtered by on.tags = v*, validated again at runtime
|
||||||
# against ^v\d+\.\d+\.\d+$ before being used in any string)
|
# against ^v\d+\.\d+\.\d+$ before being used in any string)
|
||||||
# All other values are either repo-controlled (paths under
|
# All other values are either repo-controlled (paths under
|
||||||
# ChatTwo/bin/Release derived from Get-ChildItem) or pinned URLs to
|
# HellionChat/bin/Release derived from Get-ChildItem) or pinned URLs to
|
||||||
# goatcorp / GitHub. Nothing from a webhook event payload (issue/PR
|
# goatcorp / GitHub. Nothing from a webhook event payload (issue/PR
|
||||||
# titles, commit messages, etc.) flows into a run-step.
|
# titles, commit messages, etc.) flows into a run-step.
|
||||||
|
|
||||||
@@ -16,6 +16,16 @@ on:
|
|||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v*'
|
- 'v*'
|
||||||
|
# Manual recovery trigger. Use when a tag was pushed but the auto-run
|
||||||
|
# was missed or failed: `gh workflow run release.yml -f tag=v0.6.1`.
|
||||||
|
# The tag input is validated against the same semver regex as the
|
||||||
|
# auto-trigger before any string interpolation happens.
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
tag:
|
||||||
|
description: 'Existing tag to (re)release, e.g. v0.6.1'
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@@ -27,11 +37,17 @@ jobs:
|
|||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
# On push:tags, github.ref_name is the tag — checkout default works.
|
||||||
|
# On workflow_dispatch, ref defaults to the branch the action was
|
||||||
|
# invoked from; we need to explicitly check out the tag the user
|
||||||
|
# supplied so the build comes from the tagged commit, not main.
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
with:
|
||||||
|
ref: ${{ github.event.inputs.tag || github.ref }}
|
||||||
|
|
||||||
- name: Setup .NET 10
|
- name: Setup .NET 10
|
||||||
uses: actions/setup-dotnet@v4
|
uses: actions/setup-dotnet@v5
|
||||||
with:
|
with:
|
||||||
dotnet-version: 10.0.x
|
dotnet-version: 10.0.x
|
||||||
|
|
||||||
@@ -44,16 +60,16 @@ jobs:
|
|||||||
Expand-Archive -Force -Path dalamud.zip -DestinationPath $hooks
|
Expand-Archive -Force -Path dalamud.zip -DestinationPath $hooks
|
||||||
|
|
||||||
- name: Build (Release)
|
- name: Build (Release)
|
||||||
run: dotnet build ChatTwo/ChatTwo.csproj --configuration Release
|
run: dotnet build HellionChat/HellionChat.csproj --configuration Release
|
||||||
|
|
||||||
- name: Locate latest.zip
|
- name: Locate latest.zip
|
||||||
id: locate
|
id: locate
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
$zip = Get-ChildItem -Path ChatTwo\bin\Release -Recurse -Filter latest.zip | Select-Object -First 1
|
$zip = Get-ChildItem -Path HellionChat\bin\Release -Recurse -Filter latest.zip | Select-Object -First 1
|
||||||
if (-not $zip)
|
if (-not $zip)
|
||||||
{
|
{
|
||||||
throw "latest.zip not found under ChatTwo\bin\Release"
|
throw "latest.zip not found under HellionChat\bin\Release"
|
||||||
}
|
}
|
||||||
Write-Host "Found: $($zip.FullName)"
|
Write-Host "Found: $($zip.FullName)"
|
||||||
"path=$($zip.FullName)" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
|
"path=$($zip.FullName)" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
|
||||||
@@ -71,7 +87,12 @@ jobs:
|
|||||||
- name: Generate release body
|
- name: Generate release body
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
env:
|
env:
|
||||||
TAG_NAME: ${{ github.ref_name }}
|
# workflow_dispatch carries the user-supplied tag in inputs.tag;
|
||||||
|
# push:tags carries it in github.ref_name. Either way the value
|
||||||
|
# is treated as a PowerShell variable (env-var pass), not as
|
||||||
|
# inline shell text, and validated against the semver regex
|
||||||
|
# below before any string interpolation.
|
||||||
|
TAG_NAME: ${{ github.event.inputs.tag || github.ref_name }}
|
||||||
run: |
|
run: |
|
||||||
$tag = $env:TAG_NAME
|
$tag = $env:TAG_NAME
|
||||||
if ($tag -notmatch '^v\d+\.\d+\.\d+$') {
|
if ($tag -notmatch '^v\d+\.\d+\.\d+$') {
|
||||||
@@ -79,7 +100,7 @@ jobs:
|
|||||||
}
|
}
|
||||||
$version = $tag.Substring(1)
|
$version = $tag.Substring(1)
|
||||||
|
|
||||||
$yamlPath = "ChatTwo/HellionChat.yaml"
|
$yamlPath = "HellionChat/HellionChat.yaml"
|
||||||
$raw = Get-Content -Path $yamlPath -Raw
|
$raw = Get-Content -Path $yamlPath -Raw
|
||||||
|
|
||||||
$marker = "changelog: |-"
|
$marker = "changelog: |-"
|
||||||
@@ -112,34 +133,14 @@ jobs:
|
|||||||
$currentBlock = $rest.TrimEnd()
|
$currentBlock = $rest.TrimEnd()
|
||||||
}
|
}
|
||||||
|
|
||||||
$footer = @'
|
# Static install / docs / licence footer is maintained as a
|
||||||
|
# separate file so the workflow YAML stays clean (no embedded
|
||||||
---
|
# heredoc that would have to be indented under the run-block).
|
||||||
|
$footerPath = ".github/release-footer.md"
|
||||||
## How to install
|
if (-not (Test-Path $footerPath)) {
|
||||||
|
throw "Release footer template not found: $footerPath"
|
||||||
This release is distributed via the HellionChat custom repository, not the
|
}
|
||||||
Dalamud main plugin repo. To install:
|
$footer = Get-Content -Path $footerPath -Raw
|
||||||
|
|
||||||
1. In XIVLauncher: **Settings → Experimental → Custom Plugin Repositories**
|
|
||||||
2. Add the URL:
|
|
||||||
`https://raw.githubusercontent.com/JonKazama-Hellion/HellionChat/main/repo.json`
|
|
||||||
3. Enable, save, then `/xlplugins` → search **Hellion Chat** → install
|
|
||||||
|
|
||||||
## Project documents
|
|
||||||
|
|
||||||
- [README](https://github.com/JonKazama-Hellion/HellionChat/blob/main/README.md) — features, architecture, build
|
|
||||||
- [Privacy notice](https://github.com/JonKazama-Hellion/HellionChat/blob/main/PRIVACY.md) — what the plugin stores and sends
|
|
||||||
- [Third-party notices](https://github.com/JonKazama-Hellion/HellionChat/blob/main/THIRD_PARTY_NOTICES.md) — dependencies and licences
|
|
||||||
- [Security policy](https://github.com/JonKazama-Hellion/HellionChat/blob/main/SECURITY.md) — vulnerability reporting
|
|
||||||
- [Support](https://github.com/JonKazama-Hellion/HellionChat/blob/main/SUPPORT.md) — bug reports, questions, contact paths
|
|
||||||
|
|
||||||
## Licence
|
|
||||||
|
|
||||||
[EUPL-1.2](https://github.com/JonKazama-Hellion/HellionChat/blob/main/LICENSE).
|
|
||||||
Based on [Chat 2](https://github.com/Infiziert90/ChatTwo) by Infi and Anna,
|
|
||||||
also EUPL-1.2.
|
|
||||||
'@
|
|
||||||
|
|
||||||
$body = $currentBlock + "`n" + $footer
|
$body = $currentBlock + "`n" + $footer
|
||||||
$body | Out-File -FilePath release-body.md -Encoding utf8 -NoNewline
|
$body | Out-File -FilePath release-body.md -Encoding utf8 -NoNewline
|
||||||
@@ -152,6 +153,11 @@ also EUPL-1.2.
|
|||||||
- name: Attach to GitHub release
|
- name: Attach to GitHub release
|
||||||
uses: softprops/action-gh-release@v3
|
uses: softprops/action-gh-release@v3
|
||||||
with:
|
with:
|
||||||
|
# Explicit tag_name so the action targets the correct release in
|
||||||
|
# both push:tags (auto) and workflow_dispatch (manual recovery)
|
||||||
|
# modes. Without this, dispatch runs would default to the branch
|
||||||
|
# ref (main) and fail to find the release.
|
||||||
|
tag_name: ${{ github.event.inputs.tag || github.ref_name }}
|
||||||
files: ${{ steps.locate.outputs.path }}
|
files: ${{ steps.locate.outputs.path }}
|
||||||
body_path: release-body.md
|
body_path: release-body.md
|
||||||
fail_on_unmatched_files: true
|
fail_on_unmatched_files: true
|
||||||
|
|||||||
@@ -11,6 +11,10 @@
|
|||||||
.vscode/
|
.vscode/
|
||||||
scripts/
|
scripts/
|
||||||
|
|
||||||
|
# Local test project (stays out of the published plugin repo;
|
||||||
|
# pure-function safety net for refactor cycles)
|
||||||
|
HellionChat.Tests/
|
||||||
|
|
||||||
# Packaging
|
# Packaging
|
||||||
pack/
|
pack/
|
||||||
|
|
||||||
|
|||||||
@@ -1,77 +0,0 @@
|
|||||||
# AI assistance disclosure
|
|
||||||
|
|
||||||
This fork uses AI assistance per the [Dalamud Plugin AI Usage Policy](https://github.com/goatcorp/DalamudPluginsD17/)
|
|
||||||
at the **Pair** level.
|
|
||||||
|
|
||||||
A note up front: Hellion Chat is currently in a rebuild and adjustment
|
|
||||||
phase, and there are no plans to submit it to the Dalamud team for review
|
|
||||||
while it stays standalone. If the plugin stays out of the official repo I
|
|
||||||
technically wouldn't need to disclose any of this, but I'd rather be
|
|
||||||
upfront about how it's built.
|
|
||||||
|
|
||||||
Hellion Chat is my entry point into game modding and plugin development. I
|
|
||||||
have never written a plugin for a game before. I work alone, so I get help
|
|
||||||
where I need it. That's not something I want to hide.
|
|
||||||
|
|
||||||
## How I actually work
|
|
||||||
|
|
||||||
I plan the architecture, decide what gets built, and own every design
|
|
||||||
decision. For each change I:
|
|
||||||
|
|
||||||
- Read the code Claude drafts before I integrate it
|
|
||||||
- Test with my own tooling and in the running game
|
|
||||||
- Read the Dalamud log output to verify behaviour
|
|
||||||
- Run security and privacy audits on anything that touches user data
|
|
||||||
|
|
||||||
One of the main reasons I use AI is consistency. I want the Hellion code to
|
|
||||||
match the style of the upstream Chat 2 codebase and stay readable for
|
|
||||||
anyone who opens the repo, not just for me. Claude helps me catch when I'm
|
|
||||||
drifting from upstream conventions or writing something that only makes
|
|
||||||
sense in my own head.
|
|
||||||
|
|
||||||
The balance is shifting toward more hand-written work as I get more
|
|
||||||
comfortable with Dalamud and plugin development in general.
|
|
||||||
|
|
||||||
## What AI is used for
|
|
||||||
|
|
||||||
- API explanations (Dalamud, ImGui, .NET specifics I haven't worked with before)
|
|
||||||
- Code drafts that I read, edit, and integrate
|
|
||||||
- Pattern suggestions and code review
|
|
||||||
- Keeping the style aligned with the upstream Chat 2 codebase
|
|
||||||
|
|
||||||
## What AI isn't used for
|
|
||||||
|
|
||||||
- **Visual assets.** Logos, icons, banners, and screenshots are human-drawn
|
|
||||||
or taken from the running game.
|
|
||||||
- **German translations.** Written by me as a native speaker.
|
|
||||||
|
|
||||||
## What's where
|
|
||||||
|
|
||||||
Upstream Chat 2 (by Infi & Anna, EUPL-1.2) is the foundation and was not
|
|
||||||
produced with AI assistance. Hellion-specific code lives in
|
|
||||||
`ChatTwo/Privacy/`, `ChatTwo/Export/`, `Resources/HellionStrings*`,
|
|
||||||
`Ui/SettingsTabs/Privacy.cs`, `Ui/FirstRunWizard.cs`, `Ui/HellionStyle.cs`,
|
|
||||||
plus the Migrate3 recovery and plugin layout migration in `MessageStore.cs`
|
|
||||||
and `Plugin.cs`. These were developed with Pair-level assistance as
|
|
||||||
described above.
|
|
||||||
|
|
||||||
## If AI-assisted development is a dealbreaker for you
|
|
||||||
|
|
||||||
Fair enough. There are solid alternatives that don't rely on AI in their
|
|
||||||
development:
|
|
||||||
|
|
||||||
- [Chat 2](https://github.com/Infiziert90/ChatTwo), the original upstream
|
|
||||||
this fork is based on
|
|
||||||
- [XIV Instant Messenger](https://github.com/NightmareXIV/XIVInstantMessenger),
|
|
||||||
a different approach to chat in FFXIV
|
|
||||||
|
|
||||||
Both are good projects. Use what fits you best.
|
|
||||||
|
|
||||||
## Tooling
|
|
||||||
|
|
||||||
- Claude (Anthropic) via Claude Code CLI
|
|
||||||
- Context7 / Microsoft Learn for current Dalamud and .NET documentation
|
|
||||||
|
|
||||||
## Contact
|
|
||||||
|
|
||||||
Questions about this disclosure: <https://github.com/JonKazama-Hellion/HellionChat/issues>.
|
|
||||||
+105
-43
@@ -1,48 +1,98 @@
|
|||||||
# Code of conduct
|
# Code of Conduct
|
||||||
|
|
||||||
HellionChat is a small hobby project. The contributor base is tiny and
|
## A Note on This Project
|
||||||
the moderation overhead I can afford is equally small, so this document
|
|
||||||
is short and direct.
|
|
||||||
|
|
||||||
## What I expect from contributors
|
HellionChat is a one-person side project developed under Hellion Forge.
|
||||||
|
I maintain this in my spare time, which means replies can take a few
|
||||||
|
days. Please do not escalate just because a thread is quiet.
|
||||||
|
|
||||||
- Be respectful in issues, pull requests, discussions and any other
|
When in doubt, assume good intent. Contributors come from different
|
||||||
project space (Discord, email).
|
backgrounds, time zones and skill levels. A clarifying question is
|
||||||
- Keep feedback focused on the code, the design or the documentation.
|
almost always a better first move than an accusation.
|
||||||
Critique the work, not the person.
|
|
||||||
- Assume good intent. People come from different backgrounds, time
|
|
||||||
zones and skill levels. A clarifying question is almost always a
|
|
||||||
better first move than an accusation.
|
|
||||||
- Stay on topic. This project is about a Dalamud chat plugin. Off-topic
|
|
||||||
arguments belong elsewhere.
|
|
||||||
- Respect that I maintain this in my spare time. Replies can take a
|
|
||||||
few days. Please do not escalate just because a thread is quiet.
|
|
||||||
|
|
||||||
## What is not welcome
|
Please also keep discussions on topic. This project is about a Dalamud
|
||||||
|
chat plugin. Off-topic arguments belong elsewhere.
|
||||||
|
|
||||||
- Personal attacks, slurs, doxxing, sustained disruption of threads.
|
---
|
||||||
- Unsolicited private contact after I have asked someone to stop.
|
|
||||||
- Sharing of private conversations without consent.
|
|
||||||
- Any content that would put other contributors or end users at risk.
|
|
||||||
|
|
||||||
## Scope
|
## Our Pledge
|
||||||
|
|
||||||
This applies to every space the project owns or that I run on its
|
We pledge to make our community welcoming, safe, and equitable for all.
|
||||||
behalf: the GitHub repository, GitHub Discussions, project-related
|
|
||||||
Discord conversations and the maintainer email address listed in
|
|
||||||
`SECURITY.md`.
|
|
||||||
|
|
||||||
It also applies when someone is identifiably representing the project
|
We are committed to fostering an environment that respects and promotes
|
||||||
in another space, for example posting as a HellionChat maintainer in
|
the dignity, rights, and contributions of all individuals, regardless
|
||||||
the Dalamud Discord.
|
of characteristics including race, ethnicity, caste, color, age,
|
||||||
|
physical characteristics, neurodiversity, disability, sex or gender,
|
||||||
|
gender identity or expression, sexual orientation, language, philosophy
|
||||||
|
or religion, national or social origin, socio-economic position, level
|
||||||
|
of education, or other status. The same privileges of participation are
|
||||||
|
extended to everyone who participates in good faith and in accordance
|
||||||
|
with this Covenant.
|
||||||
|
|
||||||
|
## Encouraged Behaviors
|
||||||
|
|
||||||
|
While acknowledging differences in social norms, we all strive to meet
|
||||||
|
our community's expectations for positive behavior. We also understand
|
||||||
|
that our words and actions may be interpreted differently than we intend
|
||||||
|
based on culture, background, or native language.
|
||||||
|
|
||||||
|
With these considerations in mind, we agree to behave mindfully toward
|
||||||
|
each other and act in ways that center our shared values, including:
|
||||||
|
|
||||||
|
1. Respecting the **purpose of our community**, our activities, and our
|
||||||
|
ways of gathering.
|
||||||
|
2. Engaging **kindly and honestly** with others.
|
||||||
|
3. Respecting **different viewpoints** and experiences.
|
||||||
|
4. **Taking responsibility** for our actions and contributions.
|
||||||
|
5. Gracefully giving and accepting **constructive feedback**.
|
||||||
|
6. Committing to **repairing harm** when it occurs.
|
||||||
|
7. Behaving in other ways that promote and sustain the **well-being of
|
||||||
|
our community**.
|
||||||
|
|
||||||
|
## Restricted Behaviors
|
||||||
|
|
||||||
|
We agree to restrict the following behaviors in our community.
|
||||||
|
Instances, threats, and promotion of these behaviors are violations of
|
||||||
|
this Code of Conduct.
|
||||||
|
|
||||||
|
1. **Harassment.** Violating explicitly expressed boundaries or engaging
|
||||||
|
in unnecessary personal attention after any clear request to stop.
|
||||||
|
2. **Character attacks.** Making insulting, demeaning, or pejorative
|
||||||
|
comments directed at a community member or group of people.
|
||||||
|
3. **Stereotyping or discrimination.** Characterizing anyone's
|
||||||
|
personality or behavior on the basis of immutable identities or
|
||||||
|
traits.
|
||||||
|
4. **Sexualization.** Behaving in a way that would generally be
|
||||||
|
considered inappropriately intimate in the context or purpose of the
|
||||||
|
community.
|
||||||
|
5. **Violating confidentiality.** Sharing or acting on someone's
|
||||||
|
personal or private information without their permission.
|
||||||
|
6. **Endangerment.** Causing, encouraging, or threatening violence or
|
||||||
|
other harm toward any person or group.
|
||||||
|
7. Behaving in other ways that **threaten the well-being** of our
|
||||||
|
community.
|
||||||
|
|
||||||
|
### Other Restrictions
|
||||||
|
|
||||||
|
1. **Misleading identity.** Impersonating someone else for any reason,
|
||||||
|
or pretending to be someone else to evade enforcement actions.
|
||||||
|
2. **Failing to credit sources.** Not properly crediting the sources of
|
||||||
|
content you contribute.
|
||||||
|
3. **Promotional materials.** Sharing marketing or other commercial
|
||||||
|
content in a way that is outside the norms of the community.
|
||||||
|
4. **Irresponsible communication.** Failing to responsibly present
|
||||||
|
content which includes, links to, or describes any other restricted
|
||||||
|
behaviors.
|
||||||
|
|
||||||
## Reporting
|
## Reporting
|
||||||
|
|
||||||
If something here is being broken, contact me directly. Do not open a
|
If something here is being broken, contact me directly. Do not open a
|
||||||
public issue.
|
public issue.
|
||||||
|
|
||||||
- Email: `kontakt@hellion-media.de`
|
| Channel | Address |
|
||||||
- Discord DM: `@j.j_kazama`
|
| ---------- | ------------------------ |
|
||||||
|
| Email | `kontakt@hellion-media.de` |
|
||||||
|
| Discord DM | `@j.j_kazama` |
|
||||||
|
|
||||||
Reports stay private. I will acknowledge within a few weekdays
|
Reports stay private. I will acknowledge within a few weekdays
|
||||||
(European business hours) and tell you what I plan to do.
|
(European business hours) and tell you what I plan to do.
|
||||||
@@ -50,22 +100,34 @@ Reports stay private. I will acknowledge within a few weekdays
|
|||||||
## Enforcement
|
## Enforcement
|
||||||
|
|
||||||
I am the sole maintainer, so enforcement is a single-person process.
|
I am the sole maintainer, so enforcement is a single-person process.
|
||||||
Depending on what happened and how the person responds, I will pick
|
I will pick the lightest measure that actually resolves the situation:
|
||||||
the lightest measure that resolves the issue:
|
|
||||||
|
|
||||||
1. Private note asking the behaviour to stop.
|
1. Private note asking the behaviour to stop.
|
||||||
2. Public correction in the affected thread.
|
2. Public correction in the affected thread.
|
||||||
3. Edit or removal of the offending content.
|
3. Edit or removal of the offending content.
|
||||||
4. Temporary block from the repository or related spaces.
|
4. Private written warning with a cooldown period.
|
||||||
5. Permanent block.
|
5. Temporary block from the repository or related spaces.
|
||||||
|
6. Permanent block.
|
||||||
|
|
||||||
Severe cases skip the lower steps. I will not negotiate over
|
Severe cases skip the lower steps. I will not negotiate over harassment
|
||||||
harassment or threats.
|
or threats.
|
||||||
|
|
||||||
## Acknowledgement
|
## Scope
|
||||||
|
|
||||||
This document is intentionally short and project-specific rather than
|
This Code of Conduct applies to all spaces the project owns or that I
|
||||||
a copy of a longer template. If you need a more formal reference, the
|
run on its behalf: the GitHub repository, GitHub Discussions,
|
||||||
[Contributor Covenant](https://www.contributor-covenant.org/) is a
|
project-related Discord conversations, and the maintainer contact
|
||||||
widely adopted starting point and the spirit of this document is
|
listed in [`SECURITY.md`](SECURITY.md). It also applies when someone
|
||||||
compatible with it.
|
is identifiably representing HellionChat elsewhere, for example when
|
||||||
|
posting as a HellionChat maintainer in the Dalamud Discord.
|
||||||
|
|
||||||
|
## Attribution
|
||||||
|
|
||||||
|
This Code of Conduct is adapted from the Contributor Covenant, version
|
||||||
|
3.0, available at
|
||||||
|
[https://www.contributor-covenant.org/version/3/0/](https://www.contributor-covenant.org/version/3/0/).
|
||||||
|
|
||||||
|
Contributor Covenant is stewarded by the Organization for Ethical
|
||||||
|
Source and licensed under CC BY-SA 4.0. To view a copy of this
|
||||||
|
license, visit
|
||||||
|
[https://creativecommons.org/licenses/by-sa/4.0/](https://creativecommons.org/licenses/by-sa/4.0/).
|
||||||
|
|||||||
+74
-59
@@ -1,47 +1,55 @@
|
|||||||
# Contributing to HellionChat
|
# Contributing to HellionChat
|
||||||
|
|
||||||
Thanks for taking a look. HellionChat is a small, opinionated fork of
|
Thanks for taking a look. HellionChat is a one-person side project
|
||||||
[Chat 2](https://github.com/Infiziert90/ChatTwo) maintained by one
|
developed under Hellion Forge. It started as a fork of
|
||||||
person in spare time. This document explains what I am looking for,
|
[Chat 2](https://github.com/Infiziert90/ChatTwo) and has since become
|
||||||
what I am not, and how to make a contribution land smoothly.
|
a standalone plugin under its own namespace, IPC channels and
|
||||||
|
source tree (standalone-cut completed in v1.0.0). Forking HellionChat
|
||||||
|
itself is explicitly permitted under the EUPL-1.2.
|
||||||
|
|
||||||
## Before you open anything
|
This document explains what I am looking for, what I am not, and how
|
||||||
|
to make a contribution land smoothly.
|
||||||
|
|
||||||
- Read the [README](README.md) so you understand the scope: this is a
|
## Before You Open Anything
|
||||||
|
|
||||||
|
- Read the [README](README.md) so you understand the scope: a
|
||||||
privacy-focused, EUPL-1.2-licensed Dalamud plugin that intentionally
|
privacy-focused, EUPL-1.2-licensed Dalamud plugin that intentionally
|
||||||
removes the upstream webinterface and ships smaller defaults.
|
removes the upstream webinterface and ships privacy-first defaults.
|
||||||
- Read [UPSTREAM_SYNC.md](UPSTREAM_SYNC.md). Cherry-picks from upstream
|
- Read [`docs/UPSTREAM_SYNC.md`](docs/UPSTREAM_SYNC.md). Cherry-picks
|
||||||
Chat 2 are selective and conscious; not everything that lands there
|
from upstream Chat 2 are selective and deliberate; not everything
|
||||||
belongs here.
|
that lands there belongs here.
|
||||||
- Read [SECURITY.md](SECURITY.md). Anything security-sensitive goes
|
- Read [`SECURITY.md`](SECURITY.md). Anything security-sensitive goes
|
||||||
through a private advisory, never a public issue or PR.
|
through a private advisory, never a public issue or PR.
|
||||||
- Read the [code of conduct](CODE_OF_CONDUCT.md).
|
- Read the [Code of Conduct](CODE_OF_CONDUCT.md).
|
||||||
|
|
||||||
## What I will accept
|
## What I Will Accept
|
||||||
|
|
||||||
- Bug fixes for behaviour documented in the README, the in-plugin
|
- Bug fixes for behaviour documented in the README, the in-plugin
|
||||||
settings or the changelog.
|
settings or the changelog.
|
||||||
- Translation contributions for Hellion-specific strings via direct
|
- Translation contributions for Hellion-specific strings via direct
|
||||||
pull requests against `ChatTwo/Resources/HellionStrings.*.resx`.
|
pull requests against
|
||||||
Translations for the upstream Chat 2 strings (`Language.*.resx`) are
|
`HellionChat/Resources/HellionStrings.*.resx`. Translations for
|
||||||
not handled here; they go through the upstream Chat 2 project.
|
upstream Chat 2 strings (`Language.*.resx`) are not handled here;
|
||||||
|
those go to the upstream Chat 2 project.
|
||||||
- Documentation improvements (README, comments, this file).
|
- Documentation improvements (README, comments, this file).
|
||||||
- Performance fixes with a measurable before/after.
|
- Performance fixes with a measurable before/after.
|
||||||
- New features that fit the privacy-first scope and do not duplicate
|
- New features that fit the privacy-first scope and do not duplicate
|
||||||
what an existing Dalamud plugin already does well.
|
what an existing Dalamud plugin already does well.
|
||||||
|
|
||||||
## What I will probably decline
|
## What I Will Probably Decline
|
||||||
|
|
||||||
- Re-introducing the webinterface or any remote-access feature. It was
|
- Re-introducing the webinterface or any remote-access feature. It was
|
||||||
removed in v0.2.0 on purpose. See README "Was gegenüber Chat 2 fehlt".
|
removed in v0.2.0 on purpose. See the README section
|
||||||
|
"Was gegenüber Chat 2 fehlt".
|
||||||
- Features that bypass the privacy filter or weaken the default
|
- Features that bypass the privacy filter or weaken the default
|
||||||
retention behaviour without an explicit, documented opt-in.
|
retention behaviour without an explicit, documented opt-in.
|
||||||
- Sweeping refactors that touch large parts of the upstream codebase.
|
- Sweeping refactors that touch large parts of the codebase. They make
|
||||||
They make selective upstream cherry-picks much harder and the
|
selective upstream cherry-picks much harder and the maintenance cost
|
||||||
maintenance cost outweighs the benefit for a one-person project.
|
outweighs the benefit for a one-person project.
|
||||||
- AI-generated code dropped in without disclosure or human review. See
|
- AI-generated code dropped in without disclosure or human review. See
|
||||||
[AI_DISCLOSURE.md](AI_DISCLOSURE.md) for how I handle AI assistance
|
[`docs/AI_DISCLOSURE.md`](docs/AI_DISCLOSURE.md) for how I handle
|
||||||
on my side; I expect comparable transparency from contributors.
|
AI assistance on my side; I expect comparable transparency from
|
||||||
|
contributors.
|
||||||
|
|
||||||
If you are unsure whether an idea fits, open a feature-request issue
|
If you are unsure whether an idea fits, open a feature-request issue
|
||||||
first and ask before writing code. I would rather say "no" to a
|
first and ask before writing code. I would rather say "no" to a
|
||||||
@@ -50,57 +58,69 @@ proposal than to a finished pull request.
|
|||||||
## Workflow
|
## Workflow
|
||||||
|
|
||||||
1. Open an issue (bug or feature request) using the templates under
|
1. Open an issue (bug or feature request) using the templates under
|
||||||
`.github/ISSUE_TEMPLATE/`. Skip this step only for trivial typos.
|
`.github/ISSUE_TEMPLATE/`. Skip this for trivial typos.
|
||||||
2. Fork the repository and branch off `main`. Branch naming is
|
2. Fork the repository and branch off `main`. Branch naming is
|
||||||
informal; something like `fix/auto-tell-history-empty` or
|
informal; something like `fix/auto-tell-history-empty` or
|
||||||
`feat/adblock-light-mode` is plenty.
|
`feat/theme-export` is fine.
|
||||||
3. Match the existing code style. The repository ships an
|
3. Match the existing code style. The repository ships an
|
||||||
`.editorconfig` that VS Code and Rider pick up automatically.
|
`.editorconfig` that VS Code and Rider pick up automatically.
|
||||||
4. Keep commits focused. Several small commits with clear messages are
|
4. Keep commits focused. Several small commits with clear messages are
|
||||||
easier to review than one big one. Squash-on-merge happens at the
|
easier to review than one large one. Squash-on-merge happens at
|
||||||
PR level if needed.
|
the PR level if needed.
|
||||||
5. If your change touches user-visible behaviour, update the README
|
5. If your change touches user-visible behaviour, update the README
|
||||||
and/or the changelog block in `ChatTwo/HellionChat.yaml` and
|
and/or the changelog block in `HellionChat/HellionChat.yaml` and
|
||||||
`repo.json` for the next version. I bump the version number myself
|
`repo.json`. I bump the version number myself at release time.
|
||||||
at release time, so you do not need to.
|
|
||||||
6. Open the pull request against `main`. The PR template will ask
|
6. Open the pull request against `main`. The PR template will ask
|
||||||
you to summarise the change, the testing you did and any
|
you to summarise the change, the testing you did and any
|
||||||
compatibility notes.
|
compatibility notes.
|
||||||
|
|
||||||
## Build and test
|
## Build and Test
|
||||||
|
|
||||||
The project targets `net10.0-windows` against Dalamud SDK 15. To build
|
The project targets `net10.0-windows` against Dalamud SDK 15. To build
|
||||||
locally you need:
|
locally you need:
|
||||||
|
|
||||||
- .NET 10 SDK
|
- .NET 10 SDK
|
||||||
- A working Dalamud development environment with `DALAMUD_HOME` set
|
- A working Dalamud dev environment with `DALAMUD_HOME` set
|
||||||
(XIVLauncher installed and launched once is the simplest path)
|
(XIVLauncher installed and launched once is the simplest path)
|
||||||
- VS Code with the C# Dev Kit, Rider, or Visual Studio
|
- VS Code with the C# Dev Kit, Rider, or Visual Studio
|
||||||
|
|
||||||
```
|
```bash
|
||||||
dotnet restore
|
dotnet restore
|
||||||
dotnet build ChatTwo.sln -c Release
|
dotnet build HellionChat.sln -c Release
|
||||||
dotnet test ChatTwo.sln -c Release
|
|
||||||
```
|
```
|
||||||
|
|
||||||
The test project is `ChatTwo.Tests`. New behaviour should come with a
|
There are currently no tests in `HellionChat.sln`. If you add a test
|
||||||
test where the existing test infrastructure makes that practical
|
project, point it at the relevant subsystems (privacy filter,
|
||||||
(privacy filter, configuration migration, message store).
|
configuration migration, message store) and mention it in the PR.
|
||||||
|
|
||||||
For a smoke test in-game: build, copy the output into your Dalamud
|
For a smoke test in-game: build, copy the output into your Dalamud
|
||||||
`devPlugins/HellionChat/` directory and load it through `/xlplugins`.
|
`devPlugins/HellionChat/` directory and load it via `/xlplugins`.
|
||||||
|
|
||||||
## Continuous integration
|
## Continuous Integration
|
||||||
|
|
||||||
Every push and every pull request runs:
|
Every push and every pull request runs:
|
||||||
|
|
||||||
- `build.yml` — `dotnet build` and `dotnet test`
|
| Workflow | What it checks |
|
||||||
- `codeql.yml` — CodeQL security analysis
|
| ------------- | ------------------------------------- |
|
||||||
|
| `build.yml` | `dotnet build` and `dotnet test` |
|
||||||
|
| `codeql.yml` | CodeQL security analysis |
|
||||||
|
|
||||||
A pull request will not be merged while either of these is failing.
|
A pull request will not be merged while either of these is failing.
|
||||||
CodeQL findings on changed code need to be addressed; pre-existing
|
CodeQL findings on changed code need to be addressed; pre-existing
|
||||||
findings on untouched code are tracked separately.
|
findings on untouched code are tracked separately.
|
||||||
|
|
||||||
|
## Translations
|
||||||
|
|
||||||
|
Hellion-specific strings live in
|
||||||
|
`HellionChat/Resources/HellionStrings.resx` (English source) and
|
||||||
|
`HellionStrings.<lang>.resx` (per-language). These are accepted as
|
||||||
|
direct pull requests.
|
||||||
|
|
||||||
|
The upstream Chat 2 strings in `HellionChat/Resources/Language.*.resx`
|
||||||
|
are **not** translated here. They are owned by the upstream project
|
||||||
|
and synced in via cherry-pick. Please contribute those to
|
||||||
|
[Infiziert90/ChatTwo](https://github.com/Infiziert90/ChatTwo) instead.
|
||||||
|
|
||||||
## Licensing
|
## Licensing
|
||||||
|
|
||||||
By submitting a pull request you confirm that:
|
By submitting a pull request you confirm that:
|
||||||
@@ -110,23 +130,18 @@ By submitting a pull request you confirm that:
|
|||||||
- You agree that your contribution will be released under the
|
- You agree that your contribution will be released under the
|
||||||
[EUPL-1.2](LICENSE), the same licence as the rest of the project.
|
[EUPL-1.2](LICENSE), the same licence as the rest of the project.
|
||||||
|
|
||||||
There is no separate CLA.
|
There is no separate CLA. Forking HellionChat is explicitly permitted
|
||||||
|
under the EUPL-1.2, as with any EUPL-licensed project.
|
||||||
|
|
||||||
## Translations
|
## Response Times
|
||||||
|
|
||||||
Hellion-specific strings live in `ChatTwo/Resources/HellionStrings.resx`
|
| Channel | Address |
|
||||||
(English source) and `HellionStrings.<lang>.resx` (per-language).
|
| ------------- | -------------------------- |
|
||||||
Translations are accepted as direct pull requests against those files.
|
| GitHub Issues | Preferred for bugs and feature requests |
|
||||||
|
| Discord DM | `@j.j_kazama` |
|
||||||
|
| Email | `kontakt@hellion-media.de` |
|
||||||
|
|
||||||
The upstream Chat 2 strings in `ChatTwo/Resources/Language.*.resx` are
|
I respond on weekdays during European business hours and take weekends
|
||||||
**not** translated in this repository. They are owned by the upstream
|
and FFXIV patch days off. A pull request that sits for a few days has
|
||||||
Chat 2 project and synced in via cherry-pick. Please contribute
|
not been ignored. Pinging once after a week is fine; please do not
|
||||||
upstream-string translations to
|
ping daily.
|
||||||
[Infiziert90/ChatTwo](https://github.com/Infiziert90/ChatTwo) instead.
|
|
||||||
|
|
||||||
## A note on response times
|
|
||||||
|
|
||||||
I respond on weekdays during European business hours and I take
|
|
||||||
weekends and FFXIV patch days off. A pull request that sits for a few
|
|
||||||
days has not been ignored; I just have not gotten to it yet. Pinging
|
|
||||||
once after a week is fine; please do not ping daily.
|
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
HellionChat — a privacy-focused fork of ChatTwo for FINAL FANTASY XIV
|
HellionChat — a privacy-focused fork of ChatTwo for FINAL FANTASY XIV
|
||||||
|
|
||||||
Copyright (c) 2024-2025 Infiziert90 (Infi) and Anna Clemens (ascclemens)
|
═══════════════════════════════════════════════════════════════════
|
||||||
|
Source code
|
||||||
|
═══════════════════════════════════════════════════════════════════
|
||||||
|
|
||||||
|
Copyright (c) 2022-2026 Infiziert90 (Infi) and Anna Clemens (ascclemens)
|
||||||
Original ChatTwo authors and copyright holders of the upstream
|
Original ChatTwo authors and copyright holders of the upstream
|
||||||
plugin this fork is built on. Their work covers the message store,
|
plugin this fork is built on. Their work covers the message store,
|
||||||
the channel filtering, the sidebar tab system, the FFXIV chat
|
the channel filtering, the sidebar tab system, the FFXIV chat
|
||||||
@@ -10,18 +14,38 @@ Copyright (c) 2024-2025 Infiziert90 (Infi) and Anna Clemens (ascclemens)
|
|||||||
Copyright (c) 2025-2026 Florian Wathling / Hellion Online Media
|
Copyright (c) 2025-2026 Florian Wathling / Hellion Online Media
|
||||||
HellionChat-specific modifications, including the privacy filter,
|
HellionChat-specific modifications, including the privacy filter,
|
||||||
per-channel retention sweep, export pipeline, Auto-Tell-Tabs,
|
per-channel retention sweep, export pipeline, Auto-Tell-Tabs,
|
||||||
Hellion theme and font integration, German localisation and the
|
German localisation and the EUPL-1.2 fork maintenance.
|
||||||
EUPL-1.2 fork maintenance.
|
|
||||||
|
|
||||||
Licensed under the European Union Public Licence (EUPL), Version 1.2
|
Source code is licensed under the European Union Public Licence
|
||||||
only. The full Licence text lives in the LICENSE file at the root of
|
(EUPL), Version 1.2 only. The full Licence text lives in the LICENSE
|
||||||
this repository. The official Licence website is at:
|
file at the root of this repository. The official Licence website is
|
||||||
|
at: https://eupl.eu/1.2/en/
|
||||||
https://eupl.eu/1.2/en/
|
|
||||||
|
|
||||||
This Work is provided "AS IS" without warranties of any kind. See
|
This Work is provided "AS IS" without warranties of any kind. See
|
||||||
Article 7 (Disclaimer of Warranty) and Article 8 (Disclaimer of
|
Article 7 (Disclaimer of Warranty) and Article 8 (Disclaimer of
|
||||||
Liability) of the Licence for the legally binding wording.
|
Liability) of the Licence for the legally binding wording.
|
||||||
|
|
||||||
|
═══════════════════════════════════════════════════════════════════
|
||||||
|
Visual assets
|
||||||
|
═══════════════════════════════════════════════════════════════════
|
||||||
|
Copyright (c) 2026 Florian Eck
|
||||||
|
|
||||||
|
Designer of the Hellion Forge logo and Hellion Online Media logo
|
||||||
|
(variants located in docs/images and HellionChat/images).
|
||||||
|
Exclusive usage and marketing rights licensed to Hellion Online
|
||||||
|
Media. These assets are NOT covered by the EUPL-1.2 source code
|
||||||
|
licence above and may not be reused, modified, or redistributed
|
||||||
|
without separate permission from the copyright holder.
|
||||||
|
|
||||||
|
═══════════════════════════════════════════════════════════════════
|
||||||
|
Bundled assets
|
||||||
|
═══════════════════════════════════════════════════════════════════
|
||||||
|
|
||||||
|
Exo 2 font (HellionChat/Resources/HellionFont.ttf)
|
||||||
|
SIL Open Font License 1.1, full text in HellionFont-OFL.txt.
|
||||||
|
Bundled with permission per the OFL terms.
|
||||||
|
|
||||||
|
═══════════════════════════════════════════════════════════════════
|
||||||
|
|
||||||
Acknowledgements directed at the upstream ChatTwo authors live in
|
Acknowledgements directed at the upstream ChatTwo authors live in
|
||||||
NOTICE.md. The manual upstream-sync workflow lives in UPSTREAM_SYNC.md.
|
NOTICE.md. The manual upstream-sync workflow lives in UPSTREAM_SYNC.md.
|
||||||
|
|||||||
-22
@@ -1,22 +0,0 @@
|
|||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ChatTwo", "ChatTwo\ChatTwo.csproj", "{739F75E6-B65F-41EF-9D90-F7BC519E4875}"
|
|
||||||
EndProject
|
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ChatTwo.Tests", "ChatTwo.Tests\ChatTwo.Tests.csproj", "{A9FE423A-240C-4EDA-ACC6-21474B562128}"
|
|
||||||
EndProject
|
|
||||||
Global
|
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
|
||||||
Debug|Any CPU = Debug|Any CPU
|
|
||||||
Release|Any CPU = Release|Any CPU
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
|
||||||
{739F75E6-B65F-41EF-9D90-F7BC519E4875}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{739F75E6-B65F-41EF-9D90-F7BC519E4875}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{739F75E6-B65F-41EF-9D90-F7BC519E4875}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{739F75E6-B65F-41EF-9D90-F7BC519E4875}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{A9FE423A-240C-4EDA-ACC6-21474B562128}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{A9FE423A-240C-4EDA-ACC6-21474B562128}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{A9FE423A-240C-4EDA-ACC6-21474B562128}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{A9FE423A-240C-4EDA-ACC6-21474B562128}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
EndGlobalSection
|
|
||||||
EndGlobal
|
|
||||||
@@ -1,139 +0,0 @@
|
|||||||
name: Hellion Chat
|
|
||||||
author: JonKazama-Hellion
|
|
||||||
punchline: Chat 2 with privacy controls aligned to EU, US and JP rules
|
|
||||||
description: |-
|
|
||||||
Hellion Chat is built on top of Chat 2 with one removal and a stack
|
|
||||||
of privacy controls on top. Tabs, channel filters, RGB colours,
|
|
||||||
emotes, screenshot mode, IPC integration and the chat replacement
|
|
||||||
window itself work the same. The optional webinterface that Chat 2
|
|
||||||
ships is intentionally not part of this fork because it serves a
|
|
||||||
different use case from the smaller default footprint Hellion Chat
|
|
||||||
is built around.
|
|
||||||
|
|
||||||
On top of that, Hellion Chat adds privacy and data-handling controls
|
|
||||||
designed to align with the modern data protection rules that apply
|
|
||||||
across the EU, the United States and Japan. By default only your own
|
|
||||||
conversations are stored; messages from strangers, NPCs and system
|
|
||||||
spam stay out of the database. Retention windows are configurable per
|
|
||||||
channel, history can be wiped retroactively, and stored data can be
|
|
||||||
exported on demand.
|
|
||||||
|
|
||||||
Key additions on top of Chat 2:
|
|
||||||
|
|
||||||
- Channel whitelist with a Privacy-First default
|
|
||||||
- Per-channel retention with a daily background sweep
|
|
||||||
- Retroactive cleanup with a Ctrl+Shift confirm
|
|
||||||
- Export to Markdown, JSON or CSV
|
|
||||||
- First-run wizard with three preset profiles (Privacy-First, Casual,
|
|
||||||
Full History)
|
|
||||||
- Bilingual UI (English and German) with live language switching
|
|
||||||
- Independent plugin state — own config file and database directory,
|
|
||||||
so Hellion Chat does not share state with the upstream plugin
|
|
||||||
|
|
||||||
Based on Chat 2 by Infi and Anna, licensed under EUPL-1.2.
|
|
||||||
repo_url: https://github.com/JonKazama-Hellion/HellionChat
|
|
||||||
accepts_feedback: true
|
|
||||||
icon_url: https://raw.githubusercontent.com/JonKazama-Hellion/HellionChat/main/ChatTwo/images/icon.png
|
|
||||||
image_urls:
|
|
||||||
- https://raw.githubusercontent.com/JonKazama-Hellion/HellionChat/main/ChatTwo/images/chatWindow.png
|
|
||||||
- https://raw.githubusercontent.com/JonKazama-Hellion/HellionChat/main/ChatTwo/images/withSimpleTweaks.png
|
|
||||||
tags:
|
|
||||||
- Social
|
|
||||||
- UI
|
|
||||||
- Chat
|
|
||||||
- Replacement
|
|
||||||
- Privacy
|
|
||||||
changelog: |-
|
|
||||||
**Hellion Chat 0.6.0 — UX Polish: Pop-Out Input + Colour Presets**
|
|
||||||
|
|
||||||
Two opt-in UX features land in the same release. Existing users see
|
|
||||||
no change unless they enable the new toggles.
|
|
||||||
|
|
||||||
Pop-out input bar:
|
|
||||||
|
|
||||||
- New global master switch in Settings → Window → Frame: "Enable input
|
|
||||||
in pop-outs". Default OFF so existing behaviour is preserved
|
|
||||||
- When enabled, every pop-out window grows a compact input bar at the
|
|
||||||
bottom (channel-coloured icon button left, text input right). The
|
|
||||||
auto-translate picker is intentionally not part of the compact bar
|
|
||||||
in v0.6.0 — typical pop-out workflows (FC greeter, club hostess)
|
|
||||||
rarely need it there
|
|
||||||
- Each pop-out keeps an independent text buffer and history cursor;
|
|
||||||
channel changes still apply globally because that is how the FFXIV
|
|
||||||
channel API works
|
|
||||||
- Up/Down navigates a shared input history singleton across the main
|
|
||||||
window and every open pop-out
|
|
||||||
- First pop-out opening after the upgrade shows a one-time hint
|
|
||||||
banner pointing users to the new toggle
|
|
||||||
|
|
||||||
Chat colour presets:
|
|
||||||
|
|
||||||
- Seven built-in presets above the per-channel colour list in
|
|
||||||
Settings → Appearance → Colours: ChatTwo Default, High-Contrast,
|
|
||||||
Pastell, Dark-Mode-Tuned, Hellion (brand-coloured, blue/orange
|
|
||||||
Arctic Cyan + Ember Glow palette from the Hellion Online Media
|
|
||||||
branding spec), plus two bonus mood presets — Night Blue (royal
|
|
||||||
blue, classic-cool) and Indigo Violet (royal violet, glitter-mystic)
|
|
||||||
- Apply is immediate and overwrites the channels covered by the
|
|
||||||
preset; battle-channel colours are left alone so combat tuning
|
|
||||||
stays intact
|
|
||||||
|
|
||||||
Configuration migrates from v10 to v11 with a diagnostic log entry;
|
|
||||||
no data is reset. Bilingual (English/German) for both new sections.
|
|
||||||
|
|
||||||
Based on Chat 2 1.35.3 (upstream Infiziert90/ChatTwo, EUPL-1.2).
|
|
||||||
|
|
||||||
**Hellion Chat 0.5.4 — WrapText hardening**
|
|
||||||
|
|
||||||
Replaces the unsafe pointer-arithmetic in ImGuiUtil.WrapText with
|
|
||||||
Span- and index-based control flow. Closes the persistent CodeQL
|
|
||||||
Critical alert "unvalidated local pointer arithmetic" that kept
|
|
||||||
re-firing on every shape of the previous fix.
|
|
||||||
|
|
||||||
Hardening:
|
|
||||||
|
|
||||||
- WrapText now allocates a buffer sized by Encoding.UTF8.GetMaxByteCount
|
|
||||||
via ArrayPool, validates the actual encoded length against that
|
|
||||||
ceiling, and threads the rest of the algorithm through int offsets
|
|
||||||
instead of raw byte pointers
|
|
||||||
- Pointer arithmetic only happens inside two small private helpers
|
|
||||||
(CalcWordWrap and DrawText) that take the pinned base pointer plus
|
|
||||||
int offsets sourced from the plugin's own logic, not from any
|
|
||||||
virtual-method return
|
|
||||||
- Added a 16 KiB upper bound on the buffer rent to prevent a
|
|
||||||
pathological input from triggering an unbounded ArrayPool allocation
|
|
||||||
|
|
||||||
No user-visible behaviour change. Word-wrap output is byte-identical
|
|
||||||
to v0.5.3.
|
|
||||||
|
|
||||||
Based on Chat 2 1.35.3 (upstream Infiziert90/ChatTwo, EUPL-1.2).
|
|
||||||
|
|
||||||
**Hellion Chat 0.5.3 — Pointer arithmetic hardening**
|
|
||||||
|
|
||||||
Closed CodeQL Critical alert in ImGuiUtil.WrapText by validating the
|
|
||||||
encoded byte buffer length via GetByteCount before pointer
|
|
||||||
arithmetic. Single-fix patch on top of v0.5.2.
|
|
||||||
|
|
||||||
**Hellion Chat 0.5.2 — Bugfix patch**
|
|
||||||
|
|
||||||
Auto-Tell-Tabs history-separator landed below the live tell instead
|
|
||||||
of above (preload now excludes the trigger message). Plugin icon
|
|
||||||
packaging fixed by removing a stale DalamudPackager.targets override
|
|
||||||
that conflicted with the SDK 15 default. Default config aligned to
|
|
||||||
the maintainer's daily driver: HellionThemeWindowOpacity 0.5,
|
|
||||||
Use24HourClock true, Gruppe tab no longer auto-routes /party. Two
|
|
||||||
earlier CodeQL findings closed (workflow permissions, empty-input
|
|
||||||
pointer arithmetic).
|
|
||||||
|
|
||||||
**Hellion Chat 0.5.1 — Backlog Sweep**
|
|
||||||
|
|
||||||
Pure hardening and polish. Eight backlog items from the v0.5.0
|
|
||||||
codebase review collected into one patch: cleanup-preview-stale
|
|
||||||
detection, greeted-tab dim background, Performance HelpMarker
|
|
||||||
consistency, Tabs/Database tab names from HellionStrings,
|
|
||||||
FontChooser framework-thread marshalling, async-void on
|
|
||||||
EmoteCache.LoadData, parameterised SQL via BindIntList helper.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
Earlier history at https://github.com/JonKazama-Hellion/HellionChat/releases.
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("ChatTwo.Tests")]
|
|
||||||
@@ -1,230 +0,0 @@
|
|||||||
using ChatTwo.Util;
|
|
||||||
using Dalamud.Bindings.ImGui;
|
|
||||||
using Dalamud.Interface.Utility.Raii;
|
|
||||||
|
|
||||||
namespace ChatTwo.Ui;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// ImGui style override for Hellion Chat. Industrial HUD palette with three
|
|
||||||
/// distinct accents — cyan-teal as the primary action color, industrial
|
|
||||||
/// amber for active state highlights, slate-violet for title bars and
|
|
||||||
/// active tabs — on a deep-slate frame background with steel borders.
|
|
||||||
///
|
|
||||||
/// Two entry points:
|
|
||||||
/// Push — local color stack, scoped via using-block. Use inside
|
|
||||||
/// Hellion-only surfaces (Privacy tab, first-run wizard).
|
|
||||||
/// PushGlobal — full color + style variable stack. Pushed once per frame
|
|
||||||
/// in Plugin.Draw so every Hellion-rendered window inherits
|
|
||||||
/// the look. Cheap to pop because ImGui keeps its own stack.
|
|
||||||
/// </summary>
|
|
||||||
internal static class HellionStyle
|
|
||||||
{
|
|
||||||
// Encoded as 0xRRGGBBAA, matching ChatTwo convention (see Settings.cs
|
|
||||||
// Ko-fi buttons). RgbaToAbgr handles the byte swap to the format ImGui
|
|
||||||
// expects. Hex values are sourced from the Hellion Online Media brand
|
|
||||||
// guide ("Arctic Cyan + Ember Glow", BRANDING.md in the website repo).
|
|
||||||
|
|
||||||
// Primary — Arctic Cyan, used for every interactive control (buttons,
|
|
||||||
// checks, sliders, separators when hovered). Three brand stages plus a
|
|
||||||
// hover that lifts to brand-color-light and a press that drops to
|
|
||||||
// brand-color-dark.
|
|
||||||
private const uint PrimaryRgba = 0x00BED2FF; // brand-color
|
|
||||||
private const uint PrimaryHoverRgba = 0x4DD9E8FF; // brand-color-light
|
|
||||||
private const uint PrimaryActiveRgba = 0x0097A7FF; // brand-color-dark
|
|
||||||
|
|
||||||
// Identity — brand-color-dark teal for window title bars and the
|
|
||||||
// active tab. Sits visibly below the primary cyan on buttons so the
|
|
||||||
// user sees "where am I" (deep teal) versus "what can I click"
|
|
||||||
// (brand cyan) without leaving the cyan family.
|
|
||||||
private const uint IdentityRgba = 0x0097A7FF; // brand-color-dark
|
|
||||||
private const uint IdentityHoverRgba = 0x4DD9E8FF; // brand-color-light
|
|
||||||
private const uint IdentityDeepRgba = 0x005670FF; // dimmer teal for unfocused-active tab
|
|
||||||
|
|
||||||
// Accent — Ember Orange for warm highlights on grips and scrollbar
|
|
||||||
// pulls. Replaces the previous industrial amber so the plugin matches
|
|
||||||
// the website's CTA palette. AccentActive is reserved for any future
|
|
||||||
// pressed-state on accent surfaces; the current slots only need
|
|
||||||
// AccentRgba and AccentHoverRgba.
|
|
||||||
private const uint AccentRgba = 0xF97316FF; // accent-color
|
|
||||||
private const uint AccentHoverRgba = 0xFB923CFF; // accent-color-light
|
|
||||||
|
|
||||||
// Surfaces — Hellion brand background ladder. Window darkest, frame
|
|
||||||
// hover ladder climbs into surface tones. Matches the website's
|
|
||||||
// background / background-medium / background-light / surface vars.
|
|
||||||
private const uint WindowBgRgba = 0x070B12FF; // background
|
|
||||||
private const uint ChildBgRgba = 0x0C1220FF; // background-medium
|
|
||||||
private const uint PopupBgRgba = 0x0C1220FF; // background-medium
|
|
||||||
private const uint FrameBgRgba = 0x141E30FF; // background-light
|
|
||||||
private const uint FrameBgHoverRgba = 0x1A2538FF; // surface
|
|
||||||
private const uint FrameBgActiveRgba = 0x22303FFF; // surface-hover
|
|
||||||
// Cyan-tinted border — matches website --border-brand (cyan @ 40% α).
|
|
||||||
private const uint BorderRgba = 0x00BED266;
|
|
||||||
private const uint BorderShadowRgba = 0x00000000;
|
|
||||||
|
|
||||||
// Headers / collapsing-headers / tree nodes / selectables — same
|
|
||||||
// surface ladder as frames so panels feel consistent.
|
|
||||||
private const uint HeaderRgba = 0x141E30FF;
|
|
||||||
private const uint HeaderHoverRgba = 0x1A2538FF;
|
|
||||||
private const uint HeaderActiveRgba = 0x22303FFF;
|
|
||||||
|
|
||||||
// Title bars — Identity teal on active so the focused window reads
|
|
||||||
// as "yours" without using accent or primary slots.
|
|
||||||
private const uint TitleBgRgba = 0x070B12FF;
|
|
||||||
private const uint TitleBgActiveRgba = IdentityRgba;
|
|
||||||
private const uint TitleBgCollapsedRgba = 0x05080EFF;
|
|
||||||
|
|
||||||
// Tabs — neutral inactive, Identity-light on hover, Identity teal on
|
|
||||||
// active. Unfocused-active uses the deeper Identity stage so an
|
|
||||||
// unfocused window's active tab still reads but does not pull focus.
|
|
||||||
private const uint TabRgba = 0x141E30FF;
|
|
||||||
private const uint TabHoveredRgba = IdentityHoverRgba;
|
|
||||||
private const uint TabActiveRgba = IdentityRgba;
|
|
||||||
private const uint TabUnfocusedRgba = 0x0C1220FF;
|
|
||||||
private const uint TabUnfocusedActiveRgba = IdentityDeepRgba;
|
|
||||||
|
|
||||||
// Scrollbar — Ember on grab so the pull stands out without competing
|
|
||||||
// with the cyan action buttons. Idle grab is a subtle surface tone,
|
|
||||||
// hover/active climb into accent.
|
|
||||||
private const uint ScrollbarBgRgba = 0x070B12FF;
|
|
||||||
private const uint ScrollbarGrabRgba = 0x22303FFF; // surface-hover
|
|
||||||
private const uint ScrollbarGrabHoveredRgba = AccentHoverRgba;
|
|
||||||
private const uint ScrollbarGrabActiveRgba = AccentRgba;
|
|
||||||
|
|
||||||
// Resize grip — same Ember treatment as the scrollbar.
|
|
||||||
private const uint ResizeGripRgba = 0x141E30FF;
|
|
||||||
private const uint ResizeGripHoveredRgba = AccentHoverRgba;
|
|
||||||
private const uint ResizeGripActiveRgba = AccentRgba;
|
|
||||||
|
|
||||||
// Separator and check mark / slider follow the primary cyan.
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Local color stack for Hellion-only surfaces. Cheap. Use inside a
|
|
||||||
/// `using var _ = HellionStyle.Push();` block.
|
|
||||||
/// </summary>
|
|
||||||
internal static IDisposable Push()
|
|
||||||
{
|
|
||||||
var stack = new StackHandle();
|
|
||||||
stack.PushColor(ImGuiCol.Button, PrimaryRgba);
|
|
||||||
stack.PushColor(ImGuiCol.ButtonHovered, PrimaryHoverRgba);
|
|
||||||
stack.PushColor(ImGuiCol.ButtonActive, PrimaryActiveRgba);
|
|
||||||
stack.PushColor(ImGuiCol.FrameBg, FrameBgRgba);
|
|
||||||
stack.PushColor(ImGuiCol.FrameBgHovered, FrameBgHoverRgba);
|
|
||||||
stack.PushColor(ImGuiCol.FrameBgActive, FrameBgActiveRgba);
|
|
||||||
stack.PushColor(ImGuiCol.Border, BorderRgba);
|
|
||||||
stack.PushColor(ImGuiCol.Header, HeaderRgba);
|
|
||||||
stack.PushColor(ImGuiCol.HeaderHovered, HeaderHoverRgba);
|
|
||||||
stack.PushColor(ImGuiCol.HeaderActive, HeaderActiveRgba);
|
|
||||||
stack.PushColor(ImGuiCol.CheckMark, PrimaryRgba);
|
|
||||||
stack.PushColor(ImGuiCol.SliderGrab, PrimaryRgba);
|
|
||||||
stack.PushColor(ImGuiCol.SliderGrabActive, PrimaryHoverRgba);
|
|
||||||
return stack;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Global color and style-variable stack pushed once per frame in
|
|
||||||
/// Plugin.Draw. Covers every ImGui surface the plugin renders so the
|
|
||||||
/// Hellion look is consistent across upstream and Hellion tabs.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="windowOpacity">Window background alpha (0.5–1.0). Lower
|
|
||||||
/// values let the game shine through the plugin panes.</param>
|
|
||||||
internal static IDisposable PushGlobal(float windowOpacity = 1.0f)
|
|
||||||
{
|
|
||||||
var stack = new StackHandle();
|
|
||||||
|
|
||||||
// Mix the configured opacity into both the outer window and the
|
|
||||||
// inner content child backgrounds — without ChildBg following the
|
|
||||||
// slider the chat log stays opaque inside even when the user
|
|
||||||
// wants to see the game behind it during combat. Form fields and
|
|
||||||
// popups (FrameBg, PopupBg) still stay opaque so input is readable.
|
|
||||||
var alphaByte = (uint)Math.Clamp((int)(windowOpacity * 255f), 0x55, 0xFF);
|
|
||||||
var windowBgWithAlpha = (WindowBgRgba & 0xFFFFFF00u) | alphaByte;
|
|
||||||
var childBgWithAlpha = (ChildBgRgba & 0xFFFFFF00u) | alphaByte;
|
|
||||||
|
|
||||||
// Layout — geometric edges, modest rounding, single-pixel borders.
|
|
||||||
stack.PushStyleVar(ImGuiStyleVar.WindowRounding, 4f);
|
|
||||||
stack.PushStyleVar(ImGuiStyleVar.ChildRounding, 3f);
|
|
||||||
stack.PushStyleVar(ImGuiStyleVar.PopupRounding, 3f);
|
|
||||||
stack.PushStyleVar(ImGuiStyleVar.FrameRounding, 2f);
|
|
||||||
stack.PushStyleVar(ImGuiStyleVar.GrabRounding, 2f);
|
|
||||||
stack.PushStyleVar(ImGuiStyleVar.TabRounding, 2f);
|
|
||||||
stack.PushStyleVar(ImGuiStyleVar.ScrollbarRounding, 2f);
|
|
||||||
stack.PushStyleVar(ImGuiStyleVar.WindowBorderSize, 1f);
|
|
||||||
stack.PushStyleVar(ImGuiStyleVar.FrameBorderSize, 1f);
|
|
||||||
|
|
||||||
// Surfaces.
|
|
||||||
stack.PushColor(ImGuiCol.WindowBg, windowBgWithAlpha);
|
|
||||||
stack.PushColor(ImGuiCol.ChildBg, childBgWithAlpha);
|
|
||||||
stack.PushColor(ImGuiCol.PopupBg, PopupBgRgba);
|
|
||||||
stack.PushColor(ImGuiCol.Border, BorderRgba);
|
|
||||||
stack.PushColor(ImGuiCol.BorderShadow, BorderShadowRgba);
|
|
||||||
|
|
||||||
// Frames (input fields, combos, sliders).
|
|
||||||
stack.PushColor(ImGuiCol.FrameBg, FrameBgRgba);
|
|
||||||
stack.PushColor(ImGuiCol.FrameBgHovered, FrameBgHoverRgba);
|
|
||||||
stack.PushColor(ImGuiCol.FrameBgActive, FrameBgActiveRgba);
|
|
||||||
|
|
||||||
// Title bars — tertiary identity on active.
|
|
||||||
stack.PushColor(ImGuiCol.TitleBg, TitleBgRgba);
|
|
||||||
stack.PushColor(ImGuiCol.TitleBgActive, TitleBgActiveRgba);
|
|
||||||
stack.PushColor(ImGuiCol.TitleBgCollapsed, TitleBgCollapsedRgba);
|
|
||||||
|
|
||||||
// Buttons — primary cyan.
|
|
||||||
stack.PushColor(ImGuiCol.Button, PrimaryRgba);
|
|
||||||
stack.PushColor(ImGuiCol.ButtonHovered, PrimaryHoverRgba);
|
|
||||||
stack.PushColor(ImGuiCol.ButtonActive, PrimaryActiveRgba);
|
|
||||||
|
|
||||||
// Headers / selectables — slate with subtle steps.
|
|
||||||
stack.PushColor(ImGuiCol.Header, HeaderRgba);
|
|
||||||
stack.PushColor(ImGuiCol.HeaderHovered, HeaderHoverRgba);
|
|
||||||
stack.PushColor(ImGuiCol.HeaderActive, HeaderActiveRgba);
|
|
||||||
|
|
||||||
// Tabs — tertiary identity for the active tab.
|
|
||||||
stack.PushColor(ImGuiCol.Tab, TabRgba);
|
|
||||||
stack.PushColor(ImGuiCol.TabHovered, TabHoveredRgba);
|
|
||||||
stack.PushColor(ImGuiCol.TabActive, TabActiveRgba);
|
|
||||||
stack.PushColor(ImGuiCol.TabUnfocused, TabUnfocusedRgba);
|
|
||||||
stack.PushColor(ImGuiCol.TabUnfocusedActive, TabUnfocusedActiveRgba);
|
|
||||||
|
|
||||||
// Scrollbar.
|
|
||||||
stack.PushColor(ImGuiCol.ScrollbarBg, ScrollbarBgRgba);
|
|
||||||
stack.PushColor(ImGuiCol.ScrollbarGrab, ScrollbarGrabRgba);
|
|
||||||
stack.PushColor(ImGuiCol.ScrollbarGrabHovered, ScrollbarGrabHoveredRgba);
|
|
||||||
stack.PushColor(ImGuiCol.ScrollbarGrabActive, ScrollbarGrabActiveRgba);
|
|
||||||
|
|
||||||
// Resize grip — secondary amber on active.
|
|
||||||
stack.PushColor(ImGuiCol.ResizeGrip, ResizeGripRgba);
|
|
||||||
stack.PushColor(ImGuiCol.ResizeGripHovered, ResizeGripHoveredRgba);
|
|
||||||
stack.PushColor(ImGuiCol.ResizeGripActive, ResizeGripActiveRgba);
|
|
||||||
|
|
||||||
// Check mark + slider grab — primary cyan.
|
|
||||||
stack.PushColor(ImGuiCol.CheckMark, PrimaryRgba);
|
|
||||||
stack.PushColor(ImGuiCol.SliderGrab, PrimaryRgba);
|
|
||||||
stack.PushColor(ImGuiCol.SliderGrabActive, PrimaryHoverRgba);
|
|
||||||
|
|
||||||
// Separator — primary cyan when hovered/active so the eye
|
|
||||||
// immediately sees that splitters are interactive.
|
|
||||||
stack.PushColor(ImGuiCol.Separator, BorderRgba);
|
|
||||||
stack.PushColor(ImGuiCol.SeparatorHovered, PrimaryHoverRgba);
|
|
||||||
stack.PushColor(ImGuiCol.SeparatorActive, PrimaryRgba);
|
|
||||||
|
|
||||||
return stack;
|
|
||||||
}
|
|
||||||
|
|
||||||
private sealed class StackHandle : IDisposable
|
|
||||||
{
|
|
||||||
private readonly List<IDisposable> _items = new(64);
|
|
||||||
|
|
||||||
internal void PushColor(ImGuiCol slot, uint rgba)
|
|
||||||
=> _items.Add(ImRaii.PushColor(slot, ColourUtil.RgbaToAbgr(rgba)));
|
|
||||||
|
|
||||||
internal void PushStyleVar(ImGuiStyleVar var, float value)
|
|
||||||
=> _items.Add(ImRaii.PushStyle(var, value));
|
|
||||||
|
|
||||||
public void Dispose()
|
|
||||||
{
|
|
||||||
for (var i = _items.Count - 1; i >= 0; i--)
|
|
||||||
_items[i].Dispose();
|
|
||||||
_items.Clear();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,184 +0,0 @@
|
|||||||
using System.Numerics;
|
|
||||||
using ChatTwo.Resources;
|
|
||||||
using ChatTwo.Ui.SettingsTabs;
|
|
||||||
using ChatTwo.Util;
|
|
||||||
using Dalamud.Interface.Utility.Raii;
|
|
||||||
using Dalamud.Interface.Windowing;
|
|
||||||
using Dalamud.Utility;
|
|
||||||
using Dalamud.Bindings.ImGui;
|
|
||||||
|
|
||||||
namespace ChatTwo.Ui;
|
|
||||||
|
|
||||||
public sealed class SettingsWindow : Dalamud.Interface.Windowing.Window
|
|
||||||
{
|
|
||||||
private readonly Plugin Plugin;
|
|
||||||
|
|
||||||
private Configuration Mutable { get; }
|
|
||||||
private List<ISettingsTab> Tabs { get; }
|
|
||||||
private int CurrentTab;
|
|
||||||
|
|
||||||
internal SettingsWindow(Plugin plugin) : base($"{Language.Settings_Title.Format(Plugin.PluginName)}###chat2-settings")
|
|
||||||
{
|
|
||||||
Flags = ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoScrollWithMouse;
|
|
||||||
|
|
||||||
SizeCondition = ImGuiCond.FirstUseEver;
|
|
||||||
SizeConstraints = new WindowSizeConstraints
|
|
||||||
{
|
|
||||||
MinimumSize = new Vector2(475, 600),
|
|
||||||
MaximumSize = new Vector2(float.MaxValue, float.MaxValue)
|
|
||||||
};
|
|
||||||
|
|
||||||
Plugin = plugin;
|
|
||||||
Mutable = new Configuration();
|
|
||||||
|
|
||||||
Tabs =
|
|
||||||
[
|
|
||||||
new General(Plugin, Mutable),
|
|
||||||
new Appearance(Plugin, Mutable),
|
|
||||||
new SettingsTabs.Window(Plugin, Mutable),
|
|
||||||
new Chat(Plugin, Mutable),
|
|
||||||
new SettingsTabs.Tabs(Plugin, Mutable),
|
|
||||||
new SettingsTabs.Privacy(Plugin, Mutable),
|
|
||||||
new Database(Plugin, Mutable),
|
|
||||||
new Information(Mutable),
|
|
||||||
];
|
|
||||||
|
|
||||||
RespectCloseHotkey = false;
|
|
||||||
DisableWindowSounds = true;
|
|
||||||
|
|
||||||
Initialise();
|
|
||||||
|
|
||||||
Plugin.Commands.Register("/hellion", "Perform various actions with Hellion Chat.").Execute += Command;
|
|
||||||
Plugin.Interface.UiBuilder.OpenConfigUi += Toggle;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Dispose()
|
|
||||||
{
|
|
||||||
Plugin.Interface.UiBuilder.OpenConfigUi -= Toggle;
|
|
||||||
Plugin.Commands.Register("/hellion").Execute -= Command;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void Command(string command, string args)
|
|
||||||
{
|
|
||||||
if (string.IsNullOrWhiteSpace(args))
|
|
||||||
Toggle();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void Initialise()
|
|
||||||
{
|
|
||||||
Mutable.UpdateFrom(Plugin.Config, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Draw()
|
|
||||||
{
|
|
||||||
if (ImGui.IsWindowAppearing())
|
|
||||||
Initialise();
|
|
||||||
|
|
||||||
using (var table = ImRaii.Table("##chat2-settings-table", 2))
|
|
||||||
{
|
|
||||||
if (table.Success)
|
|
||||||
{
|
|
||||||
ImGui.TableSetupColumn("tab", ImGuiTableColumnFlags.WidthFixed);
|
|
||||||
ImGui.TableSetupColumn("settings", ImGuiTableColumnFlags.WidthStretch);
|
|
||||||
|
|
||||||
ImGui.TableNextColumn();
|
|
||||||
|
|
||||||
var changed = false;
|
|
||||||
for (var i = 0; i < Tabs.Count; i++)
|
|
||||||
{
|
|
||||||
if (!ImGui.Selectable($"{Tabs[i].Name}###tab-{i}", CurrentTab == i))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
CurrentTab = i;
|
|
||||||
changed = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
ImGui.TableNextColumn();
|
|
||||||
|
|
||||||
var style = ImGui.GetStyle();
|
|
||||||
var height = ImGui.GetContentRegionAvail().Y - style.FramePadding.Y * 2 - style.ItemSpacing.Y - style.ItemInnerSpacing.Y * 2 - ImGui.CalcTextSize("A").Y;
|
|
||||||
|
|
||||||
using var child = ImRaii.Child("##chat2-settings", new Vector2(-1, height));
|
|
||||||
if (child.Success)
|
|
||||||
Tabs[CurrentTab].Draw(changed);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
ImGui.Separator();
|
|
||||||
|
|
||||||
var save = ImGui.Button(Language.Settings_Save);
|
|
||||||
|
|
||||||
ImGui.SameLine();
|
|
||||||
|
|
||||||
if (ImGui.Button(Language.Settings_SaveAndClose))
|
|
||||||
{
|
|
||||||
save = true;
|
|
||||||
IsOpen = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
ImGui.SameLine();
|
|
||||||
|
|
||||||
if (ImGui.Button(Language.Settings_Discard))
|
|
||||||
{
|
|
||||||
IsOpen = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
const string buttonLabel = "Anna's Ko-fi";
|
|
||||||
const string buttonLabel2 = "Infi's Ko-fi";
|
|
||||||
|
|
||||||
using (ImRaii.PushColor(ImGuiCol.Button, ColourUtil.RgbaToAbgr(0xFF5E5BFF)))
|
|
||||||
using (ImRaii.PushColor(ImGuiCol.ButtonHovered, ColourUtil.RgbaToAbgr(0xFF7775FF)))
|
|
||||||
using (ImRaii.PushColor(ImGuiCol.ButtonActive, ColourUtil.RgbaToAbgr(0xFF4542FF)))
|
|
||||||
using (ImRaii.PushColor(ImGuiCol.Text, 0xFFFFFFFF))
|
|
||||||
{
|
|
||||||
var buttonWidth = ImGui.CalcTextSize(buttonLabel).X + ImGui.GetStyle().FramePadding.X * 2;
|
|
||||||
var buttonWidth2 = ImGui.CalcTextSize(buttonLabel2).X + ImGui.GetStyle().FramePadding.X * 2;
|
|
||||||
ImGui.SameLine(ImGui.GetContentRegionAvail().X - buttonWidth - buttonWidth2 - ImGui.GetStyle().ItemSpacing.X);
|
|
||||||
|
|
||||||
if (ImGui.Button(buttonLabel2))
|
|
||||||
Dalamud.Utility.Util.OpenLink("https://ko-fi.com/infiii");
|
|
||||||
|
|
||||||
ImGui.SameLine();
|
|
||||||
|
|
||||||
if (ImGui.Button(buttonLabel))
|
|
||||||
Dalamud.Utility.Util.OpenLink("https://ko-fi.com/lojewalo");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!save)
|
|
||||||
return;
|
|
||||||
|
|
||||||
// calculate all conditions before updating config
|
|
||||||
var hideChanged = !Mutable.HideChat && Mutable.HideChat != Plugin.Config.HideChat;
|
|
||||||
var languageChanged = Mutable.LanguageOverride != Plugin.Config.LanguageOverride;
|
|
||||||
var fontChanged = Mutable.GlobalFontV2 != Plugin.Config.GlobalFontV2
|
|
||||||
|| Mutable.JapaneseFontV2 != Plugin.Config.JapaneseFontV2
|
|
||||||
|| Mutable.ItalicFontV2 != Plugin.Config.ItalicFontV2
|
|
||||||
|| Mutable.ExtraGlyphRanges != Plugin.Config.ExtraGlyphRanges
|
|
||||||
|| Mutable.UseHellionFont != Plugin.Config.UseHellionFont;
|
|
||||||
var fontSizeChanged = Math.Abs(Mutable.SymbolsFontSizeV2 - Plugin.Config.SymbolsFontSizeV2) > 0.001
|
|
||||||
|| Math.Abs(Mutable.FontSizeV2 - Plugin.Config.FontSizeV2) > 0.001;
|
|
||||||
var italicStateChanged = Mutable.ItalicEnabled != Plugin.Config.ItalicEnabled;
|
|
||||||
|
|
||||||
Plugin.Config.UpdateFrom(Mutable, true);
|
|
||||||
|
|
||||||
// save after 60 frames have passed, which should hopefully not
|
|
||||||
// commit any changes that cause a crash
|
|
||||||
Plugin.DeferredSaveFrames = 60;
|
|
||||||
Plugin.MessageManager.ClearAllTabs();
|
|
||||||
Plugin.MessageManager.FilterAllTabsAsync();
|
|
||||||
|
|
||||||
if (fontChanged || fontSizeChanged || italicStateChanged)
|
|
||||||
Plugin.FontManager.BuildFonts();
|
|
||||||
|
|
||||||
if (languageChanged)
|
|
||||||
Plugin.LanguageChanged(Plugin.Interface.UiLanguage);
|
|
||||||
|
|
||||||
if (hideChanged)
|
|
||||||
GameFunctions.GameFunctions.SetChatInteractable(true);
|
|
||||||
|
|
||||||
if (Plugin.Config.ShowEmotes)
|
|
||||||
_ = EmoteCache.LoadData(); // Fire-and-forget intentional, exceptions are caught inside
|
|
||||||
|
|
||||||
Initialise();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,259 +0,0 @@
|
|||||||
using System.Diagnostics;
|
|
||||||
using ChatTwo.Code;
|
|
||||||
using ChatTwo.Resources;
|
|
||||||
using ChatTwo.Util;
|
|
||||||
using Dalamud.Game.Text.SeStringHandling;
|
|
||||||
using Dalamud.Game.Text.SeStringHandling.Payloads;
|
|
||||||
using Dalamud.Interface.ImGuiNotification;
|
|
||||||
using Dalamud.Interface.Utility.Raii;
|
|
||||||
using Dalamud.Bindings.ImGui;
|
|
||||||
using Dalamud.Game.Text;
|
|
||||||
|
|
||||||
namespace ChatTwo.Ui.SettingsTabs;
|
|
||||||
|
|
||||||
internal sealed class Database : ISettingsTab
|
|
||||||
{
|
|
||||||
private Plugin Plugin { get; }
|
|
||||||
private Configuration Mutable { get; }
|
|
||||||
|
|
||||||
public string Name => HellionStrings.Settings_Tab_Database + "###tabs-database";
|
|
||||||
|
|
||||||
internal Database(Plugin plugin, Configuration mutable)
|
|
||||||
{
|
|
||||||
Plugin = plugin;
|
|
||||||
Mutable = mutable;
|
|
||||||
}
|
|
||||||
|
|
||||||
private bool ShowAdvanced;
|
|
||||||
|
|
||||||
private long DatabaseLastRefreshTicks;
|
|
||||||
private long DatabaseSize;
|
|
||||||
private long DatabaseLogSize;
|
|
||||||
private int DatabaseMessageCount;
|
|
||||||
|
|
||||||
public void Draw(bool changed)
|
|
||||||
{
|
|
||||||
// Shift-on-open keeps the Advanced tools available without a permanent
|
|
||||||
// toggle in the UI, mirroring upstream Chat 2 behaviour.
|
|
||||||
if (changed)
|
|
||||||
ShowAdvanced = ImGui.GetIO().KeyShift;
|
|
||||||
|
|
||||||
DrawStorageSection();
|
|
||||||
ImGui.Spacing();
|
|
||||||
DrawViewerSection();
|
|
||||||
ImGui.Spacing();
|
|
||||||
DrawStatsSection();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void DrawStorageSection()
|
|
||||||
{
|
|
||||||
using var tree = ImRaii.TreeNode(HellionStrings.Settings_Database_Storage_Heading);
|
|
||||||
if (!tree.Success)
|
|
||||||
return;
|
|
||||||
|
|
||||||
using (ImRaii.PushIndent(ImGui.GetStyle().IndentSpacing, false))
|
|
||||||
{
|
|
||||||
ImGui.Checkbox(Language.Options_DatabaseBattleMessages_Name, ref Mutable.DatabaseBattleMessages);
|
|
||||||
ImGuiUtil.HelpMarker(Language.Options_DatabaseBattleMessages_Description);
|
|
||||||
|
|
||||||
if (ImGui.Checkbox(Language.Options_LoadPreviousSession_Name, ref Mutable.LoadPreviousSession))
|
|
||||||
if (Mutable.LoadPreviousSession)
|
|
||||||
Mutable.FilterIncludePreviousSessions = true;
|
|
||||||
ImGuiUtil.HelpMarker(Language.Options_LoadPreviousSession_Description);
|
|
||||||
|
|
||||||
if (ImGui.Checkbox(Language.Options_FilterIncludePreviousSessions_Name, ref Mutable.FilterIncludePreviousSessions))
|
|
||||||
if (!Mutable.FilterIncludePreviousSessions)
|
|
||||||
Mutable.LoadPreviousSession = false;
|
|
||||||
ImGuiUtil.HelpMarker(Language.Options_FilterIncludePreviousSessions_Description);
|
|
||||||
|
|
||||||
var old = new FileInfo(Path.Join(Plugin.Interface.ConfigDirectory.FullName, "chat.db"));
|
|
||||||
var migratedOld = new FileInfo(Path.Join(Plugin.Interface.ConfigDirectory.FullName, "chat-litedb.db"));
|
|
||||||
if (old.Exists || migratedOld.Exists)
|
|
||||||
{
|
|
||||||
ImGui.Spacing();
|
|
||||||
ImGui.Separator();
|
|
||||||
ImGui.Spacing();
|
|
||||||
|
|
||||||
ImGui.TextUnformatted(Language.Options_Database_Old_Heading);
|
|
||||||
ImGui.Spacing();
|
|
||||||
|
|
||||||
if (ImGuiUtil.CtrlShiftButton(Language.Options_Database_Old_Delete, Language.Options_Database_Old_Delete_Tooltip))
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
if (old.Exists)
|
|
||||||
old.Delete();
|
|
||||||
else
|
|
||||||
migratedOld.Delete();
|
|
||||||
WrapperUtil.AddNotification(Language.Options_Database_Old_Delete_Success, NotificationType.Success);
|
|
||||||
}
|
|
||||||
catch (Exception e)
|
|
||||||
{
|
|
||||||
Plugin.Log.Error(e, "Unable to delete old database");
|
|
||||||
WrapperUtil.AddNotification(Language.Options_Database_Old_Delete_Error, NotificationType.Error);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void DrawViewerSection()
|
|
||||||
{
|
|
||||||
using var tree = ImRaii.TreeNode(HellionStrings.Settings_Database_Viewer_Heading);
|
|
||||||
if (!tree.Success)
|
|
||||||
return;
|
|
||||||
|
|
||||||
using (ImRaii.PushIndent(ImGui.GetStyle().IndentSpacing, false))
|
|
||||||
{
|
|
||||||
// Refresh the database size and message count every 5 seconds to avoid
|
|
||||||
// constant stat calls and spamming the database.
|
|
||||||
if (DatabaseLastRefreshTicks + 5 * 1000 < Environment.TickCount64)
|
|
||||||
{
|
|
||||||
DatabaseSize = Plugin.MessageManager.Store.DatabaseSize();
|
|
||||||
DatabaseLogSize = Plugin.MessageManager.Store.DatabaseLogSize();
|
|
||||||
DatabaseMessageCount = Plugin.MessageManager.Store.MessageCount();
|
|
||||||
DatabaseLastRefreshTicks = Environment.TickCount64;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Copy the directory path instead of the file path so people can
|
|
||||||
// paste it into their file explorer.
|
|
||||||
ImGuiUtil.HelpText(string.Format(Language.Options_Database_Metadata_Path, MessageManager.DatabasePath()));
|
|
||||||
if (ImGui.IsItemClicked(ImGuiMouseButton.Left))
|
|
||||||
{
|
|
||||||
var path = Path.GetDirectoryName(MessageManager.DatabasePath());
|
|
||||||
ImGui.SetClipboardText(path);
|
|
||||||
WrapperUtil.AddNotification(Language.Options_Database_Metadata_CopyConfigPathNotification, NotificationType.Info);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ImGui.IsItemHovered())
|
|
||||||
{
|
|
||||||
ImGui.SetMouseCursor(ImGuiMouseCursor.Hand);
|
|
||||||
ImGuiUtil.Tooltip(Language.Options_Database_Metadata_CopyConfigPath);
|
|
||||||
}
|
|
||||||
|
|
||||||
ImGuiUtil.HelpText(string.Format(Language.Options_Database_Metadata_Size, StringUtil.BytesToString(DatabaseSize)));
|
|
||||||
if (ImGui.IsItemHovered())
|
|
||||||
ImGuiUtil.Tooltip(StringUtil.BytesToString(DatabaseSize));
|
|
||||||
|
|
||||||
ImGuiUtil.HelpText(string.Format(Language.Options_Database_Metadata_LogSize, StringUtil.BytesToString(DatabaseLogSize)));
|
|
||||||
if (ImGui.IsItemHovered())
|
|
||||||
ImGuiUtil.Tooltip(StringUtil.BytesToString(DatabaseLogSize));
|
|
||||||
|
|
||||||
ImGuiUtil.HelpText(string.Format(Language.Options_Database_Metadata_MessageCount, DatabaseMessageCount));
|
|
||||||
|
|
||||||
if (ImGuiUtil.CtrlShiftButton(Language.Options_ClearDatabase_Button, Language.Options_ClearDatabase_Tooltip))
|
|
||||||
{
|
|
||||||
Plugin.Log.Warning("Clearing messages from database");
|
|
||||||
Plugin.MessageManager.Store.ClearMessages();
|
|
||||||
Plugin.MessageManager.ClearAllTabs();
|
|
||||||
|
|
||||||
// Refresh on next draw
|
|
||||||
DatabaseLastRefreshTicks = 0;
|
|
||||||
WrapperUtil.AddNotification(Language.Options_ClearDatabase_Success, NotificationType.Info);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void DrawStatsSection()
|
|
||||||
{
|
|
||||||
if (!ShowAdvanced)
|
|
||||||
return;
|
|
||||||
|
|
||||||
using var tree = ImRaii.TreeNode(HellionStrings.Settings_Database_Stats_Heading);
|
|
||||||
if (!tree.Success)
|
|
||||||
return;
|
|
||||||
|
|
||||||
using (ImRaii.PushIndent(ImGui.GetStyle().IndentSpacing, false))
|
|
||||||
{
|
|
||||||
using var wrap = ImRaii.TextWrapPos(0.0f);
|
|
||||||
|
|
||||||
ImGuiUtil.WarningText(Language.Options_Database_Advanced_Warning);
|
|
||||||
if (ImGuiUtil.CtrlShiftButton("Perform maintenance", "Ctrl+Shift: MessageManager.Store.PerformMaintenance()"))
|
|
||||||
Plugin.MessageManager.Store.PerformMaintenance();
|
|
||||||
|
|
||||||
if (ImGuiUtil.CtrlShiftButton("Reload messages from database", "Ctrl+Shift: MessageManager.FilterAllTabs()"))
|
|
||||||
{
|
|
||||||
Plugin.MessageManager.ClearAllTabs();
|
|
||||||
Plugin.MessageManager.FilterAllTabsAsync();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ImGuiUtil.CtrlShiftButton("Inject 10,000 messages", "Ctrl+Shift: creates 10,000 unique messages (async)"))
|
|
||||||
new Thread(() => InsertMessages(10_000)).Start();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void InsertMessages(int count)
|
|
||||||
{
|
|
||||||
Plugin.Log.Info($"Inserting {count} messages due to user request");
|
|
||||||
|
|
||||||
// Generate
|
|
||||||
var stopwatch = Stopwatch.StartNew();
|
|
||||||
var playerName = Plugin.PlayerState.CharacterName;
|
|
||||||
var worldId = Plugin.PlayerState.HomeWorld.ValueNullable?.RowId ?? 0;
|
|
||||||
var senderSource = new SeStringBuilder()
|
|
||||||
.AddText("<")
|
|
||||||
.Add(new PlayerPayload(playerName, worldId))
|
|
||||||
.AddText("Random Message")
|
|
||||||
.Add(RawPayload.LinkTerminator)
|
|
||||||
.AddText(">: ")
|
|
||||||
.Build();
|
|
||||||
var senderChunks = ChunkUtil.ToChunks(senderSource, ChunkSource.Sender, ChatType.Debug).ToList();
|
|
||||||
var messages = new List<Message>(count);
|
|
||||||
for (var i = 0; i < count; i++)
|
|
||||||
{
|
|
||||||
var contentSource = new SeStringBuilder()
|
|
||||||
.AddText("Random message payload - ")
|
|
||||||
.AddItalics(Guid.NewGuid().ToString())
|
|
||||||
.Build();
|
|
||||||
var contentChunks = ChunkUtil.ToChunks(contentSource, ChunkSource.Content, ChatType.Debug).ToList();
|
|
||||||
|
|
||||||
var chatCode = new ChatCode(XivChatType.Say, 0, 0);
|
|
||||||
messages.Add(new Message(
|
|
||||||
Guid.NewGuid(),
|
|
||||||
Plugin.MessageManager.CurrentContentId,
|
|
||||||
Plugin.MessageManager.CurrentContentId,
|
|
||||||
DateTimeOffset.UtcNow,
|
|
||||||
chatCode,
|
|
||||||
senderChunks,
|
|
||||||
contentChunks,
|
|
||||||
senderSource,
|
|
||||||
contentSource,
|
|
||||||
Guid.Empty
|
|
||||||
));
|
|
||||||
}
|
|
||||||
|
|
||||||
var elapsedTicks = stopwatch.ElapsedTicks;
|
|
||||||
stopwatch.Stop();
|
|
||||||
Plugin.Log.Info($"Crafted {count} messages in {elapsedTicks} ticks ({elapsedTicks / TimeSpan.TicksPerMillisecond}ms)");
|
|
||||||
|
|
||||||
// Insert
|
|
||||||
stopwatch = Stopwatch.StartNew();
|
|
||||||
foreach (var message in messages)
|
|
||||||
Plugin.MessageManager.Store.UpsertMessage(message);
|
|
||||||
|
|
||||||
elapsedTicks = stopwatch.ElapsedTicks;
|
|
||||||
stopwatch.Stop();
|
|
||||||
Plugin.Log.Info($"Upserted {count} messages in {elapsedTicks} ticks ({elapsedTicks / TimeSpan.TicksPerMillisecond}ms)");
|
|
||||||
|
|
||||||
// Clear tabs during framework frame
|
|
||||||
Plugin.Framework.Run(() =>
|
|
||||||
{
|
|
||||||
stopwatch = Stopwatch.StartNew();
|
|
||||||
Plugin.MessageManager.ClearAllTabs();
|
|
||||||
elapsedTicks = stopwatch.ElapsedTicks;
|
|
||||||
stopwatch.Stop();
|
|
||||||
Plugin.Log.Info($"Cleared {Plugin.Config.Tabs.Count} tabs in {elapsedTicks} ticks ({elapsedTicks / TimeSpan.TicksPerMillisecond}ms)");
|
|
||||||
}).Wait();
|
|
||||||
|
|
||||||
// Fetch and filter during framework frame
|
|
||||||
Plugin.Framework.Run(() =>
|
|
||||||
{
|
|
||||||
stopwatch = Stopwatch.StartNew();
|
|
||||||
// Intentionally synchronous
|
|
||||||
Plugin.MessageManager.FilterAllTabs();
|
|
||||||
elapsedTicks = stopwatch.ElapsedTicks;
|
|
||||||
stopwatch.Stop();
|
|
||||||
Plugin.Log.Info($"Fetched and filtered all tabs in {elapsedTicks} ticks ({elapsedTicks / TimeSpan.TicksPerMillisecond}ms)");
|
|
||||||
}).Wait();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
using System.Text;
|
|
||||||
|
|
||||||
namespace ChatTwo.Util;
|
|
||||||
|
|
||||||
public static class MemoryUtil
|
|
||||||
{
|
|
||||||
public static unsafe void PrintMemoryArea(nint address, int length)
|
|
||||||
{
|
|
||||||
var ptr = (byte*)address;
|
|
||||||
var str = new StringBuilder("\n");
|
|
||||||
for(var i = 0; i < length; i++)
|
|
||||||
{
|
|
||||||
str.Append($"{ptr![i]:X02}");
|
|
||||||
|
|
||||||
if (i == 0)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if ((i+1) % 16 == 0)
|
|
||||||
str.Append('\n');
|
|
||||||
else if ((i+1) % 4 == 0)
|
|
||||||
str.Append(' ');
|
|
||||||
}
|
|
||||||
|
|
||||||
Plugin.Log.Information(str.ToString());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
using System.Text;
|
|
||||||
|
|
||||||
namespace ChatTwo.Util;
|
|
||||||
|
|
||||||
internal static class StringUtil
|
|
||||||
{
|
|
||||||
internal static byte[] ToTerminatedBytes(this string s)
|
|
||||||
{
|
|
||||||
var utf8 = Encoding.UTF8;
|
|
||||||
var bytes = new byte[utf8.GetByteCount(s) + 1];
|
|
||||||
utf8.GetBytes(s, 0, s.Length, bytes, 0);
|
|
||||||
bytes[^1] = 0;
|
|
||||||
return bytes;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Taken from https://stackoverflow.com/a/4975942
|
|
||||||
internal static string BytesToString(long byteCount)
|
|
||||||
{
|
|
||||||
string[] suf = ["B", "KB", "MB", "GB", "TB", "PB", "EB"]; // Longs run out around EB
|
|
||||||
if (byteCount == 0)
|
|
||||||
return "0" + suf[0];
|
|
||||||
|
|
||||||
var bytes = Math.Abs(byteCount);
|
|
||||||
var place = Convert.ToInt32(Math.Floor(Math.Log(bytes, 1024)));
|
|
||||||
var num = Math.Round(bytes / Math.Pow(1024, place), 1);
|
|
||||||
return (Math.Sign(byteCount) * num).ToString("N0") + suf[place];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 52 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 53 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 51 KiB |
Executable
+31
@@ -0,0 +1,31 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HellionChat", "HellionChat\HellionChat.csproj", "{739F75E6-B65F-41EF-9D90-F7BC519E4875}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Debug|x64 = Debug|x64
|
||||||
|
Debug|x86 = Debug|x86
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
Release|x64 = Release|x64
|
||||||
|
Release|x86 = Release|x86
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{739F75E6-B65F-41EF-9D90-F7BC519E4875}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{739F75E6-B65F-41EF-9D90-F7BC519E4875}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{739F75E6-B65F-41EF-9D90-F7BC519E4875}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||||
|
{739F75E6-B65F-41EF-9D90-F7BC519E4875}.Debug|x64.Build.0 = Debug|Any CPU
|
||||||
|
{739F75E6-B65F-41EF-9D90-F7BC519E4875}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||||
|
{739F75E6-B65F-41EF-9D90-F7BC519E4875}.Debug|x86.Build.0 = Debug|Any CPU
|
||||||
|
{739F75E6-B65F-41EF-9D90-F7BC519E4875}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{739F75E6-B65F-41EF-9D90-F7BC519E4875}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{739F75E6-B65F-41EF-9D90-F7BC519E4875}.Release|x64.ActiveCfg = Release|Any CPU
|
||||||
|
{739F75E6-B65F-41EF-9D90-F7BC519E4875}.Release|x64.Build.0 = Release|Any CPU
|
||||||
|
{739F75E6-B65F-41EF-9D90-F7BC519E4875}.Release|x86.ActiveCfg = Release|Any CPU
|
||||||
|
{739F75E6-B65F-41EF-9D90-F7BC519E4875}.Release|x86.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
||||||
@@ -1,14 +1,14 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using ChatTwo.Code;
|
using HellionChat.Code;
|
||||||
using ChatTwo.GameFunctions.Types;
|
using HellionChat.GameFunctions.Types;
|
||||||
using ChatTwo.Resources;
|
using HellionChat.Resources;
|
||||||
using ChatTwo.Util;
|
using HellionChat.Util;
|
||||||
using Dalamud.Game.Text;
|
using Dalamud.Game.Text;
|
||||||
using Dalamud.Game.Text.SeStringHandling;
|
using Dalamud.Game.Text.SeStringHandling;
|
||||||
|
|
||||||
namespace ChatTwo;
|
namespace HellionChat;
|
||||||
|
|
||||||
// Hellion Chat — Auto-Tell-Tabs.
|
// Hellion Chat — Auto-Tell-Tabs.
|
||||||
//
|
//
|
||||||
@@ -183,6 +183,22 @@ internal sealed class AutoTellTabsService : IDisposable
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// v0.6.1 — if the victim is currently popped out, tear down the
|
||||||
|
// matching Popout window first. Otherwise the window stays in
|
||||||
|
// PopOutWindows + WindowSystem and renders empty / re-spawns on the
|
||||||
|
// next AddPopOutsToDraw tick. Latent since pop-outs were introduced;
|
||||||
|
// becomes visible with AutoTellTabsOpenAsPopout where dropping a
|
||||||
|
// popped tab is now a routine code path.
|
||||||
|
if (victim.Tab.PopOut)
|
||||||
|
{
|
||||||
|
var popout = _plugin.ChatLogWindow.ActivePopouts
|
||||||
|
.FirstOrDefault(p => p.TabIdentifier == victim.Tab.Identifier);
|
||||||
|
if (popout != null)
|
||||||
|
{
|
||||||
|
popout.IsOpen = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Plugin.Config.Tabs.RemoveAt(victim.Index);
|
Plugin.Config.Tabs.RemoveAt(victim.Index);
|
||||||
|
|
||||||
// Re-anchor the active tab so the user does not silently end up on
|
// Re-anchor the active tab so the user does not silently end up on
|
||||||
@@ -207,6 +223,17 @@ internal sealed class AutoTellTabsService : IDisposable
|
|||||||
PreloadHistory(tab, partner.Name, partner.World, currentMessage.Id);
|
PreloadHistory(tab, partner.Name, partner.World, currentMessage.Id);
|
||||||
|
|
||||||
tab.AddMessage(currentMessage, unread: true);
|
tab.AddMessage(currentMessage, unread: true);
|
||||||
|
|
||||||
|
// Hellion Chat v0.6.1 — opt-in: open new /tell tabs directly as a
|
||||||
|
// pop-out window. Set BEFORE Tabs.Add so the next render-tick's
|
||||||
|
// AddPopOutsToDraw() sees PopOut=true and spawns the Popout window
|
||||||
|
// alongside the tab going into the list. No SaveConfig() because
|
||||||
|
// auto-tell tabs are IsTempTab (session-only, never persisted).
|
||||||
|
if (Plugin.Config.AutoTellTabsOpenAsPopout)
|
||||||
|
{
|
||||||
|
tab.PopOut = true;
|
||||||
|
}
|
||||||
|
|
||||||
Plugin.Config.Tabs.Add(tab);
|
Plugin.Config.Tabs.Add(tab);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -355,6 +382,27 @@ internal sealed class AutoTellTabsService : IDisposable
|
|||||||
var lastIndexValid = lastIndex >= 0 && lastIndex < Plugin.Config.Tabs.Count;
|
var lastIndexValid = lastIndex >= 0 && lastIndex < Plugin.Config.Tabs.Count;
|
||||||
var currentWasTempTab = lastIndexValid && Plugin.Config.Tabs[lastIndex].IsTempTab;
|
var currentWasTempTab = lastIndexValid && Plugin.Config.Tabs[lastIndex].IsTempTab;
|
||||||
|
|
||||||
|
// v0.6.1 — symmetric to DropOldestTempTab cleanup: tear down any
|
||||||
|
// popped-out temp tab windows before removing the tabs themselves,
|
||||||
|
// otherwise PopOutWindows + WindowSystem keep ghost entries until
|
||||||
|
// the next plugin reload. Especially relevant once Auto-Pop-Out is
|
||||||
|
// enabled — every logout would otherwise leak as many ghosts as
|
||||||
|
// there were active /tell pop-outs.
|
||||||
|
var poppedTempTabIds = Plugin.Config.Tabs
|
||||||
|
.Where(t => t.IsTempTab && t.PopOut)
|
||||||
|
.Select(t => t.Identifier)
|
||||||
|
.ToList();
|
||||||
|
if (poppedTempTabIds.Count > 0)
|
||||||
|
{
|
||||||
|
var poppedSet = poppedTempTabIds.ToHashSet();
|
||||||
|
foreach (var popout in _plugin.ChatLogWindow.ActivePopouts
|
||||||
|
.Where(p => poppedSet.Contains(p.TabIdentifier))
|
||||||
|
.ToList())
|
||||||
|
{
|
||||||
|
popout.IsOpen = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Plugin.Config.Tabs.RemoveAll(t => t.IsTempTab);
|
Plugin.Config.Tabs.RemoveAll(t => t.IsTempTab);
|
||||||
|
|
||||||
// Force a switch to tab 0 if the active tab was a temp tab OR
|
// Force a switch to tab 0 if the active tab was a temp tab OR
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
// HellionChat/Branding/BrandingLinks.cs
|
||||||
|
namespace HellionChat.Branding;
|
||||||
|
|
||||||
|
// Centralised so a future invite rotation only touches one file. The same
|
||||||
|
// link is currently hard-coded in repo.json, README.md, SUPPORT.md,
|
||||||
|
// CONTRIBUTORS.md and HellionChat.yaml — those will be migrated to consume
|
||||||
|
// this constant in a separate housekeeping sweep, but that's out of scope
|
||||||
|
// for this Cycle.
|
||||||
|
internal static class BrandingLinks
|
||||||
|
{
|
||||||
|
public const string HellionForgeDiscordInvite = "https://discord.gg/X9V7Kcv5gR";
|
||||||
|
}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
using System.Linq;
|
||||||
|
using HellionChat.Resources;
|
||||||
|
using Dalamud.Plugin;
|
||||||
|
|
||||||
|
namespace HellionChat;
|
||||||
|
|
||||||
|
internal static class ChatTwoConflictDetector
|
||||||
|
{
|
||||||
|
private const string UpstreamInternalName = "ChatTwo";
|
||||||
|
|
||||||
|
public static void ThrowIfChatTwoIsLoaded(IDalamudPluginInterface pluginInterface)
|
||||||
|
{
|
||||||
|
var conflict = pluginInterface.InstalledPlugins
|
||||||
|
.FirstOrDefault(p =>
|
||||||
|
p.InternalName == UpstreamInternalName &&
|
||||||
|
p.IsLoaded);
|
||||||
|
|
||||||
|
if (conflict is null)
|
||||||
|
return;
|
||||||
|
|
||||||
|
var message = HellionStrings.ChatTwoConflictTitle + "\n\n" +
|
||||||
|
HellionStrings.ChatTwoConflictBody + "\n\n" +
|
||||||
|
HellionStrings.ChatTwoConflictAction;
|
||||||
|
|
||||||
|
throw new System.InvalidOperationException(message);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
using ChatTwo.Code;
|
using HellionChat.Code;
|
||||||
using Dalamud.Game.Text.SeStringHandling;
|
using Dalamud.Game.Text.SeStringHandling;
|
||||||
using MessagePack;
|
using MessagePack;
|
||||||
|
|
||||||
namespace ChatTwo;
|
namespace HellionChat;
|
||||||
|
|
||||||
[Union(0, typeof(TextChunk))]
|
[Union(0, typeof(TextChunk))]
|
||||||
[Union(1, typeof(IconChunk))]
|
[Union(1, typeof(IconChunk))]
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using Dalamud.Game.Text;
|
using Dalamud.Game.Text;
|
||||||
|
|
||||||
namespace ChatTwo.Code;
|
namespace HellionChat.Code;
|
||||||
|
|
||||||
public class ChatCode
|
public class ChatCode
|
||||||
{
|
{
|
||||||
@@ -91,13 +91,10 @@ public class ChatCode
|
|||||||
|
|
||||||
public override bool Equals(object? obj)
|
public override bool Equals(object? obj)
|
||||||
{
|
{
|
||||||
if (obj == null)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
if (obj is not ChatCode code)
|
if (obj is not ChatCode code)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return GetHashCode() == code.GetHashCode();
|
return Type == code.Type && Source == code.Source && Target == code.Target;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using Dalamud.Game.Text;
|
using Dalamud.Game.Text;
|
||||||
|
|
||||||
namespace ChatTwo.Code;
|
namespace HellionChat.Code;
|
||||||
|
|
||||||
[Flags]
|
[Flags]
|
||||||
public enum ChatSource : ushort
|
public enum ChatSource : ushort
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using ChatTwo.Resources;
|
using HellionChat.Resources;
|
||||||
|
|
||||||
namespace ChatTwo.Code;
|
namespace HellionChat.Code;
|
||||||
|
|
||||||
internal static class ChatSourceExt
|
internal static class ChatSourceExt
|
||||||
{
|
{
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace ChatTwo.Code;
|
namespace HellionChat.Code;
|
||||||
|
|
||||||
public enum ChatType : ushort
|
public enum ChatType : ushort
|
||||||
{
|
{
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
using ChatTwo.Resources;
|
using HellionChat.Resources;
|
||||||
using ChatTwo.Util;
|
using HellionChat.Util;
|
||||||
using Dalamud.Game.Config;
|
using Dalamud.Game.Config;
|
||||||
|
|
||||||
namespace ChatTwo.Code;
|
namespace HellionChat.Code;
|
||||||
|
|
||||||
internal static class ChatTypeExt
|
internal static class ChatTypeExt
|
||||||
{
|
{
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace ChatTwo.Code;
|
namespace HellionChat.Code;
|
||||||
|
|
||||||
public enum InputChannel : uint
|
public enum InputChannel : uint
|
||||||
{
|
{
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using Lumina.Excel.Sheets;
|
using Lumina.Excel.Sheets;
|
||||||
|
|
||||||
namespace ChatTwo.Code;
|
namespace HellionChat.Code;
|
||||||
|
|
||||||
internal static class InputChannelExt
|
internal static class InputChannelExt
|
||||||
{
|
{
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using Dalamud.Game.Command;
|
using Dalamud.Game.Command;
|
||||||
|
|
||||||
namespace ChatTwo;
|
namespace HellionChat;
|
||||||
|
|
||||||
internal sealed class Commands : IDisposable
|
internal sealed class Commands : IDisposable
|
||||||
{
|
{
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
using System.Collections;
|
using System.Collections;
|
||||||
using ChatTwo.Code;
|
using HellionChat.Code;
|
||||||
using ChatTwo.GameFunctions.Types;
|
using HellionChat.GameFunctions.Types;
|
||||||
using ChatTwo.Resources;
|
using HellionChat.Resources;
|
||||||
using ChatTwo.Util;
|
using HellionChat.Util;
|
||||||
using Dalamud;
|
using Dalamud;
|
||||||
using Dalamud.Configuration;
|
using Dalamud.Configuration;
|
||||||
using Dalamud.Game.ClientState.Keys;
|
using Dalamud.Game.ClientState.Keys;
|
||||||
@@ -10,7 +10,7 @@ using Dalamud.Game.Text.SeStringHandling.Payloads;
|
|||||||
using Dalamud.Interface.FontIdentifier;
|
using Dalamud.Interface.FontIdentifier;
|
||||||
using Dalamud.Bindings.ImGui;
|
using Dalamud.Bindings.ImGui;
|
||||||
|
|
||||||
namespace ChatTwo;
|
namespace HellionChat;
|
||||||
|
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public class ConfigKeyBind
|
public class ConfigKeyBind
|
||||||
@@ -34,10 +34,29 @@ public class ConfigKeyBind
|
|||||||
[Serializable]
|
[Serializable]
|
||||||
public class Configuration : IPluginConfiguration
|
public class Configuration : IPluginConfiguration
|
||||||
{
|
{
|
||||||
private const int LatestVersion = 11;
|
private const int LatestVersion = 16;
|
||||||
|
|
||||||
public int Version { get; set; } = LatestVersion;
|
public int Version { get; set; } = LatestVersion;
|
||||||
|
|
||||||
|
// v1.1.0 — Theme-Engine. Slug-basiert; ThemeRegistry liefert das Objekt.
|
||||||
|
public string Theme = "hellion-arctic";
|
||||||
|
|
||||||
|
// v1.1.0 — Globale Window-Opacity, theme-übergreifend. Migration aus
|
||||||
|
// HellionThemeWindowOpacity beim Bump v13 → v14.
|
||||||
|
public float WindowOpacity = 0.85f;
|
||||||
|
|
||||||
|
|
||||||
|
// v1.1.0 — Felder für künftige UI-Toggles (v1.2.0 / v1.3.0). Werden
|
||||||
|
// vorab angelegt, damit später keine Migration nötig ist.
|
||||||
|
public bool ReduceMotion;
|
||||||
|
// v1.2.1 — Default geflippt von false → true. Card-Rows-Layout aus
|
||||||
|
// v1.2.0 wurde als zu dicht empfunden; Single-Line `[HH:mm] Sender:
|
||||||
|
// Text` ist besser lesbar und platzsparender. Bestand-User mit aktiv
|
||||||
|
// false werden durch die v15→v16-Migration auf den neuen Default
|
||||||
|
// gehoben (Heuristik: wer in v1.2.0 false hatte, hatte den damals
|
||||||
|
// neu eingeführten Default — kaum jemand hat aktiv abgeschaltet).
|
||||||
|
public bool UseCompactDensity = true;
|
||||||
|
|
||||||
// Hellion Chat — Privacy filter (DSGVO Art. 25 Privacy by Default).
|
// Hellion Chat — Privacy filter (DSGVO Art. 25 Privacy by Default).
|
||||||
// Master-switch defaults to true; set false to restore upstream behavior.
|
// Master-switch defaults to true; set false to restore upstream behavior.
|
||||||
public bool PrivacyFilterEnabled = true;
|
public bool PrivacyFilterEnabled = true;
|
||||||
@@ -67,23 +86,19 @@ public class Configuration : IPluginConfiguration
|
|||||||
// ChatTwo users skip it because the v6→v7 migration sets the flag.
|
// ChatTwo users skip it because the v6→v7 migration sets the flag.
|
||||||
public bool FirstRunCompleted;
|
public bool FirstRunCompleted;
|
||||||
|
|
||||||
// Hellion Chat global ImGui theme — applied to every plugin window in
|
|
||||||
// Plugin.Draw. Default ON; users who prefer the upstream Dalamud look
|
|
||||||
// can flip this off in the Privacy tab.
|
|
||||||
public bool HellionThemeEnabled = true;
|
|
||||||
|
|
||||||
// Window background opacity, 0.5–1.0. Lower values make the plugin
|
|
||||||
// panes more glass-like so the game shines through. Default 0.5
|
|
||||||
// matches the maintainer's daily-driver preference; users who want
|
|
||||||
// a less translucent look bump it up in Aussehen → Theme.
|
|
||||||
public float HellionThemeWindowOpacity = 0.5f;
|
|
||||||
|
|
||||||
// Use the bundled Exo 2 font (OFL-1.1) for the regular plugin font
|
// Use the bundled Exo 2 font (OFL-1.1) for the regular plugin font
|
||||||
// instead of whatever GlobalFontV2.FontId points at. Default ON so a
|
// instead of whatever GlobalFontV2.FontId points at. Default ON so a
|
||||||
// fresh install gets the Hellion typography out-of-the-box; flip OFF
|
// fresh install gets the Hellion typography out-of-the-box; flip OFF
|
||||||
// to fall back to the user's chosen system or Dalamud font.
|
// to fall back to the user's chosen system or Dalamud font.
|
||||||
public bool UseHellionFont = true;
|
public bool UseHellionFont = true;
|
||||||
|
|
||||||
|
// Cycle 1 of the plugin-integration roadmap. When Honorific is installed
|
||||||
|
// and reports a custom title, render it in the chat header above the
|
||||||
|
// message log. Auto-hides regardless when Honorific is missing or the
|
||||||
|
// active title is original/empty, so leaving this on is safe even for
|
||||||
|
// users who don't run Honorific.
|
||||||
|
public bool ShowHonorificTitleInHeader = true;
|
||||||
|
|
||||||
// Hellion Chat — Auto-Tell-Tabs. When enabled, an incoming or outgoing
|
// Hellion Chat — Auto-Tell-Tabs. When enabled, an incoming or outgoing
|
||||||
// /tell spawns a session-only tab dedicated to that conversation
|
// /tell spawns a session-only tab dedicated to that conversation
|
||||||
// partner. See spec: Hellion Chat Auto-Tell-Tabs Spec (Obsidian).
|
// partner. See spec: Hellion Chat Auto-Tell-Tabs Spec (Obsidian).
|
||||||
@@ -111,9 +126,24 @@ public class Configuration : IPluginConfiguration
|
|||||||
// Hellion Chat — v0.6.0 master switch for the pop-out input bar.
|
// Hellion Chat — v0.6.0 master switch for the pop-out input bar.
|
||||||
// Global on purpose: per-tab makes no sense for Auto-Tell-Tabs which
|
// Global on purpose: per-tab makes no sense for Auto-Tell-Tabs which
|
||||||
// are session-only and would force the user to re-enable it for every
|
// are session-only and would force the user to re-enable it for every
|
||||||
// new conversation. Default OFF so existing users see no behavior
|
// new conversation. Default flipped to ON in v0.6.1 (was OFF in v0.6.0)
|
||||||
// change after the v10→v11 migration.
|
// because tester feedback called the manual toggle "umständlich, wirkt
|
||||||
public bool PopOutInputEnabled;
|
// unfertig". v11 → v12 migration applies the same flip to existing users.
|
||||||
|
public bool PopOutInputEnabled = true;
|
||||||
|
|
||||||
|
// Hellion Chat — v0.6.1 One-Time-Hint-Banner that introduces the
|
||||||
|
// chat-header pop-out toolbar button and reminds about the pop-out
|
||||||
|
// input default flip. Set to true once the user dismisses the banner
|
||||||
|
// from the main chat window; never reset after that.
|
||||||
|
public bool SeenPopOutHeaderHint;
|
||||||
|
|
||||||
|
// Hellion Chat — v0.6.1 opt-in: when true, AutoTellTabsService.SpawnTempTab
|
||||||
|
// sets tab.PopOut = true on every new auto-tell tab so the conversation
|
||||||
|
// pops out as its own window directly. Closing the pop-out returns the
|
||||||
|
// tab to the sidebar via the standard Popout.OnClose() flow. Default OFF
|
||||||
|
// because the existing sidebar workflow is what most users (especially
|
||||||
|
// club greeters tracking many parallel tells) expect by default.
|
||||||
|
public bool AutoTellTabsOpenAsPopout;
|
||||||
|
|
||||||
public int GetRetentionDays(ChatType type)
|
public int GetRetentionDays(ChatType type)
|
||||||
{
|
{
|
||||||
@@ -130,6 +160,11 @@ public class Configuration : IPluginConfiguration
|
|||||||
public bool HideWhenUiHidden = true;
|
public bool HideWhenUiHidden = true;
|
||||||
public bool HideInLoadingScreens;
|
public bool HideInLoadingScreens;
|
||||||
public bool HideInBattle;
|
public bool HideInBattle;
|
||||||
|
// v1.2.1 — Default geflippt false → true. Hellion-UI im NG+-Menü
|
||||||
|
// versteckt zu halten ist konsistent mit den anderen Hide-Defaults
|
||||||
|
// (Cutscenes, Logged-out, UI-Hidden) — UI-out-of-the-way bei Story-
|
||||||
|
// Sequenzen.
|
||||||
|
public bool HideInNewGamePlusMenu = true;
|
||||||
public bool HideWhenInactive;
|
public bool HideWhenInactive;
|
||||||
public int InactivityHideTimeout = 10;
|
public int InactivityHideTimeout = 10;
|
||||||
public bool InactivityHideActiveDuringBattle = true;
|
public bool InactivityHideActiveDuringBattle = true;
|
||||||
@@ -144,7 +179,10 @@ public class Configuration : IPluginConfiguration
|
|||||||
public bool NativeItemTooltips = true;
|
public bool NativeItemTooltips = true;
|
||||||
public bool PrettierTimestamps = true;
|
public bool PrettierTimestamps = true;
|
||||||
public bool MoreCompactPretty;
|
public bool MoreCompactPretty;
|
||||||
public bool HideSameTimestamps;
|
// v1.2.1 — Default geflippt false → true. Wiederholte Zeitstempel
|
||||||
|
// innerhalb derselben Minute lesen sich als Rauschen; ein einziger
|
||||||
|
// Timestamp pro Minute reicht aus um die Konversation zu verorten.
|
||||||
|
public bool HideSameTimestamps = true;
|
||||||
public bool ShowNoviceNetwork;
|
public bool ShowNoviceNetwork;
|
||||||
// Hellion Chat — vertical sidebar tab layout reads better than the
|
// Hellion Chat — vertical sidebar tab layout reads better than the
|
||||||
// horizontal tab strip in the company of Auto-Tell-Tabs (a club
|
// horizontal tab strip in the company of Auto-Tell-Tabs (a club
|
||||||
@@ -171,7 +209,11 @@ public class Configuration : IPluginConfiguration
|
|||||||
public bool CollapseKeepUniqueLinks;
|
public bool CollapseKeepUniqueLinks;
|
||||||
public bool PlaySounds = true;
|
public bool PlaySounds = true;
|
||||||
public bool KeepInputFocus = true;
|
public bool KeepInputFocus = true;
|
||||||
public int MaxLinesToRender = 5_000; // 1-10000
|
// v1.2.1 — Default gesenkt 5000 → 2500. 5000 ist auf Mid-Range-
|
||||||
|
// Hardware bei langen Sessions spürbar langsamer (Card-Layout
|
||||||
|
// re-Layout pro Frame), 2500 deckt eine typische Stunde Chat ab
|
||||||
|
// und bleibt smooth. User die mehr brauchen können bis 10000 hoch.
|
||||||
|
public int MaxLinesToRender = 2_500; // 1-10000
|
||||||
// Default ON to match a German / European 24h locale. The
|
// Default ON to match a German / European 24h locale. The
|
||||||
// ChatLogWindow.cs format-flip in v0.5.1 honours this strictly via
|
// ChatLogWindow.cs format-flip in v0.5.1 honours this strictly via
|
||||||
// CultureInfo.InvariantCulture so the result is consistent across
|
// CultureInfo.InvariantCulture so the result is consistent across
|
||||||
@@ -204,12 +246,24 @@ public class Configuration : IPluginConfiguration
|
|||||||
};
|
};
|
||||||
|
|
||||||
public float TooltipOffset;
|
public float TooltipOffset;
|
||||||
public float WindowAlpha = 100f;
|
// v1.2.1 — Default-Chat-Farben sind das Hellion-Brand-Preset. Der
|
||||||
public Dictionary<ChatType, uint> ChatColours = new();
|
// First-Run-Wizard bietet keine Theme-/Preset-Wahl an, daher kriegen
|
||||||
public List<Tab> Tabs = [];
|
// neue User die Hellion-Brand-Farben out-of-the-box (Cyan-Familie für
|
||||||
|
// Standard/Tell, Ember/Warning für laute Channels). Bestand-User mit
|
||||||
|
// leerem ChatColours-Dict werden durch die v15→v16-Migration auf das
|
||||||
|
// Preset gehoben; User die bereits Custom-Farben haben, bleiben.
|
||||||
|
public Dictionary<ChatType, uint> ChatColours = BuildDefaultChatColours();
|
||||||
|
|
||||||
public bool OverrideStyle;
|
private static Dictionary<ChatType, uint> BuildDefaultChatColours()
|
||||||
public string? ChosenStyle;
|
{
|
||||||
|
var defaults = new Dictionary<ChatType, uint>();
|
||||||
|
foreach (var (channel, colour) in HellionChat.Resources.ChatColourPresets.All["Hellion"].Colours)
|
||||||
|
defaults[channel] = colour;
|
||||||
|
return defaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool ColorSelectedInputChannelButton = true;
|
||||||
|
public List<Tab> Tabs = [];
|
||||||
|
|
||||||
public ConfigKeyBind? ChatTabForward;
|
public ConfigKeyBind? ChatTabForward;
|
||||||
public ConfigKeyBind? ChatTabBackward;
|
public ConfigKeyBind? ChatTabBackward;
|
||||||
@@ -226,6 +280,7 @@ public class Configuration : IPluginConfiguration
|
|||||||
HideWhenUiHidden = other.HideWhenUiHidden;
|
HideWhenUiHidden = other.HideWhenUiHidden;
|
||||||
HideInLoadingScreens = other.HideInLoadingScreens;
|
HideInLoadingScreens = other.HideInLoadingScreens;
|
||||||
HideInBattle = other.HideInBattle;
|
HideInBattle = other.HideInBattle;
|
||||||
|
HideInNewGamePlusMenu = other.HideInNewGamePlusMenu;
|
||||||
HideWhenInactive = other.HideWhenInactive;
|
HideWhenInactive = other.HideWhenInactive;
|
||||||
InactivityHideTimeout = other.InactivityHideTimeout;
|
InactivityHideTimeout = other.InactivityHideTimeout;
|
||||||
InactivityHideActiveDuringBattle = other.InactivityHideActiveDuringBattle;
|
InactivityHideActiveDuringBattle = other.InactivityHideActiveDuringBattle;
|
||||||
@@ -261,7 +316,10 @@ public class Configuration : IPluginConfiguration
|
|||||||
MaxLinesToRender = other.MaxLinesToRender;
|
MaxLinesToRender = other.MaxLinesToRender;
|
||||||
Use24HourClock = other.Use24HourClock;
|
Use24HourClock = other.Use24HourClock;
|
||||||
ShowEmotes = other.ShowEmotes;
|
ShowEmotes = other.ShowEmotes;
|
||||||
BlockedEmotes = other.BlockedEmotes;
|
// Deep-copy the set so the live and mutable Configuration instances don't share state
|
||||||
|
// — a HashSet reference assignment would cause edits in the settings window to leak
|
||||||
|
// into the live config before the user clicks Save.
|
||||||
|
BlockedEmotes = new HashSet<string>(other.BlockedEmotes);
|
||||||
FontsEnabled = other.FontsEnabled;
|
FontsEnabled = other.FontsEnabled;
|
||||||
ItalicEnabled = other.ItalicEnabled;
|
ItalicEnabled = other.ItalicEnabled;
|
||||||
ExtraGlyphRanges = other.ExtraGlyphRanges;
|
ExtraGlyphRanges = other.ExtraGlyphRanges;
|
||||||
@@ -271,21 +329,42 @@ public class Configuration : IPluginConfiguration
|
|||||||
ItalicFontV2 = other.ItalicFontV2;
|
ItalicFontV2 = other.ItalicFontV2;
|
||||||
SymbolsFontSizeV2 = other.SymbolsFontSizeV2;
|
SymbolsFontSizeV2 = other.SymbolsFontSizeV2;
|
||||||
TooltipOffset = other.TooltipOffset;
|
TooltipOffset = other.TooltipOffset;
|
||||||
WindowAlpha = other.WindowAlpha;
|
|
||||||
ChatColours = other.ChatColours.ToDictionary(entry => entry.Key, entry => entry.Value);
|
ChatColours = other.ChatColours.ToDictionary(entry => entry.Key, entry => entry.Value);
|
||||||
|
ColorSelectedInputChannelButton = other.ColorSelectedInputChannelButton;
|
||||||
|
|
||||||
// Hellion Chat — Auto-Tell-Tabs are session-only and therefore
|
// Hellion Chat — Auto-Tell-Tabs are session-only and therefore
|
||||||
// never present in a disk-loaded copy. Keep the live temp tabs of
|
// never present in a disk-loaded copy. Keep the live temp tabs of
|
||||||
// *this* configuration alive across an UpdateFrom so a settings
|
// *this* configuration alive across an UpdateFrom so a settings
|
||||||
// save (or sidebar-mode toggle) does not silently destroy the
|
// save (or sidebar-mode toggle) does not silently destroy the
|
||||||
// user's open tell conversations. Persistent tabs from `other`
|
// user's open tell conversations.
|
||||||
// still get the regular clone-replace treatment.
|
//
|
||||||
|
// For persistent tabs we go through Tab.Clone() which intentionally
|
||||||
|
// does NOT copy the NonSerialized Messages list (avoids shared
|
||||||
|
// mutable state on disk-load). On a settings save that means the
|
||||||
|
// chat history for every persistent tab would be wiped — bug
|
||||||
|
// reported by Flo 2026-05-05. We work around it by capturing the
|
||||||
|
// live MessageList (and LastSendUnread counter) by Identifier
|
||||||
|
// before the replace, then restoring it onto the freshly cloned
|
||||||
|
// tabs whose Identifier survives Tab.Clone(). New tabs added in
|
||||||
|
// settings get a fresh empty MessageList; deleted tabs lose their
|
||||||
|
// history (intended).
|
||||||
var liveTempTabs = Tabs.Where(t => t.IsTempTab).ToList();
|
var liveTempTabs = Tabs.Where(t => t.IsTempTab).ToList();
|
||||||
Tabs = other.Tabs.Where(t => !t.IsTempTab).Select(t => t.Clone()).ToList();
|
var livePersistentSession = Tabs
|
||||||
|
.Where(t => !t.IsTempTab)
|
||||||
|
.ToDictionary(t => t.Identifier, t => (t.Messages, t.LastSendUnread));
|
||||||
|
|
||||||
|
Tabs = other.Tabs.Where(t => !t.IsTempTab).Select(t =>
|
||||||
|
{
|
||||||
|
var clone = t.Clone();
|
||||||
|
if (livePersistentSession.TryGetValue(clone.Identifier, out var live))
|
||||||
|
{
|
||||||
|
clone.Messages = live.Messages;
|
||||||
|
clone.LastSendUnread = live.LastSendUnread;
|
||||||
|
}
|
||||||
|
return clone;
|
||||||
|
}).ToList();
|
||||||
Tabs.AddRange(liveTempTabs);
|
Tabs.AddRange(liveTempTabs);
|
||||||
|
|
||||||
OverrideStyle = other.OverrideStyle;
|
|
||||||
ChosenStyle = other.ChosenStyle;
|
|
||||||
ChatTabForward = other.ChatTabForward;
|
ChatTabForward = other.ChatTabForward;
|
||||||
ChatTabBackward = other.ChatTabBackward;
|
ChatTabBackward = other.ChatTabBackward;
|
||||||
|
|
||||||
@@ -299,9 +378,14 @@ public class Configuration : IPluginConfiguration
|
|||||||
RetentionLastRunAt = other.RetentionLastRunAt;
|
RetentionLastRunAt = other.RetentionLastRunAt;
|
||||||
|
|
||||||
FirstRunCompleted = other.FirstRunCompleted;
|
FirstRunCompleted = other.FirstRunCompleted;
|
||||||
HellionThemeEnabled = other.HellionThemeEnabled;
|
|
||||||
HellionThemeWindowOpacity = other.HellionThemeWindowOpacity;
|
|
||||||
UseHellionFont = other.UseHellionFont;
|
UseHellionFont = other.UseHellionFont;
|
||||||
|
ShowHonorificTitleInHeader = other.ShowHonorificTitleInHeader;
|
||||||
|
|
||||||
|
// v1.1.0 theme engine fields
|
||||||
|
Theme = other.Theme;
|
||||||
|
WindowOpacity = other.WindowOpacity;
|
||||||
|
ReduceMotion = other.ReduceMotion;
|
||||||
|
UseCompactDensity = other.UseCompactDensity;
|
||||||
|
|
||||||
EnableAutoTellTabs = other.EnableAutoTellTabs;
|
EnableAutoTellTabs = other.EnableAutoTellTabs;
|
||||||
AutoTellTabsLimit = other.AutoTellTabsLimit;
|
AutoTellTabsLimit = other.AutoTellTabsLimit;
|
||||||
@@ -311,6 +395,8 @@ public class Configuration : IPluginConfiguration
|
|||||||
|
|
||||||
SeenPopOutInputHint = other.SeenPopOutInputHint;
|
SeenPopOutInputHint = other.SeenPopOutInputHint;
|
||||||
PopOutInputEnabled = other.PopOutInputEnabled;
|
PopOutInputEnabled = other.PopOutInputEnabled;
|
||||||
|
SeenPopOutHeaderHint = other.SeenPopOutHeaderHint;
|
||||||
|
AutoTellTabsOpenAsPopout = other.AutoTellTabsOpenAsPopout;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -346,6 +432,11 @@ public class Tab
|
|||||||
{
|
{
|
||||||
public string Name = Language.Tab_DefaultName;
|
public string Name = Language.Tab_DefaultName;
|
||||||
|
|
||||||
|
// v1.2.0 — optionaler FontAwesome-Glyph-Name. Null bedeutet:
|
||||||
|
// Default-Mapping aus TabIconMapping greift (basiert auf Tab-Name).
|
||||||
|
// User können hier per Settings → Tabs einen eigenen Glyph setzen.
|
||||||
|
public string? Icon = null;
|
||||||
|
|
||||||
[Obsolete("Removed in favor of SelectedChannels")]
|
[Obsolete("Removed in favor of SelectedChannels")]
|
||||||
public Dictionary<ChatType, ChatSource> ChatCodes = new();
|
public Dictionary<ChatType, ChatSource> ChatCodes = new();
|
||||||
|
|
||||||
@@ -550,6 +641,20 @@ public class Tab
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Aktuelle Anzahl der gespeicherten Messages. Lock-acquire pro Read
|
||||||
|
/// ist OK für 1×/sec Status-Bar-Polling (v1.2.0).
|
||||||
|
/// </summary>
|
||||||
|
public int Count
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
LockSlim.Wait(-1);
|
||||||
|
try { return Messages.Count; }
|
||||||
|
finally { LockSlim.Release(); }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns an array copy of the message list for usage outside of main thread
|
/// Returns an array copy of the message list for usage outside of main thread
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -8,7 +8,7 @@ using Dalamud.Bindings.ImGui;
|
|||||||
using SixLabors.ImageSharp;
|
using SixLabors.ImageSharp;
|
||||||
using SixLabors.ImageSharp.PixelFormats;
|
using SixLabors.ImageSharp.PixelFormats;
|
||||||
|
|
||||||
namespace ChatTwo;
|
namespace HellionChat;
|
||||||
|
|
||||||
public static class EmoteCache
|
public static class EmoteCache
|
||||||
{
|
{
|
||||||
@@ -66,16 +66,29 @@ public static class EmoteCache
|
|||||||
|
|
||||||
public static string[] SortedCodeArray = [];
|
public static string[] SortedCodeArray = [];
|
||||||
|
|
||||||
|
// Plugin-scoped cancellation source for in-flight emote loads. Dispose
|
||||||
|
// cancels every running download/texture-create so the workers don't
|
||||||
|
// touch a torn-down TextureProvider on plugin reload. Replaced with a
|
||||||
|
// fresh source on the next LoadData() call so a re-enable still works.
|
||||||
|
private static CancellationTokenSource Cts = new();
|
||||||
|
internal static CancellationToken Token => Cts.Token;
|
||||||
|
|
||||||
public static async Task LoadData()
|
public static async Task LoadData()
|
||||||
{
|
{
|
||||||
if (State is not LoadingState.Unloaded)
|
if (State is not LoadingState.Unloaded)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
// Refresh the CTS in case Dispose was called and we're being re-enabled
|
||||||
|
// in the same process (Dalamud /xlplugins toggle).
|
||||||
|
if (Cts.IsCancellationRequested)
|
||||||
|
Cts = new CancellationTokenSource();
|
||||||
|
|
||||||
State = LoadingState.Loading;
|
State = LoadingState.Loading;
|
||||||
|
var ct = Cts.Token;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var global = await Client.GetAsync(GlobalEmotes);
|
var global = await Client.GetAsync(GlobalEmotes, ct);
|
||||||
var globalList = await global.Content.ReadAsStringAsync();
|
var globalList = await global.Content.ReadAsStringAsync(ct);
|
||||||
|
|
||||||
foreach (var emote in JsonSerializer.Deserialize<Emote[]>(globalList)!)
|
foreach (var emote in JsonSerializer.Deserialize<Emote[]>(globalList)!)
|
||||||
if (!string.IsNullOrEmpty(emote.Code) && !NotWorking.Contains(emote.Code))
|
if (!string.IsNullOrEmpty(emote.Code) && !NotWorking.Contains(emote.Code))
|
||||||
@@ -84,8 +97,8 @@ public static class EmoteCache
|
|||||||
var lastId = string.Empty;
|
var lastId = string.Empty;
|
||||||
for (var i = 0; i < 15; i++)
|
for (var i = 0; i < 15; i++)
|
||||||
{
|
{
|
||||||
var top = await Client.GetAsync(Top100Emotes.Format(BetterTTV, lastId));
|
var top = await Client.GetAsync(Top100Emotes.Format(BetterTTV, lastId), ct);
|
||||||
var topList = await top.Content.ReadAsStringAsync();
|
var topList = await top.Content.ReadAsStringAsync(ct);
|
||||||
|
|
||||||
var jsonList = JsonSerializer.Deserialize<List<Top100>>(topList)!;
|
var jsonList = JsonSerializer.Deserialize<List<Top100>>(topList)!;
|
||||||
// BetterTTV occasionally returns entries with a null Code; the
|
// BetterTTV occasionally returns entries with a null Code; the
|
||||||
@@ -103,6 +116,12 @@ public static class EmoteCache
|
|||||||
SortedCodeArray = Cache.Keys.Order().ToArray();
|
SortedCodeArray = Cache.Keys.Order().ToArray();
|
||||||
State = LoadingState.Done;
|
State = LoadingState.Done;
|
||||||
}
|
}
|
||||||
|
catch (OperationCanceledException)
|
||||||
|
{
|
||||||
|
// Plugin disposed while the cache was loading; leave State on
|
||||||
|
// Loading so a subsequent re-enable can re-issue LoadData with
|
||||||
|
// a fresh CTS (handled above).
|
||||||
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
// Reset to Unloaded so a later trigger (e.g. the user reopening
|
// Reset to Unloaded so a later trigger (e.g. the user reopening
|
||||||
@@ -116,6 +135,10 @@ public static class EmoteCache
|
|||||||
|
|
||||||
public static void Dispose()
|
public static void Dispose()
|
||||||
{
|
{
|
||||||
|
// Cancel in-flight downloads / texture creates so the async-void
|
||||||
|
// Load methods bail out before they touch a disposed TextureProvider.
|
||||||
|
Cts.Cancel();
|
||||||
|
|
||||||
foreach (var emote in EmoteImages.Values)
|
foreach (var emote in EmoteImages.Values)
|
||||||
emote.InnerDispose();
|
emote.InnerDispose();
|
||||||
}
|
}
|
||||||
@@ -171,7 +194,7 @@ public static class EmoteCache
|
|||||||
ImGui.Image(Texture!.Handle, size);
|
ImGui.Image(Texture!.Handle, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
internal async Task<byte[]> LoadAsync(Emote emote)
|
internal async Task<byte[]> LoadAsync(Emote emote, CancellationToken ct)
|
||||||
{
|
{
|
||||||
// BetterTTV-supplied Id and ImageType are interpolated straight
|
// BetterTTV-supplied Id and ImageType are interpolated straight
|
||||||
// into the filename. HTTPS protects the wire, but a compromised
|
// into the filename. HTTPS protects the wire, but a compromised
|
||||||
@@ -188,15 +211,15 @@ public static class EmoteCache
|
|||||||
|
|
||||||
if (File.Exists(filePath))
|
if (File.Exists(filePath))
|
||||||
{
|
{
|
||||||
RawData = await File.ReadAllBytesAsync(filePath);
|
RawData = await File.ReadAllBytesAsync(filePath, ct);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
var content = await new HttpClient().GetAsync(EmotePath.Format(emote.Id));
|
var content = await Client.GetAsync(EmotePath.Format(emote.Id), ct);
|
||||||
RawData = await content.Content.ReadAsByteArrayAsync();
|
RawData = await content.Content.ReadAsByteArrayAsync(ct);
|
||||||
|
|
||||||
await using var stream = new FileStream(filePath, FileMode.Create, FileAccess.Write, FileShare.Read);
|
await using var stream = new FileStream(filePath, FileMode.Create, FileAccess.Write, FileShare.Read);
|
||||||
stream.Write(RawData, 0, RawData.Length);
|
await stream.WriteAsync(RawData, ct);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RawData;
|
return RawData;
|
||||||
@@ -209,21 +232,28 @@ public static class EmoteCache
|
|||||||
{
|
{
|
||||||
public ImGuiEmote Prepare(Emote emote)
|
public ImGuiEmote Prepare(Emote emote)
|
||||||
{
|
{
|
||||||
Task.Run(() => Load(emote));
|
var ct = EmoteCache.Token;
|
||||||
|
Task.Run(() => Load(emote, ct), ct);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
private async void Load(Emote emote)
|
private async void Load(Emote emote, CancellationToken ct)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var image = await LoadAsync(emote);
|
var image = await LoadAsync(emote, ct);
|
||||||
if (image.Length <= 0)
|
if (image.Length <= 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Texture = await Plugin.TextureProvider.CreateFromImageAsync(image);
|
ct.ThrowIfCancellationRequested();
|
||||||
|
Texture = await Plugin.TextureProvider.CreateFromImageAsync(image, cancellationToken: ct);
|
||||||
IsLoaded = true;
|
IsLoaded = true;
|
||||||
}
|
}
|
||||||
|
catch (OperationCanceledException)
|
||||||
|
{
|
||||||
|
// Plugin disposed mid-load; the EmoteImages entry is also
|
||||||
|
// being torn down, no extra cleanup needed.
|
||||||
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
Failed = true;
|
Failed = true;
|
||||||
@@ -279,15 +309,16 @@ public static class EmoteCache
|
|||||||
|
|
||||||
public ImGuiGif Prepare(Emote emote)
|
public ImGuiGif Prepare(Emote emote)
|
||||||
{
|
{
|
||||||
Task.Run(() => Load(emote));
|
var ct = EmoteCache.Token;
|
||||||
|
Task.Run(() => Load(emote, ct), ct);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
private async void Load(Emote emote)
|
private async void Load(Emote emote, CancellationToken ct)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var image = await LoadAsync(emote);
|
var image = await LoadAsync(emote, ct);
|
||||||
if (image.Length <= 0)
|
if (image.Length <= 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@@ -299,6 +330,8 @@ public static class EmoteCache
|
|||||||
var frames = new List<(IDalamudTextureWrap Tex, float Delay)>();
|
var frames = new List<(IDalamudTextureWrap Tex, float Delay)>();
|
||||||
foreach (var frame in img.Frames)
|
foreach (var frame in img.Frames)
|
||||||
{
|
{
|
||||||
|
ct.ThrowIfCancellationRequested();
|
||||||
|
|
||||||
var delay = frame.Metadata.GetGifMetadata().FrameDelay / 100f;
|
var delay = frame.Metadata.GetGifMetadata().FrameDelay / 100f;
|
||||||
|
|
||||||
// Follows the same pattern as browsers, anything under 0.02s delay will be rounded up to 0.1s
|
// Follows the same pattern as browsers, anything under 0.02s delay will be rounded up to 0.1s
|
||||||
@@ -307,13 +340,21 @@ public static class EmoteCache
|
|||||||
|
|
||||||
var buffer = new byte[4 * frame.Width * frame.Height];
|
var buffer = new byte[4 * frame.Width * frame.Height];
|
||||||
frame.CopyPixelDataTo(buffer);
|
frame.CopyPixelDataTo(buffer);
|
||||||
var tex = await Plugin.TextureProvider.CreateFromRawAsync(RawImageSpecification.Rgba32(frame.Width, frame.Height), buffer);
|
var tex = await Plugin.TextureProvider.CreateFromRawAsync(RawImageSpecification.Rgba32(frame.Width, frame.Height), buffer, cancellationToken: ct);
|
||||||
frames.Add((tex, delay));
|
frames.Add((tex, delay));
|
||||||
}
|
}
|
||||||
|
|
||||||
Frames = frames;
|
Frames = frames;
|
||||||
IsLoaded = true;
|
IsLoaded = true;
|
||||||
}
|
}
|
||||||
|
catch (OperationCanceledException)
|
||||||
|
{
|
||||||
|
// Plugin disposed mid-load; partial frames are released by
|
||||||
|
// InnerDispose on the next dispose pass.
|
||||||
|
foreach (var f in Frames)
|
||||||
|
f.Texture.Dispose();
|
||||||
|
Frames = [];
|
||||||
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
Failed = true;
|
Failed = true;
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using ChatTwo.Code;
|
using HellionChat.Code;
|
||||||
|
|
||||||
namespace ChatTwo.Export;
|
namespace HellionChat.Export;
|
||||||
|
|
||||||
internal enum ExportFormat
|
internal enum ExportFormat
|
||||||
{
|
{
|
||||||
@@ -6,7 +6,7 @@ using Dalamud.Interface.ManagedFontAtlas;
|
|||||||
using Dalamud.Interface.Utility;
|
using Dalamud.Interface.Utility;
|
||||||
using Dalamud.Bindings.ImGui;
|
using Dalamud.Bindings.ImGui;
|
||||||
|
|
||||||
namespace ChatTwo;
|
namespace HellionChat;
|
||||||
|
|
||||||
public class FontManager
|
public class FontManager
|
||||||
{
|
{
|
||||||
@@ -18,8 +18,6 @@ public class FontManager
|
|||||||
|
|
||||||
internal IFontHandle FontAwesome = null!;
|
internal IFontHandle FontAwesome = null!;
|
||||||
|
|
||||||
internal readonly byte[] GameSymFont;
|
|
||||||
|
|
||||||
private ushort[] Ranges = [];
|
private ushort[] Ranges = [];
|
||||||
private ushort[] JpRange = [];
|
private ushort[] JpRange = [];
|
||||||
|
|
||||||
@@ -30,25 +28,6 @@ public class FontManager
|
|||||||
36f, 40f, 45f, 46f, 68f, 90f,
|
36f, 40f, 45f, 46f, 68f, 90f,
|
||||||
];
|
];
|
||||||
|
|
||||||
public FontManager()
|
|
||||||
{
|
|
||||||
var filePath = Path.Combine(Plugin.Interface.ConfigDirectory.FullName, "FFXIV_Lodestone_SSF.ttf");
|
|
||||||
if (File.Exists(filePath))
|
|
||||||
{
|
|
||||||
GameSymFont = File.ReadAllBytes(filePath);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
GameSymFont = new HttpClient().GetAsync("https://img.finalfantasyxiv.com/lds/pc/global/fonts/FFXIV_Lodestone_SSF.ttf")
|
|
||||||
.Result
|
|
||||||
.Content
|
|
||||||
.ReadAsByteArrayAsync()
|
|
||||||
.Result;
|
|
||||||
|
|
||||||
Dalamud.Utility.FilesystemUtil.WriteAllBytesSafe(filePath, GameSymFont);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Backing bytes for the bundled Hellion font (Exo 2, OFL-1.1). Lazily
|
/// Backing bytes for the bundled Hellion font (Exo 2, OFL-1.1). Lazily
|
||||||
/// extracted from the assembly's manifest resources on first use; the
|
/// extracted from the assembly's manifest resources on first use; the
|
||||||
@@ -141,7 +120,16 @@ public class FontManager
|
|||||||
e => e.OnPreBuild(
|
e => e.OnPreBuild(
|
||||||
tk =>
|
tk =>
|
||||||
{
|
{
|
||||||
var config = new SafeFontConfig {SizePt = Plugin.Config.GlobalFontV2.SizePt, GlyphRanges = Ranges};
|
// v1.2.0 — Bei aktiver Hellion-Schrift (Exo 2 ist Variable-Font)
|
||||||
|
// wird die User-Schriftgröße aus FontSizeV2 als SizePt angewendet.
|
||||||
|
// Der Bestand-Pfad nutzt weiter GlobalFontV2.SizePt aus dem
|
||||||
|
// Custom-Font-Stack. Ohne diese Verzweigung war FontSizeV2 bei
|
||||||
|
// UseHellionFont=true wirkungslos, was 4K-User mit größerer
|
||||||
|
// Skalierung blockierte (Settings → Erscheinungsbild → Schriftarten).
|
||||||
|
var basePt = Plugin.Config.UseHellionFont
|
||||||
|
? Plugin.Config.FontSizeV2
|
||||||
|
: Plugin.Config.GlobalFontV2.SizePt;
|
||||||
|
var config = new SafeFontConfig {SizePt = basePt, GlyphRanges = Ranges};
|
||||||
config.MergeFont = Plugin.Config.UseHellionFont
|
config.MergeFont = Plugin.Config.UseHellionFont
|
||||||
? tk.AddFontFromMemory(GetHellionFontBytes(), config, "Hellion-Exo2")
|
? tk.AddFontFromMemory(GetHellionFontBytes(), config, "Hellion-Exo2")
|
||||||
: AddFontWithFallback(tk, Plugin.Config.GlobalFontV2.FontId, config, "global");
|
: AddFontWithFallback(tk, Plugin.Config.GlobalFontV2.FontId, config, "global");
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using ChatTwo.Code;
|
using HellionChat.Code;
|
||||||
using ChatTwo.GameFunctions.Types;
|
using HellionChat.GameFunctions.Types;
|
||||||
using ChatTwo.Resources;
|
using HellionChat.Resources;
|
||||||
using ChatTwo.Util;
|
using HellionChat.Util;
|
||||||
using Dalamud.Game.Config;
|
using Dalamud.Game.Config;
|
||||||
using Dalamud.Game.Text.SeStringHandling;
|
using Dalamud.Game.Text.SeStringHandling;
|
||||||
using Dalamud.Hooking;
|
using Dalamud.Hooking;
|
||||||
@@ -22,7 +22,7 @@ using Lumina.Text.ReadOnly;
|
|||||||
|
|
||||||
using ValueType = FFXIVClientStructs.FFXIV.Component.GUI.AtkValueType;
|
using ValueType = FFXIVClientStructs.FFXIV.Component.GUI.AtkValueType;
|
||||||
|
|
||||||
namespace ChatTwo.GameFunctions;
|
namespace HellionChat.GameFunctions;
|
||||||
|
|
||||||
internal sealed unsafe class Chat : IDisposable
|
internal sealed unsafe class Chat : IDisposable
|
||||||
{
|
{
|
||||||
@@ -252,7 +252,7 @@ internal sealed unsafe class Chat : IDisposable
|
|||||||
{
|
{
|
||||||
playerName = SeString.Parse(agent->TellPlayerName).TextValue;
|
playerName = SeString.Parse(agent->TellPlayerName).TextValue;
|
||||||
worldId = agent->TellWorldId;
|
worldId = agent->TellWorldId;
|
||||||
Plugin.Log.Debug($"Detected tell target '{playerName}'@{worldId}");
|
Plugin.Log.Debug($"Detected tell target '[redacted]'@{worldId}");
|
||||||
}
|
}
|
||||||
|
|
||||||
Plugin.CurrentTab.CurrentChannel = new UsedChannel
|
Plugin.CurrentTab.CurrentChannel = new UsedChannel
|
||||||
@@ -400,7 +400,9 @@ internal sealed unsafe class Chat : IDisposable
|
|||||||
}
|
}
|
||||||
|
|
||||||
var idx = RotateLinkshell(currentIndex, rotate, channel == InputChannel.Linkshell1 ? ValidLinkshell : ValidCrossLinkshell);
|
var idx = RotateLinkshell(currentIndex, rotate, channel == InputChannel.Linkshell1 ? ValidLinkshell : ValidCrossLinkshell);
|
||||||
return channel + idx;
|
// RotateLinkshell returns null when no valid linkshell is found within 8 iterations.
|
||||||
|
// Forward the null so the caller can keep the existing channel instead of crashing on nullable arithmetic.
|
||||||
|
return idx is null ? null : channel + idx.Value;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
return channel;
|
return channel;
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using ChatTwo.Resources;
|
using HellionChat.Resources;
|
||||||
using Dalamud.Memory;
|
using Dalamud.Memory;
|
||||||
using FFXIVClientStructs.FFXIV.Client.System.String;
|
using FFXIVClientStructs.FFXIV.Client.System.String;
|
||||||
using FFXIVClientStructs.FFXIV.Client.UI;
|
using FFXIVClientStructs.FFXIV.Client.UI;
|
||||||
|
|
||||||
namespace ChatTwo.GameFunctions;
|
namespace HellionChat.GameFunctions;
|
||||||
|
|
||||||
public unsafe class ChatBox
|
public unsafe class ChatBox
|
||||||
{
|
{
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
using ChatTwo.Util;
|
using HellionChat.Util;
|
||||||
using FFXIVClientStructs.FFXIV.Client.UI.Agent;
|
using FFXIVClientStructs.FFXIV.Client.UI.Agent;
|
||||||
using FFXIVClientStructs.FFXIV.Client.UI.Info;
|
using FFXIVClientStructs.FFXIV.Client.UI.Info;
|
||||||
using FFXIVClientStructs.FFXIV.Client.UI.Misc;
|
using FFXIVClientStructs.FFXIV.Client.UI.Misc;
|
||||||
|
|
||||||
namespace ChatTwo.GameFunctions;
|
namespace HellionChat.GameFunctions;
|
||||||
|
|
||||||
internal sealed unsafe class Context
|
internal sealed unsafe class Context
|
||||||
{
|
{
|
||||||
+23
-3
@@ -16,10 +16,12 @@ using Lumina.Excel;
|
|||||||
using Lumina.Excel.Sheets;
|
using Lumina.Excel.Sheets;
|
||||||
using ValueType = FFXIVClientStructs.FFXIV.Component.GUI.AtkValueType;
|
using ValueType = FFXIVClientStructs.FFXIV.Component.GUI.AtkValueType;
|
||||||
|
|
||||||
namespace ChatTwo.GameFunctions;
|
namespace HellionChat.GameFunctions;
|
||||||
|
|
||||||
internal unsafe class GameFunctions : IDisposable
|
internal unsafe class GameFunctions : IDisposable
|
||||||
{
|
{
|
||||||
|
internal const string NewGamePlusAddonName = "QuestRedo";
|
||||||
|
|
||||||
#region Hooks
|
#region Hooks
|
||||||
[Signature("E8 ?? ?? ?? ?? 48 85 C0 0F 84 ?? ?? ?? ?? 48 8B D0 49 8D 4F", DetourName = nameof(ResolveTextCommandPlaceholderDetour))]
|
[Signature("E8 ?? ?? ?? ?? 48 85 C0 0F 84 ?? ?? ?? ?? 48 8B D0 49 8D 4F", DetourName = nameof(ResolveTextCommandPlaceholderDetour))]
|
||||||
private Hook<ResolveTextCommandPlaceholderDelegate>? ResolveTextCommandPlaceholderHook = null!;
|
private Hook<ResolveTextCommandPlaceholderDelegate>? ResolveTextCommandPlaceholderHook = null!;
|
||||||
@@ -243,15 +245,33 @@ internal unsafe class GameFunctions : IDisposable
|
|||||||
vf0(agent, &result, &value, 0, 0);
|
vf0(agent, &result, &value, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
private readonly nint PlaceholderNamePtr = Marshal.AllocHGlobal(128);
|
private const int PlaceholderBufferSize = 128;
|
||||||
|
private readonly nint PlaceholderNamePtr = Marshal.AllocHGlobal(PlaceholderBufferSize);
|
||||||
private readonly string Placeholder = $"<{Guid.NewGuid():N}>";
|
private readonly string Placeholder = $"<{Guid.NewGuid():N}>";
|
||||||
private string? ReplacementName;
|
private string? ReplacementName;
|
||||||
|
|
||||||
private nint ResolveTextCommandPlaceholderDetour(nint a1, byte* placeholderText, byte a3, byte a4)
|
private nint ResolveTextCommandPlaceholderDetour(nint a1, byte* placeholderText, byte a3, byte a4)
|
||||||
{
|
{
|
||||||
|
// The detour is only invoked through the hook, so the hook should
|
||||||
|
// never be null here, but the nullable field declaration forces us
|
||||||
|
// to handle the theoretical race during teardown.
|
||||||
|
if (ResolveTextCommandPlaceholderHook is null)
|
||||||
|
return nint.Zero;
|
||||||
|
|
||||||
var placeholder = MemoryHelper.ReadStringNullTerminated((nint) placeholderText);
|
var placeholder = MemoryHelper.ReadStringNullTerminated((nint) placeholderText);
|
||||||
if (ReplacementName == null || placeholder != Placeholder)
|
if (ReplacementName == null || placeholder != Placeholder)
|
||||||
return ResolveTextCommandPlaceholderHook!.Original(a1, placeholderText, a3, a4);
|
return ResolveTextCommandPlaceholderHook.Original(a1, placeholderText, a3, a4);
|
||||||
|
|
||||||
|
// The fixed buffer is 128 bytes; UTF-8 + null-terminator must fit.
|
||||||
|
// FFXIV player names plus an @World suffix should never approach this
|
||||||
|
// limit, but a malformed ReplacementName must not overflow the buffer.
|
||||||
|
var byteCount = System.Text.Encoding.UTF8.GetByteCount(ReplacementName);
|
||||||
|
if (byteCount >= PlaceholderBufferSize)
|
||||||
|
{
|
||||||
|
Plugin.Log.Warning($"Replacement name too long for placeholder buffer ({byteCount} bytes >= {PlaceholderBufferSize}); falling back to original.");
|
||||||
|
ReplacementName = null;
|
||||||
|
return ResolveTextCommandPlaceholderHook.Original(a1, placeholderText, a3, a4);
|
||||||
|
}
|
||||||
|
|
||||||
MemoryHelper.WriteString(PlaceholderNamePtr, ReplacementName);
|
MemoryHelper.WriteString(PlaceholderNamePtr, ReplacementName);
|
||||||
ReplacementName = null;
|
ReplacementName = null;
|
||||||
+5
-5
@@ -1,16 +1,16 @@
|
|||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using ChatTwo.Code;
|
using HellionChat.Code;
|
||||||
using ChatTwo.GameFunctions.Types;
|
using HellionChat.GameFunctions.Types;
|
||||||
using ChatTwo.Util;
|
using HellionChat.Util;
|
||||||
using Dalamud.Game.ClientState.Keys;
|
using Dalamud.Game.ClientState.Keys;
|
||||||
using Dalamud.Game.Config;
|
using Dalamud.Game.Config;
|
||||||
using Dalamud.Plugin.Services;
|
using Dalamud.Plugin.Services;
|
||||||
using FFXIVClientStructs.FFXIV.Client.System.String;
|
using FFXIVClientStructs.FFXIV.Client.System.String;
|
||||||
using FFXIVClientStructs.FFXIV.Client.UI;
|
using FFXIVClientStructs.FFXIV.Client.UI;
|
||||||
using Dalamud.Bindings.ImGui;
|
using Dalamud.Bindings.ImGui;
|
||||||
using ModifierFlag = ChatTwo.GameFunctions.Types.ModifierFlag;
|
using ModifierFlag = HellionChat.GameFunctions.Types.ModifierFlag;
|
||||||
|
|
||||||
namespace ChatTwo.GameFunctions;
|
namespace HellionChat.GameFunctions;
|
||||||
|
|
||||||
internal enum KeyboardSource {
|
internal enum KeyboardSource {
|
||||||
Game,
|
Game,
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
using ChatTwo.Resources;
|
using HellionChat.Resources;
|
||||||
using ChatTwo.Util;
|
using HellionChat.Util;
|
||||||
using Dalamud.Interface.ImGuiNotification;
|
using Dalamud.Interface.ImGuiNotification;
|
||||||
using FFXIVClientStructs.FFXIV.Client.UI.Agent;
|
using FFXIVClientStructs.FFXIV.Client.UI.Agent;
|
||||||
using FFXIVClientStructs.FFXIV.Client.UI.Info;
|
using FFXIVClientStructs.FFXIV.Client.UI.Info;
|
||||||
|
|
||||||
namespace ChatTwo.GameFunctions;
|
namespace HellionChat.GameFunctions;
|
||||||
|
|
||||||
internal static unsafe class Party
|
internal static unsafe class Party
|
||||||
{
|
{
|
||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
using ChatTwo.Code;
|
using HellionChat.Code;
|
||||||
|
|
||||||
namespace ChatTwo.GameFunctions.Types;
|
namespace HellionChat.GameFunctions.Types;
|
||||||
|
|
||||||
internal class ChannelSwitchInfo {
|
internal class ChannelSwitchInfo {
|
||||||
internal InputChannel? Channel { get; }
|
internal InputChannel? Channel { get; }
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
namespace ChatTwo.GameFunctions.Types;
|
namespace HellionChat.GameFunctions.Types;
|
||||||
|
|
||||||
internal sealed class ChatActivatedArgs
|
internal sealed class ChatActivatedArgs
|
||||||
{
|
{
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using Dalamud.Game.ClientState.Keys;
|
using Dalamud.Game.ClientState.Keys;
|
||||||
|
|
||||||
namespace ChatTwo.GameFunctions.Types;
|
namespace HellionChat.GameFunctions.Types;
|
||||||
|
|
||||||
internal class Keybind
|
internal class Keybind
|
||||||
{
|
{
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
namespace ChatTwo.GameFunctions.Types;
|
namespace HellionChat.GameFunctions.Types;
|
||||||
|
|
||||||
[Flags]
|
[Flags]
|
||||||
public enum ModifierFlag
|
public enum ModifierFlag
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
namespace ChatTwo.GameFunctions.Types;
|
namespace HellionChat.GameFunctions.Types;
|
||||||
|
|
||||||
internal enum RotateMode
|
internal enum RotateMode
|
||||||
{
|
{
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
namespace ChatTwo.GameFunctions.Types;
|
namespace HellionChat.GameFunctions.Types;
|
||||||
|
|
||||||
internal sealed class TellHistoryInfo
|
internal sealed class TellHistoryInfo
|
||||||
{
|
{
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
namespace ChatTwo.GameFunctions.Types;
|
namespace HellionChat.GameFunctions.Types;
|
||||||
|
|
||||||
public enum TellReason
|
public enum TellReason
|
||||||
{
|
{
|
||||||
+5
-2
@@ -1,7 +1,7 @@
|
|||||||
using Dalamud.Game.ClientState.Objects.SubKinds;
|
using Dalamud.Game.ClientState.Objects.SubKinds;
|
||||||
using FFXIVClientStructs.FFXIV.Client.Game.Character;
|
using FFXIVClientStructs.FFXIV.Client.Game.Character;
|
||||||
|
|
||||||
namespace ChatTwo.GameFunctions.Types;
|
namespace HellionChat.GameFunctions.Types;
|
||||||
|
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public class TellTarget
|
public class TellTarget
|
||||||
@@ -20,7 +20,7 @@ public class TellTarget
|
|||||||
}
|
}
|
||||||
|
|
||||||
public bool IsSet()
|
public bool IsSet()
|
||||||
=> Name.Length > 0 && World > 0;
|
=> !string.IsNullOrEmpty(Name) && World > 0;
|
||||||
|
|
||||||
public string ToWorldString()
|
public string ToWorldString()
|
||||||
=> Sheets.WorldSheet.TryGetRow(World, out var worldRow) ? worldRow.Name.ToString() : string.Empty;
|
=> Sheets.WorldSheet.TryGetRow(World, out var worldRow) ? worldRow.Name.ToString() : string.Empty;
|
||||||
@@ -30,6 +30,9 @@ public class TellTarget
|
|||||||
|
|
||||||
public unsafe void FromTarget(IPlayerCharacter target)
|
public unsafe void FromTarget(IPlayerCharacter target)
|
||||||
{
|
{
|
||||||
|
if (target.Address == nint.Zero)
|
||||||
|
return;
|
||||||
|
|
||||||
Name = target.Name.TextValue;
|
Name = target.Name.TextValue;
|
||||||
World = target.HomeWorld.RowId;
|
World = target.HomeWorld.RowId;
|
||||||
ContentId = ((Character*)target.Address)->ContentId;
|
ContentId = ((Character*)target.Address)->ContentId;
|
||||||
@@ -4,23 +4,44 @@
|
|||||||
0.1.0 is our bootstrap release; the underlying Chat 2 base is
|
0.1.0 is our bootstrap release; the underlying Chat 2 base is
|
||||||
called out in the yaml changelog so users can see what it
|
called out in the yaml changelog so users can see what it
|
||||||
derives from. -->
|
derives from. -->
|
||||||
<Version>0.6.0</Version>
|
<Version>1.3.0</Version>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<!-- HellionChat fork: assembly is renamed so Dalamud uses
|
<Nullable>enable</Nullable>
|
||||||
pluginConfigs/HellionChat instead of pluginConfigs/ChatTwo,
|
<!-- Honor packages.lock.json on restore so floating version ranges
|
||||||
keeping our state independent from the upstream plugin.
|
don't silently drift between machines or CI runs. -->
|
||||||
Code namespace stays ChatTwo.* so upstream cherry-picks
|
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
|
||||||
apply cleanly. -->
|
<!-- v1.0.0 standalone cut — both AssemblyName and RootNamespace
|
||||||
|
are HellionChat. The plugin no longer maintains source-level
|
||||||
|
cherry-pick compatibility with upstream Infiziert90/ChatTwo;
|
||||||
|
upstream changes are integrated manually if at all. -->
|
||||||
<AssemblyName>HellionChat</AssemblyName>
|
<AssemblyName>HellionChat</AssemblyName>
|
||||||
<RootNamespace>ChatTwo</RootNamespace>
|
<RootNamespace>HellionChat</RootNamespace>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="MessagePack" Version="3.1.4" />
|
<!-- Closed ranges on packages with breaking-change history block a
|
||||||
|
surprise major bump when the lock file is regenerated. The
|
||||||
|
lock file pins the exact version per build; the upper bound
|
||||||
|
keeps the unlock path from drifting across major lines. -->
|
||||||
|
<PackageReference Include="MessagePack" Version="[3.1.4, 4.0.0)" />
|
||||||
<PackageReference Include="Microsoft.Data.Sqlite" Version="10.0.7" />
|
<PackageReference Include="Microsoft.Data.Sqlite" Version="10.0.7" />
|
||||||
|
<!-- Override the transitively-referenced native SQLite build to one
|
||||||
|
that ships SQLite >= 3.50.3 (CVE-2025-6965 memory corruption,
|
||||||
|
CVE-2025-7709 fixed in 3.50.x). Microsoft.Data.Sqlite 10.0.7
|
||||||
|
pulls SQLitePCLRaw 2.1.11 which carries the older lib; pinning
|
||||||
|
the lib package directly forces the newer native binary
|
||||||
|
without a major bump on the managed wrapper. -->
|
||||||
|
<PackageReference Include="SQLitePCLRaw.lib.e_sqlite3" Version="3.50.3" />
|
||||||
<PackageReference Include="morelinq" Version="4.4.0" />
|
<PackageReference Include="morelinq" Version="4.4.0" />
|
||||||
<PackageReference Include="Pidgin" Version="3.3.0" />
|
<PackageReference Include="Pidgin" Version="[3.5.1, 4.0.0)" />
|
||||||
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.12" />
|
<PackageReference Include="SixLabors.ImageSharp" Version="[3.1.12, 4.0.0)" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<!-- Pure-function test suites in HellionChat.Tests need access to
|
||||||
|
the internal helper classes (StringUtil, UriPayload, Tokenizer
|
||||||
|
etc.). Test assembly does not get redistributed. -->
|
||||||
|
<InternalsVisibleTo Include="HellionChat.Tests" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@@ -54,6 +75,9 @@
|
|||||||
<EmbeddedResource Include="Resources\HellionFont-OFL.txt">
|
<EmbeddedResource Include="Resources\HellionFont-OFL.txt">
|
||||||
<LogicalName>HellionFont-OFL.txt</LogicalName>
|
<LogicalName>HellionFont-OFL.txt</LogicalName>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="Themes\Builtin\example-theme.json">
|
||||||
|
<LogicalName>HellionChat.Themes.Builtin.example-theme.json</LogicalName>
|
||||||
|
</EmbeddedResource>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|
||||||
Executable
+115
@@ -0,0 +1,115 @@
|
|||||||
|
name: Hellion Chat
|
||||||
|
author: JonKazama-Hellion
|
||||||
|
punchline: Chat replacement with privacy controls aligned to EU, US and JP rules — based on Chat 2 (EUPL-1.2)
|
||||||
|
description: |-
|
||||||
|
Hellion Chat is a privacy-focused chat replacement for FINAL FANTASY XIV
|
||||||
|
based on the Chat 2 codebase (EUPL-1.2). One feature is intentionally
|
||||||
|
removed (the optional webinterface) and a stack of privacy controls is
|
||||||
|
added on top. Tabs, channel filters, RGB colours, emotes, screenshot
|
||||||
|
mode, IPC integration and the chat replacement window itself work the
|
||||||
|
same. The webinterface is intentionally not part of Hellion Chat because
|
||||||
|
it serves a different use case from the smaller default footprint this
|
||||||
|
plugin is built around.
|
||||||
|
|
||||||
|
On top of that, Hellion Chat adds privacy and data-handling controls
|
||||||
|
designed to align with the modern data protection rules that apply
|
||||||
|
across the EU, the United States and Japan. By default only your own
|
||||||
|
conversations are stored; messages from strangers, NPCs and system
|
||||||
|
spam stay out of the database. Retention windows are configurable per
|
||||||
|
channel, history can be wiped retroactively, and stored data can be
|
||||||
|
exported on demand.
|
||||||
|
|
||||||
|
Key privacy and data-handling features:
|
||||||
|
|
||||||
|
- Channel whitelist with a Privacy-First default
|
||||||
|
- Per-channel retention with a daily background sweep
|
||||||
|
- Retroactive cleanup with a Ctrl+Shift confirm
|
||||||
|
- Export to Markdown, JSON or CSV
|
||||||
|
- First-run wizard with three preset profiles (Privacy-First, Casual,
|
||||||
|
Full History)
|
||||||
|
- Bilingual UI (English and German) with live language switching
|
||||||
|
- Independent plugin state — own config file and database directory,
|
||||||
|
so Hellion Chat does not share state with upstream Chat 2
|
||||||
|
|
||||||
|
v1.1.0 — Theme engine with five built-in themes (Hellion Arctic,
|
||||||
|
Chat 2 Klassik, Event Horizon, Moonlit Bloom, Mint Grove) plus
|
||||||
|
JSON-based custom-theme authoring. Settings rebuilt around a card
|
||||||
|
grid with section detail views. See docs/THEME-AUTHORING.md.
|
||||||
|
|
||||||
|
v1.2.3 — Theme catalogue grown to nine built-in themes:
|
||||||
|
Hellion Arctic, Hellion Spectrum (CVD-safe Deuteran/Protan),
|
||||||
|
Chat 2 Klassik, Event Horizon, Moonlit Bloom, Mint Grove,
|
||||||
|
Night Blue, Indigo Violet, Forge Merchantman.
|
||||||
|
|
||||||
|
v1.3.0 First plugin integration cycle. Honorific custom titles
|
||||||
|
are shown in the chat header above the message log, with auto-detect
|
||||||
|
and silent fallback when Honorific is not installed.
|
||||||
|
|
||||||
|
Based on Chat 2 by Infi and Anna, licensed under EUPL-1.2.
|
||||||
|
|
||||||
|
Modding & support: join the Hellion Forge Discord at
|
||||||
|
https://discord.gg/X9V7Kcv5gR — community for Hellion Chat and
|
||||||
|
other Hellion Online Media plugins/tools.
|
||||||
|
repo_url: https://github.com/JonKazama-Hellion/HellionChat
|
||||||
|
accepts_feedback: true
|
||||||
|
icon_url: https://raw.githubusercontent.com/JonKazama-Hellion/HellionChat/main/HellionChat/images/icon.png
|
||||||
|
image_urls:
|
||||||
|
- https://raw.githubusercontent.com/JonKazama-Hellion/HellionChat/main/HellionChat/images/chatWindow.png
|
||||||
|
- https://raw.githubusercontent.com/JonKazama-Hellion/HellionChat/main/HellionChat/images/settingsOverview.png
|
||||||
|
- https://raw.githubusercontent.com/JonKazama-Hellion/HellionChat/main/HellionChat/images/themesPicker.png
|
||||||
|
tags:
|
||||||
|
- Social
|
||||||
|
- UI
|
||||||
|
- Chat
|
||||||
|
- Replacement
|
||||||
|
- Privacy
|
||||||
|
changelog: |-
|
||||||
|
**Hellion Chat 1.3.0 - Plugin Integrations: Honorific**
|
||||||
|
|
||||||
|
First step on the plugin-integration roadmap. HellionChat now
|
||||||
|
listens to Honorific and shows your custom title in the chat
|
||||||
|
header. The slot auto-hides when Honorific is not installed,
|
||||||
|
when no custom title is active, or when you are using the
|
||||||
|
original FFXIV title.
|
||||||
|
|
||||||
|
- New "Integrations" settings tab
|
||||||
|
- Honorific integration with auto-detection and live updates
|
||||||
|
- "Coming soon" preview of the next five planned integrations:
|
||||||
|
context menu actions, smart notifications, RP status block,
|
||||||
|
ExtraChat channels, and quick DM compose
|
||||||
|
- Maintainer attribution buttons for Honorific repo and Caraxi
|
||||||
|
- New service-class pattern under HellionChat/Integrations/
|
||||||
|
|
||||||
|
Modding and support: join Hellion Forge - https://discord.gg/X9V7Kcv5gR
|
||||||
|
|
||||||
|
Based on Chat 2 1.35.3 (upstream Infiziert90/ChatTwo, EUPL-1.2).
|
||||||
|
|
||||||
|
**Hellion Chat 1.2.3 — Theme Expansion**
|
||||||
|
|
||||||
|
Four new built-in themes round out the picker. No engine changes,
|
||||||
|
no settings touched — just more colour options.
|
||||||
|
|
||||||
|
- **Night Blue** — Royal Blue on deep marine. Cool tech-dashboard
|
||||||
|
mood, distinct from the brand themes.
|
||||||
|
- **Indigo Violet** — Royal Violet on deep indigo with a turquoise-
|
||||||
|
mint counter for an aurora glitter feel. Sister to Event Horizon
|
||||||
|
but darker and denser; the turquoise accent keeps the two
|
||||||
|
distinguishable.
|
||||||
|
- **Forge Merchantman** — Patina bronze on workshop slate, warm
|
||||||
|
amber counter. Hellion Forge given a theme of its own — sister
|
||||||
|
to Hellion Arctic but greener and warmer instead of cold cyan.
|
||||||
|
- **Hellion Spectrum** — Deuteran/Protan-safe channel colours
|
||||||
|
using Wong/Okabe-Ito palette tones. Channel identity (Tell pink,
|
||||||
|
Yell yellow, Shout orange, Party blue, FC green) is preserved;
|
||||||
|
tones are chosen so each channel stays distinguishable under
|
||||||
|
red-green colour vision deficiency. Covers the ~99% of CVD cases
|
||||||
|
that are red-green.
|
||||||
|
|
||||||
|
No schema bump, no migration. Default theme is unchanged (Hellion
|
||||||
|
Arctic). Existing custom themes keep working.
|
||||||
|
|
||||||
|
Based on Chat 2 1.35.3 (upstream Infiziert90/ChatTwo, EUPL-1.2).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
Earlier history: https://github.com/JonKazama-Hellion/HellionChat/releases
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace ChatTwo;
|
namespace HellionChat;
|
||||||
|
|
||||||
// Hellion Chat — v0.6.0 shared input history. Replaces the embedded
|
// Hellion Chat — v0.6.0 shared input history. Replaces the embedded
|
||||||
// ChatLogWindow.InputBacklog so that pop-out windows with their own
|
// ChatLogWindow.InputBacklog so that pop-out windows with their own
|
||||||
@@ -0,0 +1,245 @@
|
|||||||
|
using System;
|
||||||
|
using Dalamud.Plugin;
|
||||||
|
using Dalamud.Plugin.Ipc;
|
||||||
|
using Dalamud.Plugin.Services;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace HellionChat.Integrations;
|
||||||
|
|
||||||
|
// We pull Newtonsoft.Json into this single file for IPC compatibility:
|
||||||
|
// Honorific serialises its TitleData with Newtonsoft (see
|
||||||
|
// Honorific-master/IpcProvider.cs:9 and CustomTitle.cs:12). Using the
|
||||||
|
// same library guarantees identical handling of System.Numerics.Vector3?
|
||||||
|
// and the enum fields we ignore. Newtonsoft is a transitive dependency
|
||||||
|
// via Dalamud, so no new NuGet entry is needed. The rest of HellionChat
|
||||||
|
// keeps using System.Text.Json.
|
||||||
|
internal sealed class HonorificService : IDisposable
|
||||||
|
{
|
||||||
|
private const string IpcNamespace = "Honorific";
|
||||||
|
|
||||||
|
// Major version of the Honorific IPC contract HellionChat is built against.
|
||||||
|
// Used both by the runtime compatibility check and by the settings tab when
|
||||||
|
// it tells the user which major version we expected, so the literal lives
|
||||||
|
// in exactly one place.
|
||||||
|
internal const uint ExpectedApiMajor = 3;
|
||||||
|
|
||||||
|
// IPC gates we subscribe to. Keep them as fields so Dispose can
|
||||||
|
// unsubscribe the same instances we subscribed in the constructor.
|
||||||
|
private readonly ICallGateSubscriber<(uint, uint)> _apiVersion;
|
||||||
|
private readonly ICallGateSubscriber<string> _getLocalCharacterTitle;
|
||||||
|
private readonly ICallGateSubscriber<string, object> _localCharacterTitleChanged;
|
||||||
|
private readonly ICallGateSubscriber<object> _ready;
|
||||||
|
private readonly ICallGateSubscriber<object> _disposing;
|
||||||
|
|
||||||
|
private readonly IPluginLog _log;
|
||||||
|
private readonly IFramework _framework;
|
||||||
|
private bool _versionWarningLogged;
|
||||||
|
|
||||||
|
public HonorificTitleData? CurrentTitle { get; private set; }
|
||||||
|
public bool IsAvailable { get; private set; }
|
||||||
|
public (uint Major, uint Minor)? DetectedApiVersion { get; private set; }
|
||||||
|
|
||||||
|
public HonorificService(IDalamudPluginInterface pluginInterface, IPluginLog log, IFramework framework)
|
||||||
|
{
|
||||||
|
_framework = framework;
|
||||||
|
_log = log;
|
||||||
|
|
||||||
|
// Dalamud caches gate objects per-name for the lifetime of the
|
||||||
|
// plugin interface, so we can register subscribers even when
|
||||||
|
// Honorific isn't loaded yet — the gate just won't fire. Calling
|
||||||
|
// InvokeFunc before Honorific is up will throw, which is why the
|
||||||
|
// initial pull below is wrapped in try-catch.
|
||||||
|
//
|
||||||
|
// Thread-context: plugin constructors run on Dalamud's plugin-loader
|
||||||
|
// thread, NOT the framework thread. Honorific's IPC handlers read
|
||||||
|
// ObjectTable.LocalPlayer (Honorific IpcProvider.cs:61), which throws
|
||||||
|
// "Not on main thread!" outside the framework thread. If Honorific is
|
||||||
|
// already loaded when HellionChat starts, a synchronous InvokeFunc
|
||||||
|
// here would surface that exception, the broad catch below would
|
||||||
|
// mark IsAvailable=false, and OnTitleChanged's `if (!IsAvailable)`
|
||||||
|
// gate would block every subsequent title update. We therefore
|
||||||
|
// schedule the initial pull onto the framework thread via
|
||||||
|
// IFramework.RunOnFrameworkThread so the IPC call sees the right
|
||||||
|
// thread context.
|
||||||
|
_apiVersion = pluginInterface
|
||||||
|
.GetIpcSubscriber<(uint, uint)>($"{IpcNamespace}.ApiVersion");
|
||||||
|
_getLocalCharacterTitle = pluginInterface
|
||||||
|
.GetIpcSubscriber<string>($"{IpcNamespace}.GetLocalCharacterTitle");
|
||||||
|
_localCharacterTitleChanged = pluginInterface
|
||||||
|
.GetIpcSubscriber<string, object>($"{IpcNamespace}.LocalCharacterTitleChanged");
|
||||||
|
_ready = pluginInterface
|
||||||
|
.GetIpcSubscriber<object>($"{IpcNamespace}.Ready");
|
||||||
|
_disposing = pluginInterface
|
||||||
|
.GetIpcSubscriber<object>($"{IpcNamespace}.Disposing");
|
||||||
|
|
||||||
|
_localCharacterTitleChanged.Subscribe(OnTitleChanged);
|
||||||
|
_ready.Subscribe(OnReady);
|
||||||
|
_disposing.Subscribe(OnDisposing);
|
||||||
|
|
||||||
|
_framework.RunOnFrameworkThread(TryInitialPull);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
// Honorific may already be gone by the time we dispose. Wrap each
|
||||||
|
// unsubscribe so a missing gate doesn't prevent the others from
|
||||||
|
// unsubscribing — leaking even one subscription leaves a callback
|
||||||
|
// alive that captures `this`, which keeps the whole service alive
|
||||||
|
// and breaks plugin reload.
|
||||||
|
TryUnsubscribe(() => _localCharacterTitleChanged.Unsubscribe(OnTitleChanged));
|
||||||
|
TryUnsubscribe(() => _ready.Unsubscribe(OnReady));
|
||||||
|
TryUnsubscribe(() => _disposing.Unsubscribe(OnDisposing));
|
||||||
|
}
|
||||||
|
|
||||||
|
private void TryInitialPull()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var version = _apiVersion.InvokeFunc();
|
||||||
|
DetectedApiVersion = version;
|
||||||
|
|
||||||
|
if (!IsApiVersionCompatible(version))
|
||||||
|
{
|
||||||
|
if (!_versionWarningLogged)
|
||||||
|
{
|
||||||
|
_log.Warning(
|
||||||
|
"Honorific API version mismatch — expected major 3, " +
|
||||||
|
"found {Major}.{Minor}. Disabling Honorific integration.",
|
||||||
|
version.Item1, version.Item2);
|
||||||
|
_versionWarningLogged = true;
|
||||||
|
}
|
||||||
|
IsAvailable = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
IsAvailable = true;
|
||||||
|
_versionWarningLogged = false;
|
||||||
|
// Pull the current title once at startup; from here on we rely
|
||||||
|
// on LocalCharacterTitleChanged events.
|
||||||
|
var json = _getLocalCharacterTitle.InvokeFunc();
|
||||||
|
CurrentTitle = ParseTitleJson(json);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
// Honorific isn't installed or hasn't initialised yet. The Ready
|
||||||
|
// event will give us a second chance later. Log at Debug so
|
||||||
|
// users without Honorific don't see noise on every reload.
|
||||||
|
_log.Debug(ex, "Honorific not available at HellionChat startup; awaiting Ready.");
|
||||||
|
IsAvailable = false;
|
||||||
|
CurrentTitle = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Honorific fires LocalCharacterTitleChanged through its nameplate hook
|
||||||
|
// (Honorific-master/Plugin.cs:665), which means we get title updates on
|
||||||
|
// character switches automatically as soon as the new character is
|
||||||
|
// rendered. While the user is in the character-select menu, HellionChat's
|
||||||
|
// window is hidden by default via HideWhenNotLoggedIn (Configuration.cs:152),
|
||||||
|
// so the stale-title window between logout and login isn't user-visible.
|
||||||
|
private void OnTitleChanged(string json)
|
||||||
|
{
|
||||||
|
// Don't update cached state when we've already decided we can't trust
|
||||||
|
// Honorific (e.g. version mismatch). Subscription stays live in case a
|
||||||
|
// compatible Honorific reloads, in which case Ready triggers TryInitialPull
|
||||||
|
// and sets IsAvailable back to true.
|
||||||
|
if (!IsAvailable) return;
|
||||||
|
CurrentTitle = ParseTitleJson(json);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnReady()
|
||||||
|
{
|
||||||
|
// Honorific loaded after HellionChat; redo the version check and
|
||||||
|
// initial pull. Idempotent on purpose — Honorific can fire Ready
|
||||||
|
// more than once across reloads.
|
||||||
|
//
|
||||||
|
// Honorific's NotifyReady may dispatch from any thread, and
|
||||||
|
// TryInitialPull eventually calls IPC handlers that read
|
||||||
|
// ObjectTable.LocalPlayer — same "Not on main thread!" hazard as
|
||||||
|
// the constructor path. Schedule onto the framework thread.
|
||||||
|
_framework.RunOnFrameworkThread(TryInitialPull);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnDisposing()
|
||||||
|
{
|
||||||
|
// Honorific is unloading. Drop our cached state so the header
|
||||||
|
// hides on the next frame; subscriptions stay registered because
|
||||||
|
// the gates may come back later (Honorific reload).
|
||||||
|
//
|
||||||
|
// Race-note: Honorific's NotifyDisposing calls ChangedLocalCharacterTitle(null)
|
||||||
|
// BEFORE SendMessage on the Disposing gate (IpcProvider.cs:109-111),
|
||||||
|
// so OnTitleChanged is expected to fire first and already null out
|
||||||
|
// CurrentTitle. We re-clear here as belt-and-braces; should the
|
||||||
|
// ordering ever flip, ShouldRenderSlot would still gate on IsAvailable.
|
||||||
|
CurrentTitle = null;
|
||||||
|
IsAvailable = false;
|
||||||
|
DetectedApiVersion = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void TryUnsubscribe(Action unsubscribe)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
unsubscribe();
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
_log.Debug(ex, "Honorific unsubscribe failed (likely already gone).");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Threading note: Dalamud fires IPC events on the framework thread and
|
||||||
|
// ImGui renders on the framework thread, so OnTitleChanged and the
|
||||||
|
// render path that reads CurrentTitle never race — OnTitleChanged is
|
||||||
|
// safe to keep direct (no RunOnFrameworkThread wrap needed) because
|
||||||
|
// LocalCharacterTitleChanged delivery is framework-thread by Dalamud
|
||||||
|
// contract. If a future change moves either side onto a worker thread,
|
||||||
|
// switch to volatile/Interlocked for the CurrentTitle field.
|
||||||
|
//
|
||||||
|
// The constructor's initial pull and OnReady, on the other hand, are
|
||||||
|
// explicitly scheduled via IFramework.RunOnFrameworkThread because
|
||||||
|
// they run outside that contract: the constructor executes on the
|
||||||
|
// plugin-loader thread, and Honorific's NotifyReady can dispatch from
|
||||||
|
// any thread. Both call paths eventually invoke IPC handlers that read
|
||||||
|
// ObjectTable.LocalPlayer, which throws "Not on main thread!" off the
|
||||||
|
// framework thread — see the constructor comment block for context.
|
||||||
|
//
|
||||||
|
// Divergence from ChatTwo/Ipc/ExtraChat.cs: that file uses `volatile`
|
||||||
|
// on its state fields out of caution. We don't, because the framework-
|
||||||
|
// thread delivery is the documented Dalamud contract. If the two files
|
||||||
|
// ever need to share a threading audit, this is the place to revisit.
|
||||||
|
|
||||||
|
// --- Pure-logic helpers below; tested via HellionChat.Tests/Integrations. ---
|
||||||
|
|
||||||
|
internal static HonorificTitleData? ParseTitleJson(string json)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(json))
|
||||||
|
return null;
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
return JsonConvert.DeserializeObject<HonorificTitleData>(json);
|
||||||
|
}
|
||||||
|
catch (JsonException)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
internal static bool IsApiVersionCompatible((uint Major, uint Minor) apiVersion)
|
||||||
|
{
|
||||||
|
return apiVersion.Major == ExpectedApiMajor;
|
||||||
|
}
|
||||||
|
|
||||||
|
internal static bool ShouldRenderSlot(
|
||||||
|
bool toggleEnabled,
|
||||||
|
bool isAvailable,
|
||||||
|
HonorificTitleData? title)
|
||||||
|
{
|
||||||
|
if (!toggleEnabled) return false;
|
||||||
|
if (!isAvailable) return false;
|
||||||
|
if (title is null) return false;
|
||||||
|
if (title.IsOriginal) return false;
|
||||||
|
if (string.IsNullOrEmpty(title.Title)) return false;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
using System.Numerics;
|
||||||
|
|
||||||
|
namespace HellionChat.Integrations;
|
||||||
|
|
||||||
|
// Local DTO mirroring Honorific's TitleData shape. We replicate the structure
|
||||||
|
// instead of referencing Honorific.dll because a hard build-time dependency
|
||||||
|
// would couple the two assemblies and break HellionChat at load time when
|
||||||
|
// Honorific is missing. Glow, Color3, GradientColourSet and GradientAnimationStyle
|
||||||
|
// are intentionally omitted — Cycle 1 renders text in the primary Color only;
|
||||||
|
// the "Honorific Full Fidelity" backlog item adds them later as a pure
|
||||||
|
// extension that won't break this DTO's existing consumers.
|
||||||
|
internal sealed record HonorificTitleData(
|
||||||
|
string? Title,
|
||||||
|
bool IsPrefix,
|
||||||
|
bool IsOriginal,
|
||||||
|
Vector3? Color
|
||||||
|
);
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
namespace HellionChat.Integrations;
|
||||||
|
|
||||||
|
// External URLs for the third-party plugins HellionChat integrates with.
|
||||||
|
// Kept separate from BrandingLinks (which is for Hellion-owned URLs) so
|
||||||
|
// future cycles can extend this file with maintainer attribution links
|
||||||
|
// for Moodles, NotificationMaster, ExtraChat, etc. without polluting the
|
||||||
|
// brand-links class.
|
||||||
|
internal static class IntegrationLinks
|
||||||
|
{
|
||||||
|
public const string HonorificRepo = "https://github.com/Caraxi/Honorific";
|
||||||
|
public const string HonorificAuthor = "https://github.com/Caraxi";
|
||||||
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using Dalamud.Plugin.Ipc;
|
using Dalamud.Plugin.Ipc;
|
||||||
|
|
||||||
namespace ChatTwo.Ipc;
|
namespace HellionChat.Ipc;
|
||||||
|
|
||||||
public sealed class ExtraChat : IDisposable
|
public sealed class ExtraChat : IDisposable
|
||||||
{
|
{
|
||||||
@@ -20,10 +20,14 @@ public sealed class ExtraChat : IDisposable
|
|||||||
|
|
||||||
internal (string, uint)? ChannelOverride { get; set; }
|
internal (string, uint)? ChannelOverride { get; set; }
|
||||||
|
|
||||||
private Dictionary<string, uint> ChannelCommandColoursInternal { get; set; } = new();
|
// Volatile reference: IPC callbacks (OnChannelCommandColours/OnChannelNames) fire on a
|
||||||
|
// Dalamud-dispatcher thread while the ImGui thread reads the IReadOnlyDictionary projections.
|
||||||
|
// Reference assignment is atomic on x64, but the JIT (especially Mono on Wine/Linux) needs
|
||||||
|
// the volatile barrier to guarantee visibility across threads. See AUDIT-2026-05-05 [SEC-01].
|
||||||
|
private volatile Dictionary<string, uint> ChannelCommandColoursInternal = new();
|
||||||
internal IReadOnlyDictionary<string, uint> ChannelCommandColours => ChannelCommandColoursInternal;
|
internal IReadOnlyDictionary<string, uint> ChannelCommandColours => ChannelCommandColoursInternal;
|
||||||
|
|
||||||
private Dictionary<Guid, string> ChannelNamesInternal { get; set; } = new();
|
private volatile Dictionary<Guid, string> ChannelNamesInternal = new();
|
||||||
internal IReadOnlyDictionary<Guid, string> ChannelNames => ChannelNamesInternal;
|
internal IReadOnlyDictionary<Guid, string> ChannelNames => ChannelNamesInternal;
|
||||||
|
|
||||||
internal ExtraChat()
|
internal ExtraChat()
|
||||||
@@ -40,15 +44,18 @@ public sealed class ExtraChat : IDisposable
|
|||||||
ChannelCommandColoursInternal = ChannelCommandColoursGate.InvokeFunc(null!);
|
ChannelCommandColoursInternal = ChannelCommandColoursGate.InvokeFunc(null!);
|
||||||
ChannelNamesInternal = ChannelNamesGate.InvokeFunc(null!);
|
ChannelNamesInternal = ChannelNamesGate.InvokeFunc(null!);
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
// no-op
|
// ExtraChat is optional; missing IPC peer is normal when the plugin isn't loaded.
|
||||||
|
Plugin.Log.Verbose(ex, "ExtraChat IPC initial state query failed (peer not loaded?)");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Dispose()
|
public void Dispose()
|
||||||
{
|
{
|
||||||
OverrideChannelGate.Unsubscribe(OnOverrideChannel);
|
OverrideChannelGate.Unsubscribe(OnOverrideChannel);
|
||||||
|
ChannelCommandColoursGate.Unsubscribe(OnChannelCommandColours);
|
||||||
|
ChannelNamesGate.Unsubscribe(OnChannelNames);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnOverrideChannel(OverrideInfo info)
|
private void OnOverrideChannel(OverrideInfo info)
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using ChatTwo.Code;
|
using HellionChat.Code;
|
||||||
using Dalamud.Plugin.Ipc;
|
using Dalamud.Plugin.Ipc;
|
||||||
|
|
||||||
namespace ChatTwo.Ipc;
|
namespace HellionChat.Ipc;
|
||||||
|
|
||||||
using ChatInputState = (bool InputVisible, bool InputFocused, bool HasText, bool IsTyping, int TextLength, ChatType ChannelType);
|
using ChatInputState = (bool InputVisible, bool InputFocused, bool HasText, bool IsTyping, int TextLength, ChatType ChannelType);
|
||||||
|
|
||||||
@@ -19,8 +19,8 @@ internal sealed class TypingIpc : IDisposable
|
|||||||
{
|
{
|
||||||
Plugin = plugin;
|
Plugin = plugin;
|
||||||
|
|
||||||
StateQueryGate = Plugin.Interface.GetIpcProvider<ChatInputState>("ChatTwo.GetChatInputState");
|
StateQueryGate = Plugin.Interface.GetIpcProvider<ChatInputState>("HellionChat.GetChatInputState");
|
||||||
StateChangedGate = Plugin.Interface.GetIpcProvider<ChatInputState, object?>("ChatTwo.ChatInputStateChanged");
|
StateChangedGate = Plugin.Interface.GetIpcProvider<ChatInputState, object?>("HellionChat.ChatInputStateChanged");
|
||||||
|
|
||||||
StateQueryGate.RegisterFunc(GetState);
|
StateQueryGate.RegisterFunc(GetState);
|
||||||
}
|
}
|
||||||
@@ -2,7 +2,7 @@ using Dalamud.Game.Text.SeStringHandling;
|
|||||||
using Dalamud.Game.Text.SeStringHandling.Payloads;
|
using Dalamud.Game.Text.SeStringHandling.Payloads;
|
||||||
using Dalamud.Plugin.Ipc;
|
using Dalamud.Plugin.Ipc;
|
||||||
|
|
||||||
namespace ChatTwo;
|
namespace HellionChat;
|
||||||
|
|
||||||
internal sealed class IpcManager : IDisposable
|
internal sealed class IpcManager : IDisposable
|
||||||
{
|
{
|
||||||
@@ -15,15 +15,15 @@ internal sealed class IpcManager : IDisposable
|
|||||||
|
|
||||||
public IpcManager()
|
public IpcManager()
|
||||||
{
|
{
|
||||||
RegisterGate = Plugin.Interface.GetIpcProvider<string>("ChatTwo.Register");
|
RegisterGate = Plugin.Interface.GetIpcProvider<string>("HellionChat.Register");
|
||||||
RegisterGate.RegisterFunc(Register);
|
RegisterGate.RegisterFunc(Register);
|
||||||
|
|
||||||
AvailableGate = Plugin.Interface.GetIpcProvider<object?>("ChatTwo.Available");
|
AvailableGate = Plugin.Interface.GetIpcProvider<object?>("HellionChat.Available");
|
||||||
|
|
||||||
UnregisterGate = Plugin.Interface.GetIpcProvider<string, object?>("ChatTwo.Unregister");
|
UnregisterGate = Plugin.Interface.GetIpcProvider<string, object?>("HellionChat.Unregister");
|
||||||
UnregisterGate.RegisterAction(Unregister);
|
UnregisterGate.RegisterAction(Unregister);
|
||||||
|
|
||||||
InvokeGate = Plugin.Interface.GetIpcProvider<string, PlayerPayload?, ulong, Payload?, SeString?, SeString?, object?>("ChatTwo.Invoke");
|
InvokeGate = Plugin.Interface.GetIpcProvider<string, PlayerPayload?, ulong, Payload?, SeString?, SeString?, object?>("HellionChat.Invoke");
|
||||||
|
|
||||||
AvailableGate.SendMessage();
|
AvailableGate.SendMessage();
|
||||||
}
|
}
|
||||||
@@ -47,7 +47,7 @@ internal sealed class IpcManager : IDisposable
|
|||||||
|
|
||||||
public void Dispose()
|
public void Dispose()
|
||||||
{
|
{
|
||||||
UnregisterGate.UnregisterFunc();
|
UnregisterGate.UnregisterAction();
|
||||||
RegisterGate.UnregisterFunc();
|
RegisterGate.UnregisterFunc();
|
||||||
Registered.Clear();
|
Registered.Clear();
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using ChatTwo.Code;
|
using HellionChat.Code;
|
||||||
using ChatTwo.Util;
|
using HellionChat.Util;
|
||||||
using Dalamud.Game.Text.SeStringHandling;
|
using Dalamud.Game.Text.SeStringHandling;
|
||||||
using Dalamud.Game.Text.SeStringHandling.Payloads;
|
using Dalamud.Game.Text.SeStringHandling.Payloads;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
@@ -8,7 +8,7 @@ using Dalamud.Game.Text;
|
|||||||
using Dalamud.Utility;
|
using Dalamud.Utility;
|
||||||
using FFXIVClientStructs.FFXIV.Client.UI.Agent;
|
using FFXIVClientStructs.FFXIV.Client.UI.Agent;
|
||||||
|
|
||||||
namespace ChatTwo;
|
namespace HellionChat;
|
||||||
|
|
||||||
public partial class Message
|
public partial class Message
|
||||||
{
|
{
|
||||||
@@ -49,7 +49,10 @@ public partial class Message
|
|||||||
ExtraChatChannel = extraChatChannel;
|
ExtraChatChannel = extraChatChannel;
|
||||||
Hash = GenerateHash();
|
Hash = GenerateHash();
|
||||||
|
|
||||||
foreach (var chunk in sender.Concat(content))
|
// Iterate the processed Content list (returned by CheckMessageContent)
|
||||||
|
// rather than the raw constructor parameter — chunks added or replaced
|
||||||
|
// by CheckMessageContent must also have their back-reference set.
|
||||||
|
foreach (var chunk in Sender.Concat(Content))
|
||||||
chunk.Message = this;
|
chunk.Message = this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
using System.Collections.Concurrent;
|
using System.Collections.Concurrent;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using ChatTwo.Code;
|
using HellionChat.Code;
|
||||||
using ChatTwo.Resources;
|
using HellionChat.Resources;
|
||||||
using ChatTwo.Util;
|
using HellionChat.Util;
|
||||||
using Dalamud.Game.Chat;
|
using Dalamud.Game.Chat;
|
||||||
using Dalamud.Game.Text;
|
using Dalamud.Game.Text;
|
||||||
using Dalamud.Game.Text.SeStringHandling;
|
using Dalamud.Game.Text.SeStringHandling;
|
||||||
@@ -15,7 +15,7 @@ using Lumina.Text.Expressions;
|
|||||||
using Lumina.Text.Payloads;
|
using Lumina.Text.Payloads;
|
||||||
using Lumina.Text.ReadOnly;
|
using Lumina.Text.ReadOnly;
|
||||||
|
|
||||||
namespace ChatTwo;
|
namespace HellionChat;
|
||||||
|
|
||||||
internal class MessageManager : IAsyncDisposable
|
internal class MessageManager : IAsyncDisposable
|
||||||
{
|
{
|
||||||
@@ -34,7 +34,10 @@ internal class MessageManager : IAsyncDisposable
|
|||||||
// After that, the message is enqueued in the PendingAsync queue, which will
|
// After that, the message is enqueued in the PendingAsync queue, which will
|
||||||
// be consumed in a separate thread and perform more processing (emotes,
|
// be consumed in a separate thread and perform more processing (emotes,
|
||||||
// URLs) as well as inserting the message into the database.
|
// URLs) as well as inserting the message into the database.
|
||||||
private Queue<PendingMessage> PendingSync { get; } = [];
|
// LinkedList instead of Queue: ContentIdResolver hits PendingSync.Last
|
||||||
|
// every hook call. Queue<T>.Last() is the LINQ extension and walks the
|
||||||
|
// whole queue (O(n)); LinkedList<T>.Last is an O(1) node reference.
|
||||||
|
private LinkedList<PendingMessage> PendingSync { get; } = [];
|
||||||
private ConcurrentQueue<PendingMessage> PendingAsync { get; } = [];
|
private ConcurrentQueue<PendingMessage> PendingAsync { get; } = [];
|
||||||
private readonly Thread PendingMessageThread;
|
private readonly Thread PendingMessageThread;
|
||||||
private readonly CancellationTokenSource PendingThreadCancellationToken = new();
|
private readonly CancellationTokenSource PendingThreadCancellationToken = new();
|
||||||
@@ -93,6 +96,10 @@ internal class MessageManager : IAsyncDisposable
|
|||||||
Plugin.Log.Debug("Sleeping because PendingMessageThread thread still alive");
|
Plugin.Log.Debug("Sleeping because PendingMessageThread thread still alive");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// CancellationTokenSource owns an unmanaged WaitHandle; dispose after the
|
||||||
|
// worker thread has drained, otherwise it leaks across plugin reloads.
|
||||||
|
PendingThreadCancellationToken.Dispose();
|
||||||
|
|
||||||
Store.Dispose();
|
Store.Dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -113,8 +120,11 @@ internal class MessageManager : IAsyncDisposable
|
|||||||
LastContentId = contentId;
|
LastContentId = contentId;
|
||||||
|
|
||||||
// Drain the PendingSync queue into the PendingAsync queue.
|
// Drain the PendingSync queue into the PendingAsync queue.
|
||||||
while (PendingSync.TryDequeue(out var pending))
|
while (PendingSync.First is { } first)
|
||||||
PendingAsync.Enqueue(pending);
|
{
|
||||||
|
PendingSync.RemoveFirst();
|
||||||
|
PendingAsync.Enqueue(first.Value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ProcessPendingMessages(CancellationToken token)
|
private void ProcessPendingMessages(CancellationToken token)
|
||||||
@@ -141,7 +151,13 @@ internal class MessageManager : IAsyncDisposable
|
|||||||
|
|
||||||
internal void ClearAllTabs()
|
internal void ClearAllTabs()
|
||||||
{
|
{
|
||||||
foreach (var tab in Plugin.Config.Tabs)
|
// Hellion Chat — TempTabs haben keine DB-Persistenz (session-only,
|
||||||
|
// direkt vom AutoTellTabsService befüllt). Ein Clear+Refilter würde
|
||||||
|
// sie leer hinterlassen weil FilterAllTabs nichts aus der DB
|
||||||
|
// findet — Tells sind oft durch Privacy-Filter blockiert oder
|
||||||
|
// schlicht session-flüchtig. TempTabs vom Clear-Pfad ausschließen
|
||||||
|
// damit Settings-Save den Tell-Verlauf nicht zerstört.
|
||||||
|
foreach (var tab in Plugin.Config.Tabs.Where(t => !t.IsTempTab))
|
||||||
tab.Clear();
|
tab.Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -155,7 +171,11 @@ internal class MessageManager : IAsyncDisposable
|
|||||||
|
|
||||||
// We store the pending messages to be added to the chat log in a
|
// We store the pending messages to be added to the chat log in a
|
||||||
// temporary list, and apply them all at once after filtering.
|
// temporary list, and apply them all at once after filtering.
|
||||||
var pendingTabs = Plugin.Config.Tabs.Select(tab => (tab, new List<Message>())).ToList();
|
// TempTabs werden ausgeschlossen — sie bleiben live-state aus dem
|
||||||
|
// AutoTellTabsService, ein DB-Refilter würde sie nur partial
|
||||||
|
// wiederherstellen falls Tells in DB liegen, oder leer lassen wenn
|
||||||
|
// Privacy-Filter sie blockiert hat.
|
||||||
|
var pendingTabs = Plugin.Config.Tabs.Where(t => !t.IsTempTab).Select(tab => (tab, new List<Message>())).ToList();
|
||||||
foreach (var message in messages)
|
foreach (var message in messages)
|
||||||
foreach (var (_, pendingMessages) in pendingTabs.Where(ptab => ptab.Item1.Matches(message)))
|
foreach (var (_, pendingMessages) in pendingTabs.Where(ptab => ptab.Item1.Matches(message)))
|
||||||
pendingMessages.Add(message);
|
pendingMessages.Add(message);
|
||||||
@@ -219,7 +239,7 @@ internal class MessageManager : IAsyncDisposable
|
|||||||
// We delay messages to be handed off to the async processing thread
|
// We delay messages to be handed off to the async processing thread
|
||||||
// in the next tick, otherwise we can't get the content ID from the hook
|
// in the next tick, otherwise we can't get the content ID from the hook
|
||||||
// below.
|
// below.
|
||||||
PendingSync.Enqueue(pendingMessage);
|
PendingSync.AddLast(pendingMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
// This hook is called immediately after receiving a message with the
|
// This hook is called immediately after receiving a message with the
|
||||||
@@ -231,11 +251,11 @@ internal class MessageManager : IAsyncDisposable
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
ContentIdResolverHook?.Original(agent, contentId, accountId, messageIndex, worldId, chatType);
|
ContentIdResolverHook?.Original(agent, contentId, accountId, messageIndex, worldId, chatType);
|
||||||
if (PendingSync.Count == 0)
|
if (PendingSync.Last is not { } last)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
PendingSync.Last().ContentId = contentId;
|
last.Value.ContentId = contentId;
|
||||||
PendingSync.Last().AccountId = accountId;
|
last.Value.AccountId = accountId;
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
using System.Buffers;
|
using System.Buffers;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Data.Common;
|
using System.Data.Common;
|
||||||
using ChatTwo.Code;
|
using HellionChat.Code;
|
||||||
using ChatTwo.Ui;
|
using HellionChat.Ui;
|
||||||
using ChatTwo.Util;
|
using HellionChat.Util;
|
||||||
using Dalamud.Game.Text.SeStringHandling;
|
using Dalamud.Game.Text.SeStringHandling;
|
||||||
using MessagePack;
|
using MessagePack;
|
||||||
using MessagePack.Formatters;
|
using MessagePack.Formatters;
|
||||||
@@ -13,7 +13,7 @@ using Microsoft.Data.Sqlite;
|
|||||||
using DalamudUtil = Dalamud.Utility.Util;
|
using DalamudUtil = Dalamud.Utility.Util;
|
||||||
using Encoding = System.Text.Encoding;
|
using Encoding = System.Text.Encoding;
|
||||||
|
|
||||||
namespace ChatTwo;
|
namespace HellionChat;
|
||||||
|
|
||||||
internal static class DbExtensions
|
internal static class DbExtensions
|
||||||
{
|
{
|
||||||
@@ -452,7 +452,10 @@ internal class MessageStore : IDisposable
|
|||||||
// covers any future write paths e.g. webinterface backfill).
|
// covers any future write paths e.g. webinterface backfill).
|
||||||
if (!Plugin.Config.IsAllowedForStorage(message.Code.Type))
|
if (!Plugin.Config.IsAllowedForStorage(message.Code.Type))
|
||||||
{
|
{
|
||||||
Plugin.Log.Debug($"Privacy filter dropped message: ChatType={message.Code.Type}");
|
// Verbose-only: this fires for every dropped message, which is
|
||||||
|
// the common case for users with a tight privacy whitelist. Keep
|
||||||
|
// it for diagnostics but stay out of the default xllog stream.
|
||||||
|
Plugin.Log.Verbose($"Privacy filter dropped message: ChatType={message.Code.Type}");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using ChatTwo.Code;
|
using HellionChat.Code;
|
||||||
using ChatTwo.Resources;
|
using HellionChat.Resources;
|
||||||
using ChatTwo.Ui;
|
using HellionChat.Ui;
|
||||||
using ChatTwo.Util;
|
using HellionChat.Util;
|
||||||
using Dalamud.Game.Addon.Lifecycle;
|
using Dalamud.Game.Addon.Lifecycle;
|
||||||
using Dalamud.Game.Addon.Lifecycle.AddonArgTypes;
|
using Dalamud.Game.Addon.Lifecycle.AddonArgTypes;
|
||||||
using Dalamud.Game.ClientState.Objects.SubKinds;
|
using Dalamud.Game.ClientState.Objects.SubKinds;
|
||||||
@@ -22,13 +22,13 @@ using Dalamud.Bindings.ImGui;
|
|||||||
using Lumina.Excel.Sheets;
|
using Lumina.Excel.Sheets;
|
||||||
using Action = System.Action;
|
using Action = System.Action;
|
||||||
using DalamudPartyFinderPayload = Dalamud.Game.Text.SeStringHandling.Payloads.PartyFinderPayload;
|
using DalamudPartyFinderPayload = Dalamud.Game.Text.SeStringHandling.Payloads.PartyFinderPayload;
|
||||||
using ChatTwoPartyFinderPayload = ChatTwo.Util.PartyFinderPayload;
|
using ChatTwoPartyFinderPayload = HellionChat.Util.PartyFinderPayload;
|
||||||
|
|
||||||
namespace ChatTwo;
|
namespace HellionChat;
|
||||||
|
|
||||||
public sealed class PayloadHandler
|
public sealed class PayloadHandler
|
||||||
{
|
{
|
||||||
private const string PopupId = "chat2-context-popup";
|
private const string PopupId = "hellionchat-context-popup";
|
||||||
|
|
||||||
private ChatLogWindow LogWindow { get; }
|
private ChatLogWindow LogWindow { get; }
|
||||||
private (Chunk, Payload?)? Popup { get; set; }
|
private (Chunk, Payload?)? Popup { get; set; }
|
||||||
@@ -332,10 +332,19 @@ public sealed class PayloadHandler
|
|||||||
atkBase->SetPosition((short) x, (short) y);
|
atkBase->SetPosition((short) x, (short) y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private const float MaxInlineIconSize = 32f;
|
||||||
|
|
||||||
private static void InlineIcon(IDalamudTextureWrap icon)
|
private static void InlineIcon(IDalamudTextureWrap icon)
|
||||||
{
|
{
|
||||||
|
if (icon.Size.X <= 0 || icon.Size.Y <= 0)
|
||||||
|
return;
|
||||||
|
|
||||||
|
var width = (float) icon.Size.X;
|
||||||
|
var height = (float) icon.Size.Y;
|
||||||
|
var scale = Math.Min(1f, Math.Min(MaxInlineIconSize / width, MaxInlineIconSize / height));
|
||||||
|
var size = ImGuiHelpers.ScaledVector2(width * scale, height * scale);
|
||||||
|
|
||||||
var cursor = ImGui.GetCursorPos();
|
var cursor = ImGui.GetCursorPos();
|
||||||
var size = ImGuiHelpers.ScaledVector2(32, 32);
|
|
||||||
ImGui.Image(icon.Handle, size);
|
ImGui.Image(icon.Handle, size);
|
||||||
ImGui.SameLine();
|
ImGui.SameLine();
|
||||||
ImGui.SetCursorPos(cursor + new Vector2(size.X + 4, size.Y - ImGui.GetTextLineHeightWithSpacing()));
|
ImGui.SetCursorPos(cursor + new Vector2(size.X + 4, size.Y - ImGui.GetTextLineHeightWithSpacing()));
|
||||||
@@ -2,10 +2,10 @@ using System.Diagnostics;
|
|||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using ChatTwo.Ipc;
|
using HellionChat.Ipc;
|
||||||
using ChatTwo.Resources;
|
using HellionChat.Resources;
|
||||||
using ChatTwo.Ui;
|
using HellionChat.Ui;
|
||||||
using ChatTwo.Util;
|
using HellionChat.Util;
|
||||||
using Dalamud.Game.ClientState.Conditions;
|
using Dalamud.Game.ClientState.Conditions;
|
||||||
using Dalamud.Interface.Windowing;
|
using Dalamud.Interface.Windowing;
|
||||||
using Dalamud.IoC;
|
using Dalamud.IoC;
|
||||||
@@ -14,7 +14,7 @@ using Dalamud.Plugin.Services;
|
|||||||
using Dalamud.Bindings.ImGui;
|
using Dalamud.Bindings.ImGui;
|
||||||
using Dalamud.Interface.ImGuiFileDialog;
|
using Dalamud.Interface.ImGuiFileDialog;
|
||||||
|
|
||||||
namespace ChatTwo;
|
namespace HellionChat;
|
||||||
|
|
||||||
// ReSharper disable once ClassNeverInstantiated.Global
|
// ReSharper disable once ClassNeverInstantiated.Global
|
||||||
public sealed class Plugin : IDalamudPlugin
|
public sealed class Plugin : IDalamudPlugin
|
||||||
@@ -63,6 +63,9 @@ public sealed class Plugin : IDalamudPlugin
|
|||||||
internal ExtraChat ExtraChat { get; }
|
internal ExtraChat ExtraChat { get; }
|
||||||
internal TypingIpc TypingIpc { get; }
|
internal TypingIpc TypingIpc { get; }
|
||||||
internal FontManager FontManager { get; }
|
internal FontManager FontManager { get; }
|
||||||
|
internal Themes.ThemeRegistry ThemeRegistry { get; private set; } = null!;
|
||||||
|
internal Ui.StatusBar StatusBar { get; private set; } = null!;
|
||||||
|
internal Integrations.HonorificService HonorificService { get; private set; } = null!;
|
||||||
|
|
||||||
internal int DeferredSaveFrames = -1;
|
internal int DeferredSaveFrames = -1;
|
||||||
|
|
||||||
@@ -94,6 +97,12 @@ public sealed class Plugin : IDalamudPlugin
|
|||||||
|
|
||||||
public Plugin()
|
public Plugin()
|
||||||
{
|
{
|
||||||
|
// Refuse to start if upstream Chat 2 is loaded — prevents IPC
|
||||||
|
// channel collisions and double-replacement of the in-game chat
|
||||||
|
// window. Throwing here makes Dalamud abort the load cleanly with
|
||||||
|
// our localized message instead of crashing FFXIV mid-frame.
|
||||||
|
ChatTwoConflictDetector.ThrowIfChatTwoIsLoaded(Interface);
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
GameStarted = Process.GetCurrentProcess().StartTime.ToUniversalTime();
|
GameStarted = Process.GetCurrentProcess().StartTime.ToUniversalTime();
|
||||||
@@ -167,22 +176,247 @@ public sealed class Plugin : IDalamudPlugin
|
|||||||
"SeenPopOutInputHint added (default false)");
|
"SeenPopOutInputHint added (default false)");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hellion default tab layout for first-run and v10-wipe.
|
// Hellion Chat v11 → v12 — flips Configuration.PopOutInputEnabled from
|
||||||
// General catches player chat plus active gameplay events; the
|
// the v0.6.0 opt-in default (false) to opt-out (true) per v0.6.1 UX
|
||||||
// System tab takes the technical noise so it does not bury real
|
// polish. Hard-flip is a deliberate design call (see Spec section 5.7);
|
||||||
// conversation. Beginner tab only appears when the Novice
|
// users are notified via the v0.6.1 hint banner (SeenPopOutHeaderHint
|
||||||
// Network is enabled in Audio and Notifications, otherwise it
|
// reset). Re-toggle after migration is preserved because this block
|
||||||
// would just sit empty.
|
// only fires for Version < 12.
|
||||||
|
if (Config.Version < 12)
|
||||||
|
{
|
||||||
|
Config.PopOutInputEnabled = true;
|
||||||
|
Config.SeenPopOutHeaderHint = false;
|
||||||
|
Config.Version = 12;
|
||||||
|
SaveConfig();
|
||||||
|
Log.Information(
|
||||||
|
"Migrated config v11 → v12: PopOutInputEnabled hard-flipped to true (v0.6.1 default), " +
|
||||||
|
"SeenPopOutHeaderHint reset to false (v0.6.1 banner re-armed)");
|
||||||
|
}
|
||||||
|
|
||||||
|
// Hellion Chat v12 → v13 — hard-resets the tab layout to the
|
||||||
|
// sharpened v1.0.0 defaults (5 thematic tabs, see TabsUtil and
|
||||||
|
// the default-fill block below). Existing tab state is wiped
|
||||||
|
// because per-channel mapping from the old General preset to
|
||||||
|
// the new General/System split would be ambiguous and would
|
||||||
|
// produce subtly wrong results for users who tweaked the old
|
||||||
|
// layout. A timestamped backup of the live config is written
|
||||||
|
// alongside it as a manual restore safety net. The wipe scope
|
||||||
|
// is intentionally narrow: only Config.Tabs is reset; Privacy,
|
||||||
|
// Retention, Theme and every other knob keeps its current value.
|
||||||
|
if (Config.Version < 13)
|
||||||
|
{
|
||||||
|
var pluginConfigsDir = Interface.ConfigDirectory.Parent?.FullName;
|
||||||
|
if (pluginConfigsDir is not null)
|
||||||
|
{
|
||||||
|
var liveConfigPath = Path.Combine(pluginConfigsDir, $"{Interface.InternalName}.json");
|
||||||
|
var backupPath = Path.Combine(pluginConfigsDir, $"{Interface.InternalName}.json.pre-v13-backup");
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (File.Exists(liveConfigPath))
|
||||||
|
File.Copy(liveConfigPath, backupPath, overwrite: true);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Log.Warning(ex, "HellionChat: pre-v13 config backup failed");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Config.Tabs.Clear();
|
||||||
|
Config.Version = 13;
|
||||||
|
SaveConfig();
|
||||||
|
|
||||||
|
Log.Information(
|
||||||
|
"Migrated config v12 → v13: tab layout hard-reset to v1.0.0 defaults; " +
|
||||||
|
"pre-v13 config backup written next to the live file. " +
|
||||||
|
"Default tabs will be populated by the Tabs.Count == 0 block.");
|
||||||
|
|
||||||
|
Notification.AddNotification(new Dalamud.Interface.ImGuiNotification.Notification
|
||||||
|
{
|
||||||
|
Title = HellionStrings.SettingsRefactor_Migration_Title,
|
||||||
|
Content = HellionStrings.SettingsRefactor_Migration_Content,
|
||||||
|
Type = Dalamud.Interface.ImGuiNotification.NotificationType.Info,
|
||||||
|
InitialDuration = TimeSpan.FromSeconds(25),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// Hellion Chat v13 → v14 — theme-engine migration. Alle User landen
|
||||||
|
// auf "hellion-arctic" als neues Default-Theme; die alte
|
||||||
|
// HellionThemeEnabled-Flag wird deprecated und nur noch ein Release
|
||||||
|
// als Safety-Net im JSON behalten. Window-Opacity wandert von
|
||||||
|
// HellionThemeWindowOpacity in das neue WindowOpacity-Feld.
|
||||||
|
if (Config.Version < 14)
|
||||||
|
{
|
||||||
|
Config.Theme = "hellion-arctic";
|
||||||
|
// v1.2.0: alter Opacity-Wert wird nicht mehr migriert (Field entfernt).
|
||||||
|
// User die direkt v13 → v15 springen bekommen den Default 0.85.
|
||||||
|
Config.ReduceMotion = false;
|
||||||
|
Config.UseCompactDensity = false;
|
||||||
|
Config.Version = 14;
|
||||||
|
SaveConfig();
|
||||||
|
Log.Information(
|
||||||
|
"Migrated config v13 → v14: theme engine introduced, all users land on hellion-arctic; " +
|
||||||
|
"pick chat2-classic in Settings → Themes for the upstream look");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Config.Version < 15)
|
||||||
|
{
|
||||||
|
// v1.2.0 — keine Datenmigration nötig. Removal der deprecated
|
||||||
|
// Theme-Felder ist reine Schema-Bereinigung (System.Text.Json
|
||||||
|
// ignoriert unbekannte Felder im JSON, daher kein Crash bei
|
||||||
|
// Configs die noch HellionThemeEnabled/HellionThemeWindowOpacity
|
||||||
|
// serialisiert haben — die Werte verfallen einfach).
|
||||||
|
Config.Version = 15;
|
||||||
|
SaveConfig();
|
||||||
|
Log.Information(
|
||||||
|
"Migrated config v14 → v15: legacy theme fields removed " +
|
||||||
|
"(HellionThemeEnabled, HellionThemeWindowOpacity)");
|
||||||
|
}
|
||||||
|
|
||||||
|
// Hellion Chat v15 → v16 — Settings Cleanup. Re-Sortierung der
|
||||||
|
// Tabs auf der UI-Seite (datenneutral). 4 tote Felder verfallen
|
||||||
|
// beim System.Text.Json-Deserialize (OverrideStyle, ChosenStyle,
|
||||||
|
// WindowAlpha, ShowThemeQuickPicker — sind alle nicht mehr im
|
||||||
|
// Configuration-Schema definiert). WindowAlpha wird zuvor auf
|
||||||
|
// WindowOpacity gemappt damit User die ihn gesetzt hatten ihre
|
||||||
|
// Transparenz-Einstellung behalten.
|
||||||
|
if (Config.Version < 16)
|
||||||
|
{
|
||||||
|
var pluginConfigsDir = Interface.ConfigDirectory.Parent?.FullName;
|
||||||
|
var liveConfigPath = pluginConfigsDir is not null
|
||||||
|
? Path.Combine(pluginConfigsDir, $"{Interface.InternalName}.json")
|
||||||
|
: null;
|
||||||
|
|
||||||
|
// Backup-Datei neben der live Config — Pattern aus v13 Branch.
|
||||||
|
if (pluginConfigsDir is not null && liveConfigPath is not null)
|
||||||
|
{
|
||||||
|
var backupPath = Path.Combine(pluginConfigsDir, $"{Interface.InternalName}.json.pre-v16-backup");
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (File.Exists(liveConfigPath))
|
||||||
|
File.Copy(liveConfigPath, backupPath, overwrite: true);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Log.Warning(ex, "HellionChat: pre-v16 config backup failed");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Pre-v16 Felder einmalig roh aus dem JSON lesen, da sie nicht
|
||||||
|
// mehr im Configuration-Schema sind (und damit aus Config nicht
|
||||||
|
// mehr abrufbar). WindowAlpha → WindowOpacity Mapping nur wenn
|
||||||
|
// User WindowOpacity noch nicht selbst angefasst hat (Default
|
||||||
|
// 0.85), sonst gewinnt der User-Wert.
|
||||||
|
float oldWindowAlpha = 100f;
|
||||||
|
bool oldOverrideStyle = false;
|
||||||
|
if (liveConfigPath is not null)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (File.Exists(liveConfigPath))
|
||||||
|
{
|
||||||
|
var rawJson = File.ReadAllText(liveConfigPath);
|
||||||
|
using var doc = System.Text.Json.JsonDocument.Parse(rawJson);
|
||||||
|
if (doc.RootElement.TryGetProperty("WindowAlpha", out var alphaProp)
|
||||||
|
&& alphaProp.ValueKind == System.Text.Json.JsonValueKind.Number)
|
||||||
|
{
|
||||||
|
oldWindowAlpha = alphaProp.GetSingle();
|
||||||
|
}
|
||||||
|
if (doc.RootElement.TryGetProperty("OverrideStyle", out var ovProp)
|
||||||
|
&& ovProp.ValueKind is System.Text.Json.JsonValueKind.True)
|
||||||
|
{
|
||||||
|
oldOverrideStyle = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Log.Warning(ex, "HellionChat: pre-v16 legacy-field lookup failed, defaults assumed");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (oldWindowAlpha != 100f
|
||||||
|
&& Math.Abs(Config.WindowOpacity - 0.85f) < 0.001f)
|
||||||
|
{
|
||||||
|
Config.WindowOpacity = Math.Clamp(oldWindowAlpha / 100f, 0.5f, 1.0f);
|
||||||
|
Log.Information(
|
||||||
|
$"Migrated WindowAlpha {oldWindowAlpha} to WindowOpacity {Config.WindowOpacity}");
|
||||||
|
}
|
||||||
|
else if (oldWindowAlpha != 100f)
|
||||||
|
{
|
||||||
|
Log.Information(
|
||||||
|
$"Skipped WindowAlpha→WindowOpacity migration: WindowOpacity already user-set " +
|
||||||
|
$"({Config.WindowOpacity}), legacy WindowAlpha value {oldWindowAlpha} dropped.");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (oldOverrideStyle)
|
||||||
|
{
|
||||||
|
Notification.AddNotification(new Dalamud.Interface.ImGuiNotification.Notification
|
||||||
|
{
|
||||||
|
Title = "Hellion Chat 1.2.1",
|
||||||
|
Content = HellionStrings.Migration_v16_OverrideStyle_Toast,
|
||||||
|
Type = Dalamud.Interface.ImGuiNotification.NotificationType.Info,
|
||||||
|
InitialDuration = TimeSpan.FromSeconds(25),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// v1.2.1 Default-Bumps für UX-Verbesserungen. Pattern: nur
|
||||||
|
// migrieren wenn der User noch auf dem alten Default ist.
|
||||||
|
// Bei bool-Werten ist die Erkennung pragmatisch — wer den
|
||||||
|
// alten Default aktiv ausgeschaltet hatte, erlebt das als
|
||||||
|
// Regression und stellt es einmal in den Settings zurück.
|
||||||
|
// Der Trade-Off ist akzeptabel weil die alten Defaults in
|
||||||
|
// v1.2.0 erst neu eingeführt wurden und kaum jemand aktiv
|
||||||
|
// umgeschaltet hat.
|
||||||
|
if (!Config.UseCompactDensity)
|
||||||
|
{
|
||||||
|
Config.UseCompactDensity = true;
|
||||||
|
Log.Information("v16 default-bump: UseCompactDensity false → true");
|
||||||
|
}
|
||||||
|
if (!Config.HideInNewGamePlusMenu)
|
||||||
|
{
|
||||||
|
Config.HideInNewGamePlusMenu = true;
|
||||||
|
Log.Information("v16 default-bump: HideInNewGamePlusMenu false → true");
|
||||||
|
}
|
||||||
|
if (!Config.HideSameTimestamps)
|
||||||
|
{
|
||||||
|
Config.HideSameTimestamps = true;
|
||||||
|
Log.Information("v16 default-bump: HideSameTimestamps false → true");
|
||||||
|
}
|
||||||
|
if (Config.MaxLinesToRender == 5000)
|
||||||
|
{
|
||||||
|
Config.MaxLinesToRender = 2500;
|
||||||
|
Log.Information("v16 default-bump: MaxLinesToRender 5000 → 2500");
|
||||||
|
}
|
||||||
|
if (Config.ChatColours.Count == 0)
|
||||||
|
{
|
||||||
|
foreach (var (channel, colour) in Resources.ChatColourPresets.All["Hellion"].Colours)
|
||||||
|
Config.ChatColours[channel] = colour;
|
||||||
|
Log.Information("v16 default-bump: ChatColours empty → Hellion brand preset");
|
||||||
|
}
|
||||||
|
|
||||||
|
Config.Version = 16;
|
||||||
|
SaveConfig();
|
||||||
|
Log.Information(
|
||||||
|
"Migrated config v15 → v16: settings cleanup, " +
|
||||||
|
"OverrideStyle/ChosenStyle/WindowAlpha/ShowThemeQuickPicker dropped from schema");
|
||||||
|
}
|
||||||
|
|
||||||
|
// Hellion v1.0.0 default tab layout. Five thematically separated
|
||||||
|
// tabs: General catches the immediate-surroundings public chat
|
||||||
|
// (Say/Yell/Shout) only; System absorbs the rest of the technical
|
||||||
|
// and gameplay-event noise; FreeCompany, Group and Linkshell each
|
||||||
|
// own their respective channel set. Tells are not in a static
|
||||||
|
// tab anymore — Auto-Tell-Tabs spawns dedicated per-conversation
|
||||||
|
// tabs on demand. Novice-Network gets no preset tab; users who
|
||||||
|
// want it can add HellionBeginner from Settings → Tabs.
|
||||||
if (Config.Tabs.Count == 0)
|
if (Config.Tabs.Count == 0)
|
||||||
{
|
{
|
||||||
Config.Tabs.Add(TabsUtil.VanillaGeneral);
|
Config.Tabs.Add(TabsUtil.VanillaGeneral);
|
||||||
Config.Tabs.Add(TabsUtil.HellionSystem);
|
Config.Tabs.Add(TabsUtil.HellionSystem);
|
||||||
Config.Tabs.Add(TabsUtil.HellionFreeCompany);
|
Config.Tabs.Add(TabsUtil.HellionFreeCompany);
|
||||||
Config.Tabs.Add(TabsUtil.HellionParty);
|
Config.Tabs.Add(TabsUtil.HellionParty);
|
||||||
if (Config.ShowNoviceNetwork)
|
|
||||||
Config.Tabs.Add(TabsUtil.HellionBeginner);
|
|
||||||
Config.Tabs.Add(TabsUtil.HellionLinkshell);
|
Config.Tabs.Add(TabsUtil.HellionLinkshell);
|
||||||
Config.Tabs.Add(TabsUtil.VanillaTellExclusive);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
LanguageChanged(Interface.UiLanguage);
|
LanguageChanged(Interface.UiLanguage);
|
||||||
@@ -197,6 +431,22 @@ public sealed class Plugin : IDalamudPlugin
|
|||||||
ExtraChat = new ExtraChat();
|
ExtraChat = new ExtraChat();
|
||||||
FontManager = new FontManager();
|
FontManager = new FontManager();
|
||||||
|
|
||||||
|
// v1.1.0 — Theme-Engine init. Custom-Themes liegen in
|
||||||
|
// pluginConfigs/HellionChat/themes/, lazy geladen beim ersten Get.
|
||||||
|
var customThemesDir = Path.Combine(Interface.ConfigDirectory.FullName, "themes");
|
||||||
|
Directory.CreateDirectory(customThemesDir);
|
||||||
|
SeedExampleThemeIfEmpty(customThemesDir);
|
||||||
|
ThemeRegistry = new Themes.ThemeRegistry(customThemesDir);
|
||||||
|
ThemeRegistry.Switch(Config.Theme);
|
||||||
|
|
||||||
|
// Plugin integrations register their IPC subscribers up-front so
|
||||||
|
// Ready/Disposing events from the target plugins are caught from
|
||||||
|
// the very first frame, even if the user's Honorific reloads
|
||||||
|
// mid-session. See HellionChat/Integrations/HonorificService.cs.
|
||||||
|
HonorificService = new Integrations.HonorificService(Interface, Log, Framework);
|
||||||
|
|
||||||
|
StatusBar = new Ui.StatusBar();
|
||||||
|
|
||||||
MessageManager = new MessageManager(this); // Does it require UI?
|
MessageManager = new MessageManager(this); // Does it require UI?
|
||||||
|
|
||||||
// Hellion Chat — Auto-Tell-Tabs service. Subscribes to the
|
// Hellion Chat — Auto-Tell-Tabs service. Subscribes to the
|
||||||
@@ -286,6 +536,8 @@ public sealed class Plugin : IDalamudPlugin
|
|||||||
Framework.Update -= FrameworkUpdate;
|
Framework.Update -= FrameworkUpdate;
|
||||||
GameFunctions.GameFunctions.SetChatInteractable(true);
|
GameFunctions.GameFunctions.SetChatInteractable(true);
|
||||||
|
|
||||||
|
HonorificService?.Dispose();
|
||||||
|
|
||||||
WindowSystem?.RemoveAllWindows();
|
WindowSystem?.RemoveAllWindows();
|
||||||
ChatLogWindow?.Dispose();
|
ChatLogWindow?.Dispose();
|
||||||
DbViewer?.Dispose();
|
DbViewer?.Dispose();
|
||||||
@@ -460,10 +712,15 @@ public sealed class Plugin : IDalamudPlugin
|
|||||||
if (deleted > 0)
|
if (deleted > 0)
|
||||||
{
|
{
|
||||||
Log.Information($"Retention sweep deleted {deleted} expired messages.");
|
Log.Information($"Retention sweep deleted {deleted} expired messages.");
|
||||||
|
// Run the clear+refilter synchronously on the framework thread.
|
||||||
|
// Earlier this called FilterAllTabsAsync(), which is fire-and-forget
|
||||||
|
// — the .Wait() here would return as soon as the inner Task.Run was
|
||||||
|
// dispatched, racing the next sweep cycle against the still-running
|
||||||
|
// filter pass. See AUDIT-2026-05-05 [QUAL-02].
|
||||||
Framework.Run(() =>
|
Framework.Run(() =>
|
||||||
{
|
{
|
||||||
MessageManager.ClearAllTabs();
|
MessageManager.ClearAllTabs();
|
||||||
MessageManager.FilterAllTabsAsync();
|
MessageManager.FilterAllTabs();
|
||||||
}).Wait();
|
}).Wait();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -485,13 +742,10 @@ public sealed class Plugin : IDalamudPlugin
|
|||||||
|
|
||||||
private void Draw()
|
private void Draw()
|
||||||
{
|
{
|
||||||
// Hellion theme is pushed once per frame here so every plugin window
|
// Theme-Engine ist ab v14 immer aktiv; Klassik ist jetzt ein eigenes
|
||||||
// (chat log, settings, viewers, wizard, file dialog) renders with
|
// Theme statt einem deaktivierten Hellion-Theme. Active wird einmal
|
||||||
// the same palette. Skipping the push leaves the upstream Dalamud
|
// pro Frame aus der Registry gelesen.
|
||||||
// look untouched for users who flipped the toggle off.
|
using IDisposable _style = HellionStyle.PushGlobal(ThemeRegistry.Active, Config.WindowOpacity);
|
||||||
using IDisposable? _style = Config.HellionThemeEnabled
|
|
||||||
? HellionStyle.PushGlobal(Config.HellionThemeWindowOpacity)
|
|
||||||
: null;
|
|
||||||
|
|
||||||
ChatLogWindow.BeginFrame();
|
ChatLogWindow.BeginFrame();
|
||||||
|
|
||||||
@@ -502,6 +756,16 @@ public sealed class Plugin : IDalamudPlugin
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// v1.0.2 — global skip while the New Game+ menu (QuestRedo addon) is
|
||||||
|
// open. Hides every plugin window in one shot (chat log, pop-outs,
|
||||||
|
// settings, db viewer, etc.), matching the LoadingScreens pattern.
|
||||||
|
if (Config.HideInNewGamePlusMenu && GameFunctions.GameFunctions.IsAddonInteractable(GameFunctions.GameFunctions.NewGamePlusAddonName))
|
||||||
|
{
|
||||||
|
ChatLogWindow.FinalizeFrame();
|
||||||
|
TypingIpc.Update();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
ChatLogWindow.HideStateCheck();
|
ChatLogWindow.HideStateCheck();
|
||||||
|
|
||||||
Interface.UiBuilder.DisableUserUiHide = !Config.HideWhenUiHidden;
|
Interface.UiBuilder.DisableUserUiHide = !Config.HideWhenUiHidden;
|
||||||
@@ -566,4 +830,36 @@ public sealed class Plugin : IDalamudPlugin
|
|||||||
public static bool InBattle => Condition[ConditionFlag.InCombat];
|
public static bool InBattle => Condition[ConditionFlag.InCombat];
|
||||||
public static bool GposeActive => Condition[ConditionFlag.WatchingCutscene];
|
public static bool GposeActive => Condition[ConditionFlag.WatchingCutscene];
|
||||||
public static bool CutsceneActive => Condition[ConditionFlag.OccupiedInCutSceneEvent] || Condition[ConditionFlag.WatchingCutscene78];
|
public static bool CutsceneActive => Condition[ConditionFlag.OccupiedInCutSceneEvent] || Condition[ConditionFlag.WatchingCutscene78];
|
||||||
|
|
||||||
|
// v1.1.0 — wenn der themes/-Ordner leer ist, schreiben wir die embedded
|
||||||
|
// example-theme.json als Vorlage rein. Bestehende User-Customs werden
|
||||||
|
// nicht angefasst (existing JSONs lassen den Block überspringen).
|
||||||
|
private static void SeedExampleThemeIfEmpty(string dir)
|
||||||
|
{
|
||||||
|
if (Directory.EnumerateFiles(dir, "*.json").Any())
|
||||||
|
return;
|
||||||
|
|
||||||
|
var examplePath = Path.Combine(dir, "example-theme.json");
|
||||||
|
var resourceStream = typeof(Plugin).Assembly.GetManifestResourceStream("HellionChat.Themes.Builtin.example-theme.json");
|
||||||
|
if (resourceStream is null)
|
||||||
|
{
|
||||||
|
Log.Warning("Themes example template not found in assembly resources; skipping seed.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
using var fileStream = File.Create(examplePath);
|
||||||
|
resourceStream.CopyTo(fileStream);
|
||||||
|
Log.Information($"Seeded example-theme.json into {dir}");
|
||||||
|
}
|
||||||
|
catch (IOException ex)
|
||||||
|
{
|
||||||
|
Log.Warning(ex, "Failed to seed example-theme.json; user can create custom themes manually.");
|
||||||
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
resourceStream.Dispose();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using ChatTwo.Code;
|
using HellionChat.Code;
|
||||||
|
|
||||||
namespace ChatTwo.Privacy;
|
namespace HellionChat.Privacy;
|
||||||
|
|
||||||
internal static class PrivacyDefaults
|
internal static class PrivacyDefaults
|
||||||
{
|
{
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using ChatTwo.Code;
|
using HellionChat.Code;
|
||||||
using ChatTwo.Util;
|
using HellionChat.Util;
|
||||||
|
|
||||||
namespace ChatTwo.Resources;
|
namespace HellionChat.Resources;
|
||||||
|
|
||||||
// Hellion Chat — v0.6.0 built-in colour presets for the ChatColours
|
// Hellion Chat — v0.6.0 built-in colour presets for the ChatColours
|
||||||
// settings section. Read-only static data; users apply a preset via the
|
// settings section. Read-only static data; users apply a preset via the
|
||||||
Generated
+127
-2
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#nullable enable
|
#nullable enable
|
||||||
|
|
||||||
namespace ChatTwo.Resources;
|
namespace HellionChat.Resources;
|
||||||
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute]
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute]
|
||||||
@@ -26,7 +26,7 @@ internal class HellionStrings
|
|||||||
get
|
get
|
||||||
{
|
{
|
||||||
if (resourceMan is null)
|
if (resourceMan is null)
|
||||||
resourceMan = new global::System.Resources.ResourceManager("ChatTwo.Resources.HellionStrings", typeof(HellionStrings).Assembly);
|
resourceMan = new global::System.Resources.ResourceManager("HellionChat.Resources.HellionStrings", typeof(HellionStrings).Assembly);
|
||||||
return resourceMan;
|
return resourceMan;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -179,6 +179,8 @@ internal class HellionStrings
|
|||||||
internal static string ChatLog_AutoTellTabs_Compact_Description => Get(nameof(ChatLog_AutoTellTabs_Compact_Description));
|
internal static string ChatLog_AutoTellTabs_Compact_Description => Get(nameof(ChatLog_AutoTellTabs_Compact_Description));
|
||||||
internal static string ChatLog_AutoTellTabs_GreetedToggle_Name => Get(nameof(ChatLog_AutoTellTabs_GreetedToggle_Name));
|
internal static string ChatLog_AutoTellTabs_GreetedToggle_Name => Get(nameof(ChatLog_AutoTellTabs_GreetedToggle_Name));
|
||||||
internal static string ChatLog_AutoTellTabs_GreetedToggle_Description => Get(nameof(ChatLog_AutoTellTabs_GreetedToggle_Description));
|
internal static string ChatLog_AutoTellTabs_GreetedToggle_Description => Get(nameof(ChatLog_AutoTellTabs_GreetedToggle_Description));
|
||||||
|
internal static string ChatLog_AutoTellTabs_OpenAsPopout_Name => Get(nameof(ChatLog_AutoTellTabs_OpenAsPopout_Name));
|
||||||
|
internal static string ChatLog_AutoTellTabs_OpenAsPopout_Description => Get(nameof(ChatLog_AutoTellTabs_OpenAsPopout_Description));
|
||||||
internal static string ChatLog_AutoTellTabs_PreloadHint => Get(nameof(ChatLog_AutoTellTabs_PreloadHint));
|
internal static string ChatLog_AutoTellTabs_PreloadHint => Get(nameof(ChatLog_AutoTellTabs_PreloadHint));
|
||||||
internal static string ChatLog_AutoTellTabs_ConflictHint => Get(nameof(ChatLog_AutoTellTabs_ConflictHint));
|
internal static string ChatLog_AutoTellTabs_ConflictHint => Get(nameof(ChatLog_AutoTellTabs_ConflictHint));
|
||||||
|
|
||||||
@@ -201,6 +203,37 @@ internal class HellionStrings
|
|||||||
internal static string Settings_Tab_Database => Get(nameof(Settings_Tab_Database));
|
internal static string Settings_Tab_Database => Get(nameof(Settings_Tab_Database));
|
||||||
internal static string Settings_Tab_Information => Get(nameof(Settings_Tab_Information));
|
internal static string Settings_Tab_Information => Get(nameof(Settings_Tab_Information));
|
||||||
|
|
||||||
|
// v1.1.0 — Settings card-grid overview
|
||||||
|
internal static string Settings_Card_General_Title => Get(nameof(Settings_Card_General_Title));
|
||||||
|
internal static string Settings_Card_General_Subtext => Get(nameof(Settings_Card_General_Subtext));
|
||||||
|
internal static string Settings_Card_Appearance_Title => Get(nameof(Settings_Card_Appearance_Title));
|
||||||
|
internal static string Settings_Card_Appearance_Subtext => Get(nameof(Settings_Card_Appearance_Subtext));
|
||||||
|
internal static string Settings_Card_Themes_Title => Get(nameof(Settings_Card_Themes_Title));
|
||||||
|
internal static string Settings_Card_Themes_Subtext => Get(nameof(Settings_Card_Themes_Subtext));
|
||||||
|
internal static string Settings_Card_Window_Title => Get(nameof(Settings_Card_Window_Title));
|
||||||
|
internal static string Settings_Card_Window_Subtext => Get(nameof(Settings_Card_Window_Subtext));
|
||||||
|
internal static string Settings_Card_Chat_Title => Get(nameof(Settings_Card_Chat_Title));
|
||||||
|
internal static string Settings_Card_Chat_Subtext => Get(nameof(Settings_Card_Chat_Subtext));
|
||||||
|
internal static string Settings_Card_Tabs_Title => Get(nameof(Settings_Card_Tabs_Title));
|
||||||
|
internal static string Settings_Card_Tabs_Subtext => Get(nameof(Settings_Card_Tabs_Subtext));
|
||||||
|
internal static string Settings_Card_Privacy_Title => Get(nameof(Settings_Card_Privacy_Title));
|
||||||
|
internal static string Settings_Card_Privacy_Subtext => Get(nameof(Settings_Card_Privacy_Subtext));
|
||||||
|
internal static string Settings_Card_Database_Title => Get(nameof(Settings_Card_Database_Title));
|
||||||
|
internal static string Settings_Card_Database_Subtext => Get(nameof(Settings_Card_Database_Subtext));
|
||||||
|
internal static string Settings_Card_Information_Title => Get(nameof(Settings_Card_Information_Title));
|
||||||
|
internal static string Settings_Card_Information_Subtext => Get(nameof(Settings_Card_Information_Subtext));
|
||||||
|
|
||||||
|
// v1.1.0 — Themes-Settings-Tab
|
||||||
|
internal static string Settings_Tab_Themes => Get(nameof(Settings_Tab_Themes));
|
||||||
|
internal static string Settings_Themes_Active => Get(nameof(Settings_Themes_Active));
|
||||||
|
internal static string Settings_Themes_BuiltIns => Get(nameof(Settings_Themes_BuiltIns));
|
||||||
|
internal static string Settings_Themes_Custom => Get(nameof(Settings_Themes_Custom));
|
||||||
|
internal static string Settings_Themes_OpenFolder => Get(nameof(Settings_Themes_OpenFolder));
|
||||||
|
internal static string Settings_Themes_ExportActive => Get(nameof(Settings_Themes_ExportActive));
|
||||||
|
internal static string Settings_Themes_ApplyChatColors_Hint => Get(nameof(Settings_Themes_ApplyChatColors_Hint));
|
||||||
|
internal static string Settings_Themes_ApplyChatColors_Apply => Get(nameof(Settings_Themes_ApplyChatColors_Apply));
|
||||||
|
internal static string Settings_Themes_ApplyChatColors_Keep => Get(nameof(Settings_Themes_ApplyChatColors_Keep));
|
||||||
|
|
||||||
// Hellion Chat — General-Tab section headings
|
// Hellion Chat — General-Tab section headings
|
||||||
internal static string Settings_General_Input_Heading => Get(nameof(Settings_General_Input_Heading));
|
internal static string Settings_General_Input_Heading => Get(nameof(Settings_General_Input_Heading));
|
||||||
internal static string Settings_General_Audio_Heading => Get(nameof(Settings_General_Audio_Heading));
|
internal static string Settings_General_Audio_Heading => Get(nameof(Settings_General_Audio_Heading));
|
||||||
@@ -243,6 +276,11 @@ internal class HellionStrings
|
|||||||
internal static string Tabs_Presets_Linkshell => Get(nameof(Tabs_Presets_Linkshell));
|
internal static string Tabs_Presets_Linkshell => Get(nameof(Tabs_Presets_Linkshell));
|
||||||
internal static string Tabs_Presets_Linkshell_Hint => Get(nameof(Tabs_Presets_Linkshell_Hint));
|
internal static string Tabs_Presets_Linkshell_Hint => Get(nameof(Tabs_Presets_Linkshell_Hint));
|
||||||
|
|
||||||
|
// Hellion Chat — v1.2.0 per-tab icon override
|
||||||
|
internal static string Tabs_Icon_Label => Get(nameof(Tabs_Icon_Label));
|
||||||
|
internal static string Tabs_Icon_HelpMarker => Get(nameof(Tabs_Icon_HelpMarker));
|
||||||
|
internal static string Tabs_Icon_DefaultOption => Get(nameof(Tabs_Icon_DefaultOption));
|
||||||
|
|
||||||
// Hellion Chat — v0.6.0 chat colour presets (display labels)
|
// Hellion Chat — v0.6.0 chat colour presets (display labels)
|
||||||
internal static string ChatColourPresets_Default => Get(nameof(ChatColourPresets_Default));
|
internal static string ChatColourPresets_Default => Get(nameof(ChatColourPresets_Default));
|
||||||
internal static string ChatColourPresets_HighContrast => Get(nameof(ChatColourPresets_HighContrast));
|
internal static string ChatColourPresets_HighContrast => Get(nameof(ChatColourPresets_HighContrast));
|
||||||
@@ -259,8 +297,95 @@ internal class HellionStrings
|
|||||||
internal static string Settings_Window_PopOutInputEnabled_Name => Get(nameof(Settings_Window_PopOutInputEnabled_Name));
|
internal static string Settings_Window_PopOutInputEnabled_Name => Get(nameof(Settings_Window_PopOutInputEnabled_Name));
|
||||||
internal static string Settings_Window_PopOutInputEnabled_Description => Get(nameof(Settings_Window_PopOutInputEnabled_Description));
|
internal static string Settings_Window_PopOutInputEnabled_Description => Get(nameof(Settings_Window_PopOutInputEnabled_Description));
|
||||||
|
|
||||||
|
// Hellion Chat — Window position recovery (off-screen safety net)
|
||||||
|
internal static string Settings_Window_ResetPosition_Name => Get(nameof(Settings_Window_ResetPosition_Name));
|
||||||
|
internal static string Settings_Window_ResetPosition_Description => Get(nameof(Settings_Window_ResetPosition_Description));
|
||||||
|
|
||||||
// Hellion Chat — v0.6.0 one-time hint banner shown inside pop-outs
|
// Hellion Chat — v0.6.0 one-time hint banner shown inside pop-outs
|
||||||
internal static string Popout_v060_HintText => Get(nameof(Popout_v060_HintText));
|
internal static string Popout_v060_HintText => Get(nameof(Popout_v060_HintText));
|
||||||
internal static string Popout_v060_HintAck => Get(nameof(Popout_v060_HintAck));
|
internal static string Popout_v060_HintAck => Get(nameof(Popout_v060_HintAck));
|
||||||
internal static string Popout_v060_HintOpenSettings => Get(nameof(Popout_v060_HintOpenSettings));
|
internal static string Popout_v060_HintOpenSettings => Get(nameof(Popout_v060_HintOpenSettings));
|
||||||
|
|
||||||
|
// Hellion Chat — v0.6.1 pop-out header hint banner (discoverability)
|
||||||
|
internal static string Hint_v061_PopOutHeader_Body => Get(nameof(Hint_v061_PopOutHeader_Body));
|
||||||
|
internal static string Hint_v061_PopOutHeader_Ack => Get(nameof(Hint_v061_PopOutHeader_Ack));
|
||||||
|
internal static string Hint_v061_PopOutHeader_OpenSettings => Get(nameof(Hint_v061_PopOutHeader_OpenSettings));
|
||||||
|
|
||||||
|
// Hellion Chat — v1.0.0 Chat 2 parallel-load conflict detection
|
||||||
|
internal static string ChatTwoConflictTitle => Get(nameof(ChatTwoConflictTitle));
|
||||||
|
internal static string ChatTwoConflictBody => Get(nameof(ChatTwoConflictBody));
|
||||||
|
internal static string ChatTwoConflictAction => Get(nameof(ChatTwoConflictAction));
|
||||||
|
|
||||||
|
// Hellion Chat — v1.2.0 Bottom-Status-Bar Privacy-Badge labels
|
||||||
|
internal static string StatusBar_Privacy_Enabled => Get(nameof(StatusBar_Privacy_Enabled));
|
||||||
|
internal static string StatusBar_Privacy_Open => Get(nameof(StatusBar_Privacy_Open));
|
||||||
|
|
||||||
|
// Hellion Chat — v1.2.0 Appearance / Compact-Density toggle
|
||||||
|
internal static string Appearance_UseCompactDensity_Name => Get(nameof(Appearance_UseCompactDensity_Name));
|
||||||
|
internal static string Appearance_UseCompactDensity_Description => Get(nameof(Appearance_UseCompactDensity_Description));
|
||||||
|
|
||||||
|
// Hellion Chat — v1.2.1 Settings Cleanup: new card titles + subtexts
|
||||||
|
internal static string Settings_Card_ThemeAndLayout_Title => Get(nameof(Settings_Card_ThemeAndLayout_Title));
|
||||||
|
internal static string Settings_Card_ThemeAndLayout_Subtext => Get(nameof(Settings_Card_ThemeAndLayout_Subtext));
|
||||||
|
internal static string Settings_Card_FontsAndColours_Title => Get(nameof(Settings_Card_FontsAndColours_Title));
|
||||||
|
internal static string Settings_Card_FontsAndColours_Subtext => Get(nameof(Settings_Card_FontsAndColours_Subtext));
|
||||||
|
internal static string Settings_Card_DataManagement_Title => Get(nameof(Settings_Card_DataManagement_Title));
|
||||||
|
internal static string Settings_Card_DataManagement_Subtext => Get(nameof(Settings_Card_DataManagement_Subtext));
|
||||||
|
internal static string Settings_Card_Integrations_Title => Get(nameof(Settings_Card_Integrations_Title));
|
||||||
|
internal static string Settings_Card_Integrations_Subtext => Get(nameof(Settings_Card_Integrations_Subtext));
|
||||||
|
|
||||||
|
// Hellion Chat — v1.2.1 Theme & Layout tab section headings + WindowOpacity slider
|
||||||
|
internal static string Settings_ThemeAndLayout_Theme_Heading => Get(nameof(Settings_ThemeAndLayout_Theme_Heading));
|
||||||
|
internal static string Settings_ThemeAndLayout_WindowStyle_Heading => Get(nameof(Settings_ThemeAndLayout_WindowStyle_Heading));
|
||||||
|
internal static string Settings_ThemeAndLayout_TimestampStyle_Heading => Get(nameof(Settings_ThemeAndLayout_TimestampStyle_Heading));
|
||||||
|
internal static string Settings_ThemeAndLayout_WindowOpacity_Name => Get(nameof(Settings_ThemeAndLayout_WindowOpacity_Name));
|
||||||
|
internal static string Settings_ThemeAndLayout_WindowOpacity_Description => Get(nameof(Settings_ThemeAndLayout_WindowOpacity_Description));
|
||||||
|
|
||||||
|
// Hellion Chat — v1.2.1 Fonts & Colours tab section headings
|
||||||
|
internal static string Settings_FontsAndColours_Fonts_Heading => Get(nameof(Settings_FontsAndColours_Fonts_Heading));
|
||||||
|
internal static string Settings_FontsAndColours_Colours_Heading => Get(nameof(Settings_FontsAndColours_Colours_Heading));
|
||||||
|
|
||||||
|
// Hellion Chat — v1.2.1 Data Management tab section headings
|
||||||
|
internal static string Settings_DataManagement_Storage_Heading => Get(nameof(Settings_DataManagement_Storage_Heading));
|
||||||
|
internal static string Settings_DataManagement_Retention_Heading => Get(nameof(Settings_DataManagement_Retention_Heading));
|
||||||
|
internal static string Settings_DataManagement_Cleanup_Heading => Get(nameof(Settings_DataManagement_Cleanup_Heading));
|
||||||
|
internal static string Settings_DataManagement_Export_Heading => Get(nameof(Settings_DataManagement_Export_Heading));
|
||||||
|
internal static string Settings_DataManagement_DbViewer_Heading => Get(nameof(Settings_DataManagement_DbViewer_Heading));
|
||||||
|
internal static string Settings_DataManagement_Advanced_Heading => Get(nameof(Settings_DataManagement_Advanced_Heading));
|
||||||
|
|
||||||
|
// Hellion Chat — v1.2.1 Window-tab Behaviour heading (replaces Frame heading)
|
||||||
|
internal static string Settings_Window_Frame_Behaviour_Heading => Get(nameof(Settings_Window_Frame_Behaviour_Heading));
|
||||||
|
|
||||||
|
// Hellion Chat — v1.2.1 Migration v15 → v16 toast
|
||||||
|
internal static string Migration_v16_OverrideStyle_Toast => Get(nameof(Migration_v16_OverrideStyle_Toast));
|
||||||
|
|
||||||
|
// Hellion Chat — v1.3.0 Integrations tab (Honorific + Coming-Soon roadmap)
|
||||||
|
internal static string Settings_Tab_Integrations => Get(nameof(Settings_Tab_Integrations));
|
||||||
|
internal static string Settings_Integrations_Intro => Get(nameof(Settings_Integrations_Intro));
|
||||||
|
internal static string Settings_Integrations_Honorific_SectionHeader => Get(nameof(Settings_Integrations_Honorific_SectionHeader));
|
||||||
|
internal static string Settings_Integrations_Honorific_Status_Detected => Get(nameof(Settings_Integrations_Honorific_Status_Detected));
|
||||||
|
internal static string Settings_Integrations_Honorific_Status_NotInstalled => Get(nameof(Settings_Integrations_Honorific_Status_NotInstalled));
|
||||||
|
internal static string Settings_Integrations_Honorific_Status_Incompatible => Get(nameof(Settings_Integrations_Honorific_Status_Incompatible));
|
||||||
|
internal static string Settings_Integrations_Honorific_Toggle => Get(nameof(Settings_Integrations_Honorific_Toggle));
|
||||||
|
internal static string Settings_Integrations_Honorific_ToggleHint => Get(nameof(Settings_Integrations_Honorific_ToggleHint));
|
||||||
|
internal static string Settings_Integrations_Honorific_LinkRepo => Get(nameof(Settings_Integrations_Honorific_LinkRepo));
|
||||||
|
internal static string Settings_Integrations_Honorific_LinkAuthor => Get(nameof(Settings_Integrations_Honorific_LinkAuthor));
|
||||||
|
internal static string Settings_Integrations_ComingSoon_SectionHeader => Get(nameof(Settings_Integrations_ComingSoon_SectionHeader));
|
||||||
|
internal static string Settings_Integrations_ComingSoon_Intro => Get(nameof(Settings_Integrations_ComingSoon_Intro));
|
||||||
|
internal static string Settings_Integrations_ComingSoon_ContextMenu_Title => Get(nameof(Settings_Integrations_ComingSoon_ContextMenu_Title));
|
||||||
|
internal static string Settings_Integrations_ComingSoon_ContextMenu_Description => Get(nameof(Settings_Integrations_ComingSoon_ContextMenu_Description));
|
||||||
|
internal static string Settings_Integrations_ComingSoon_Notifications_Title => Get(nameof(Settings_Integrations_ComingSoon_Notifications_Title));
|
||||||
|
internal static string Settings_Integrations_ComingSoon_Notifications_Description => Get(nameof(Settings_Integrations_ComingSoon_Notifications_Description));
|
||||||
|
internal static string Settings_Integrations_ComingSoon_RPStatus_Title => Get(nameof(Settings_Integrations_ComingSoon_RPStatus_Title));
|
||||||
|
internal static string Settings_Integrations_ComingSoon_RPStatus_Description => Get(nameof(Settings_Integrations_ComingSoon_RPStatus_Description));
|
||||||
|
internal static string Settings_Integrations_ComingSoon_ExtraChat_Title => Get(nameof(Settings_Integrations_ComingSoon_ExtraChat_Title));
|
||||||
|
internal static string Settings_Integrations_ComingSoon_ExtraChat_Description => Get(nameof(Settings_Integrations_ComingSoon_ExtraChat_Description));
|
||||||
|
internal static string Settings_Integrations_ComingSoon_QuickDM_Title => Get(nameof(Settings_Integrations_ComingSoon_QuickDM_Title));
|
||||||
|
internal static string Settings_Integrations_ComingSoon_QuickDM_Description => Get(nameof(Settings_Integrations_ComingSoon_QuickDM_Description));
|
||||||
|
internal static string Settings_Integrations_GotAnIdea_SectionHeader => Get(nameof(Settings_Integrations_GotAnIdea_SectionHeader));
|
||||||
|
internal static string Settings_Integrations_GotAnIdea_Body => Get(nameof(Settings_Integrations_GotAnIdea_Body));
|
||||||
|
internal static string Settings_Integrations_GotAnIdea_LinkLabel => Get(nameof(Settings_Integrations_GotAnIdea_LinkLabel));
|
||||||
|
|
||||||
|
// Hellion Chat — v1.3.0 Honorific title slot tooltip
|
||||||
|
internal static string ChatHeader_HonorificTitle_Tooltip => Get(nameof(ChatHeader_HonorificTitle_Tooltip));
|
||||||
}
|
}
|
||||||
+284
-3
@@ -19,7 +19,7 @@
|
|||||||
<value>Datenschutz-Filter aktivieren</value>
|
<value>Datenschutz-Filter aktivieren</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Privacy_FilterEnabled_Description" xml:space="preserve">
|
<data name="Privacy_FilterEnabled_Description" xml:space="preserve">
|
||||||
<value>Wenn aktiviert, werden nur Nachrichten aus den erlaubten Kanälen in die Datenbank gespeichert. Beim Deaktivieren gilt wieder das Standard-Verhalten von ChatTwo, also alles außer Battle-Logs wird gespeichert.</value>
|
<value>Wenn aktiviert, werden nur Nachrichten aus den erlaubten Kanälen in die Datenbank gespeichert. Beim Deaktivieren gilt wieder das Standardverhalten, also alles außer Battle-Logs wird gespeichert.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Privacy_FilterEnabled_StorageOnly_Help" xml:space="preserve">
|
<data name="Privacy_FilterEnabled_StorageOnly_Help" xml:space="preserve">
|
||||||
<value>Der Filter steuert nur, was in die lokale Datenbank geschrieben wird. Im Chat-Log siehst du weiterhin jede Nachricht live, ausgeschlossene Kanäle werden nur nicht mehr gespeichert. Wenn du Kanäle auch aus der sichtbaren Anzeige entfernen willst, nutze die normalen Chat-Tab-Filter im Spiel.</value>
|
<value>Der Filter steuert nur, was in die lokale Datenbank geschrieben wird. Im Chat-Log siehst du weiterhin jede Nachricht live, ausgeschlossene Kanäle werden nur nicht mehr gespeichert. Wenn du Kanäle auch aus der sichtbaren Anzeige entfernen willst, nutze die normalen Chat-Tab-Filter im Spiel.</value>
|
||||||
@@ -211,7 +211,7 @@
|
|||||||
<value>Volle Historie</value>
|
<value>Volle Historie</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Wizard_Profile_FullHistory_Description" xml:space="preserve">
|
<data name="Wizard_Profile_FullHistory_Description" xml:space="preserve">
|
||||||
<value>Deaktiviert den Datenschutz-Filter komplett. Speichert alles außer Battle-Logs, wie das Original-Chat 2. Aufbewahrung ist AUS, die Historie wächst dauerhaft.</value>
|
<value>Deaktiviert den Datenschutz-Filter komplett. Speichert alles außer Battle-Logs (das ursprüngliche Voll-Historie-Verhalten). Aufbewahrung ist AUS, die Historie wächst dauerhaft.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Wizard_Profile_FullHistory_GdprWarning" xml:space="preserve">
|
<data name="Wizard_Profile_FullHistory_GdprWarning" xml:space="preserve">
|
||||||
<value>DSGVO-Hinweis: Wenn du Nachrichten Dritter (Sagen/Schreien/Rufen fremder Spieler, NPC-Dialoge mit Spielernamen usw.) zeitlich unbegrenzt speicherst, kann das die Ausnahme für rein persönliche oder familiäre Tätigkeiten (Art. 2 Abs. 2 Buchst. c) sprengen. Nutze dieses Profil nur, wenn du einen klaren Grund hast, das volle Archiv zu behalten.</value>
|
<value>DSGVO-Hinweis: Wenn du Nachrichten Dritter (Sagen/Schreien/Rufen fremder Spieler, NPC-Dialoge mit Spielernamen usw.) zeitlich unbegrenzt speicherst, kann das die Ausnahme für rein persönliche oder familiäre Tätigkeiten (Art. 2 Abs. 2 Buchst. c) sprengen. Nutze dieses Profil nur, wenn du einen klaren Grund hast, das volle Archiv zu behalten.</value>
|
||||||
@@ -406,6 +406,12 @@
|
|||||||
<data name="ChatLog_AutoTellTabs_GreetedToggle_Description" xml:space="preserve">
|
<data name="ChatLog_AutoTellTabs_GreetedToggle_Description" xml:space="preserve">
|
||||||
<value>Fügt neben jedem Auto-Tell-Tab einen Klick-Button hinzu, um einen Gesprächspartner als bereits begrüßt zu markieren — der Tab-Name wird dann gedimmt. Nützlich für Club-Greeter, die parallel viele Konversationen führen. Standardmäßig aus.</value>
|
<value>Fügt neben jedem Auto-Tell-Tab einen Klick-Button hinzu, um einen Gesprächspartner als bereits begrüßt zu markieren — der Tab-Name wird dann gedimmt. Nützlich für Club-Greeter, die parallel viele Konversationen führen. Standardmäßig aus.</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="ChatLog_AutoTellTabs_OpenAsPopout_Name" xml:space="preserve">
|
||||||
|
<value>Neue /tell-Tabs direkt als Pop-Out öffnen</value>
|
||||||
|
</data>
|
||||||
|
<data name="ChatLog_AutoTellTabs_OpenAsPopout_Description" xml:space="preserve">
|
||||||
|
<value>Wenn aktiv, wird jeder neu angelegte /tell-Tab sofort als eigenes Fenster geöffnet. Beim Schließen des Fensters kehrt der Tab in die Seitenleiste zurück.</value>
|
||||||
|
</data>
|
||||||
<data name="ChatLog_AutoTellTabs_PreloadHint" xml:space="preserve">
|
<data name="ChatLog_AutoTellTabs_PreloadHint" xml:space="preserve">
|
||||||
<value>Die Anzahl der vorgeladenen Tells lässt sich im Datenschutz-Tab einstellen.</value>
|
<value>Die Anzahl der vorgeladenen Tells lässt sich im Datenschutz-Tab einstellen.</value>
|
||||||
</data>
|
</data>
|
||||||
@@ -555,8 +561,19 @@
|
|||||||
<data name="Tabs_Presets_Linkshell_Hint" xml:space="preserve">
|
<data name="Tabs_Presets_Linkshell_Hint" xml:space="preserve">
|
||||||
<value>Wenn du mehrere Linkshells benutzt, empfiehlt der Maintainer einen Tab pro Shell für eine sauberere Übersicht. Tab duplizieren und je Kopie die Kanalauswahl einschränken.</value>
|
<value>Wenn du mehrere Linkshells benutzt, empfiehlt der Maintainer einen Tab pro Shell für eine sauberere Übersicht. Tab duplizieren und je Kopie die Kanalauswahl einschränken.</value>
|
||||||
</data>
|
</data>
|
||||||
|
|
||||||
|
<!-- Hellion Chat — v1.2.0 per-tab icon override -->
|
||||||
|
<data name="Tabs_Icon_Label" xml:space="preserve">
|
||||||
|
<value>Tab-Icon</value>
|
||||||
|
</data>
|
||||||
|
<data name="Tabs_Icon_HelpMarker" xml:space="preserve">
|
||||||
|
<value>FontAwesome-Glyph für die Sidebar. Default greift auf Tab-Name oder Channel-Typ.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Tabs_Icon_DefaultOption" xml:space="preserve">
|
||||||
|
<value>(Default-Mapping)</value>
|
||||||
|
</data>
|
||||||
<data name="ChatColourPresets_Default" xml:space="preserve">
|
<data name="ChatColourPresets_Default" xml:space="preserve">
|
||||||
<value>ChatTwo Standard</value>
|
<value>Klassik (Chat 2 Default)</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="ChatColourPresets_HighContrast" xml:space="preserve">
|
<data name="ChatColourPresets_HighContrast" xml:space="preserve">
|
||||||
<value>Hoher Kontrast</value>
|
<value>Hoher Kontrast</value>
|
||||||
@@ -585,6 +602,12 @@
|
|||||||
<data name="Settings_Window_PopOutInputEnabled_Description" xml:space="preserve">
|
<data name="Settings_Window_PopOutInputEnabled_Description" xml:space="preserve">
|
||||||
<value>Master-Switch: erlaubt direktes Tippen und Absenden in jedem Pop-Out-Fenster (inkl. Auto-Tell-Tabs). Channel-Wechsel im Pop-Out wirkt global wie im Hauptfenster; Text-Buffer und History-Cursor sind pro Pop-Out unabhängig.</value>
|
<value>Master-Switch: erlaubt direktes Tippen und Absenden in jedem Pop-Out-Fenster (inkl. Auto-Tell-Tabs). Channel-Wechsel im Pop-Out wirkt global wie im Hauptfenster; Text-Buffer und History-Cursor sind pro Pop-Out unabhängig.</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="Settings_Window_ResetPosition_Name" xml:space="preserve">
|
||||||
|
<value>Fenster-Position zurücksetzen</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Window_ResetPosition_Description" xml:space="preserve">
|
||||||
|
<value>Holt das Chat-Fenster und alle aktiven Pop-Outs zurück in die linke obere Ecke des Hauptmonitors. Hilfreich wenn ein Fenster nach einem Display-Layout-Wechsel außerhalb des sichtbaren Bereichs gelandet ist (Monitor abgezogen, Auflösung geändert). Das Plugin macht außerdem einmal pro Session einen automatischen Bounds-Check, dieser Button ist der manuelle Notausgang falls trotzdem etwas unerreichbar bleibt.</value>
|
||||||
|
</data>
|
||||||
<data name="Popout_v060_HintText" xml:space="preserve">
|
<data name="Popout_v060_HintText" xml:space="preserve">
|
||||||
<value>Neu in v0.6.0: Du kannst jetzt direkt im Pop-Out tippen. Master-Switch in den Fenster-Settings aktivieren.</value>
|
<value>Neu in v0.6.0: Du kannst jetzt direkt im Pop-Out tippen. Master-Switch in den Fenster-Settings aktivieren.</value>
|
||||||
</data>
|
</data>
|
||||||
@@ -594,4 +617,262 @@
|
|||||||
<data name="Popout_v060_HintOpenSettings" xml:space="preserve">
|
<data name="Popout_v060_HintOpenSettings" xml:space="preserve">
|
||||||
<value>Fenster-Settings öffnen</value>
|
<value>Fenster-Settings öffnen</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="Hint_v061_PopOutHeader_Body" xml:space="preserve">
|
||||||
|
<value>Du kannst jeden Chat-Tab als eigenes Fenster öffnen. Klicke auf das Fenster-Symbol oben rechts oder rechtsklicke den Tab. Neu in v0.6.1: die Pop-Out-Eingabe ist standardmäßig aktiv (abschaltbar unter Einstellungen → Fenster).</value>
|
||||||
|
</data>
|
||||||
|
<data name="Hint_v061_PopOutHeader_Ack" xml:space="preserve">
|
||||||
|
<value>Verstanden</value>
|
||||||
|
</data>
|
||||||
|
<data name="Hint_v061_PopOutHeader_OpenSettings" xml:space="preserve">
|
||||||
|
<value>Einstellungen öffnen</value>
|
||||||
|
</data>
|
||||||
|
<data name="ChatTwoConflictTitle" xml:space="preserve">
|
||||||
|
<value>Hellion Chat kann nicht starten, solange Chat 2 geladen ist.</value>
|
||||||
|
</data>
|
||||||
|
<data name="ChatTwoConflictBody" xml:space="preserve">
|
||||||
|
<value>Hellion Chat ist ein eigenständiger Fork von Chat 2. Beide Plugins ersetzen dasselbe Chat-Fenster im Spiel und würden zur Laufzeit kollidieren.</value>
|
||||||
|
</data>
|
||||||
|
<data name="ChatTwoConflictAction" xml:space="preserve">
|
||||||
|
<value>Chat 2 in /xlplugins deaktivieren, danach Hellion Chat erneut aktivieren.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_General_Title" xml:space="preserve">
|
||||||
|
<value>Allgemein</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_General_Subtext" xml:space="preserve">
|
||||||
|
<value>Plugin-globale Einstellungen — Sprache, Eingabe, Audio, Performance.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_Appearance_Title" xml:space="preserve">
|
||||||
|
<value>Erscheinungsbild</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_Appearance_Subtext" xml:space="preserve">
|
||||||
|
<value>Fensterdeckkraft, Schriften, Bewegung</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_Themes_Title" xml:space="preserve">
|
||||||
|
<value>Themes</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_Themes_Subtext" xml:space="preserve">
|
||||||
|
<value>Theme wählen oder eigenes importieren</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_Window_Title" xml:space="preserve">
|
||||||
|
<value>Fenster</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_Window_Subtext" xml:space="preserve">
|
||||||
|
<value>Verhalten des Fensters — wann es da ist, ob es bewegt werden kann.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_Chat_Title" xml:space="preserve">
|
||||||
|
<value>Chat</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_Chat_Subtext" xml:space="preserve">
|
||||||
|
<value>Wie Nachrichten angezeigt werden — Tells, Vorschau, Verhalten, Emotes.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_Tabs_Title" xml:space="preserve">
|
||||||
|
<value>Tabs</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_Tabs_Subtext" xml:space="preserve">
|
||||||
|
<value>Tab-Verwaltung — eigene Chat-Tabs anlegen und konfigurieren.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_Privacy_Title" xml:space="preserve">
|
||||||
|
<value>Datenschutz</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_Privacy_Subtext" xml:space="preserve">
|
||||||
|
<value>Was darf gespeichert werden — Privacy-Filter pro Channel.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_Database_Title" xml:space="preserve">
|
||||||
|
<value>Datenbank</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_Database_Subtext" xml:space="preserve">
|
||||||
|
<value>Speicher, Migration, alte Bereinigung</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_Information_Title" xml:space="preserve">
|
||||||
|
<value>Information</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_Information_Subtext" xml:space="preserve">
|
||||||
|
<value>Über das Plugin — Version, Mission, Lizenz, Changelog.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Tab_Themes" xml:space="preserve">
|
||||||
|
<value>Themes</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Themes_Active" xml:space="preserve">
|
||||||
|
<value>Aktiv: {0}</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Themes_BuiltIns" xml:space="preserve">
|
||||||
|
<value>Eingebaute Themes</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Themes_Custom" xml:space="preserve">
|
||||||
|
<value>Eigene Themes</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Themes_OpenFolder" xml:space="preserve">
|
||||||
|
<value>Themes-Ordner öffnen</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Themes_ExportActive" xml:space="preserve">
|
||||||
|
<value>Aktives exportieren...</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Themes_ApplyChatColors_Hint" xml:space="preserve">
|
||||||
|
<value>Dieses Theme schlägt eigene Channel-Farben vor.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Themes_ApplyChatColors_Apply" xml:space="preserve">
|
||||||
|
<value>Übernehmen</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Themes_ApplyChatColors_Keep" xml:space="preserve">
|
||||||
|
<value>Behalten</value>
|
||||||
|
</data>
|
||||||
|
<data name="StatusBar_Privacy_Enabled" xml:space="preserve">
|
||||||
|
<value>Privacy-First</value>
|
||||||
|
</data>
|
||||||
|
<data name="StatusBar_Privacy_Open" xml:space="preserve">
|
||||||
|
<value>Offen</value>
|
||||||
|
</data>
|
||||||
|
<data name="Appearance_UseCompactDensity_Name" xml:space="preserve">
|
||||||
|
<value>Kompakte Dichte</value>
|
||||||
|
</data>
|
||||||
|
<data name="Appearance_UseCompactDensity_Description" xml:space="preserve">
|
||||||
|
<value>Schaltet das Message-Layout vom Card-Row-Default zurück auf einzeilige `[HH:mm] Sender: Text` Zeilen.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_ThemeAndLayout_Title" xml:space="preserve">
|
||||||
|
<value>Theme & Layout</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_ThemeAndLayout_Subtext" xml:space="preserve">
|
||||||
|
<value>Wie das Fenster aussieht — Theme, Rahmen, Zeitstempel-Style.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_FontsAndColours_Title" xml:space="preserve">
|
||||||
|
<value>Schriften & Farben</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_FontsAndColours_Subtext" xml:space="preserve">
|
||||||
|
<value>Lesbarkeit — Schriftart, Schriftgröße, Chat-Farben pro Channel.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_DataManagement_Title" xml:space="preserve">
|
||||||
|
<value>Daten-Verwaltung</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_DataManagement_Subtext" xml:space="preserve">
|
||||||
|
<value>Was passiert mit gespeicherten Daten — Aufbewahrung, Aufräumen, Export, DB-Stats.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_Integrations_Title" xml:space="preserve">
|
||||||
|
<value>Integrationen</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_Integrations_Subtext" xml:space="preserve">
|
||||||
|
<value>Andere Dalamud-Plugins, mit denen HellionChat zusammenarbeitet. Auto-detected, mit Vorschau auf kommende Integrationen.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_ThemeAndLayout_Theme_Heading" xml:space="preserve">
|
||||||
|
<value>Theme</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_ThemeAndLayout_WindowStyle_Heading" xml:space="preserve">
|
||||||
|
<value>Fenster-Style</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_ThemeAndLayout_TimestampStyle_Heading" xml:space="preserve">
|
||||||
|
<value>Zeitstempel-Style</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_ThemeAndLayout_WindowOpacity_Name" xml:space="preserve">
|
||||||
|
<value>Fenster-Transparenz</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_ThemeAndLayout_WindowOpacity_Description" xml:space="preserve">
|
||||||
|
<value>Wie durchsichtig der Fensterhintergrund ist. Niedrigere Werte lassen mehr vom Spiel durchscheinen. Tipp: Dalamud's Per-Window-Menü (Hamburger in der Titelleiste) bietet pro Fenster eigene Overrides für Deckkraft, Hintergrund-Blur, Durchklick und Anpinnen — die haben Vorrang über diesen Slider für das jeweilige Fenster.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_FontsAndColours_Fonts_Heading" xml:space="preserve">
|
||||||
|
<value>Schriftarten</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_FontsAndColours_Colours_Heading" xml:space="preserve">
|
||||||
|
<value>Chat-Farben</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_DataManagement_Storage_Heading" xml:space="preserve">
|
||||||
|
<value>Speicherung</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_DataManagement_Retention_Heading" xml:space="preserve">
|
||||||
|
<value>Aufbewahrung</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_DataManagement_Cleanup_Heading" xml:space="preserve">
|
||||||
|
<value>Cleanup</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_DataManagement_Export_Heading" xml:space="preserve">
|
||||||
|
<value>Export</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_DataManagement_DbViewer_Heading" xml:space="preserve">
|
||||||
|
<value>Datenbank-Viewer</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_DataManagement_Advanced_Heading" xml:space="preserve">
|
||||||
|
<value>Erweitert (Shift+Klick zum Öffnen)</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Window_Frame_Behaviour_Heading" xml:space="preserve">
|
||||||
|
<value>Verhalten</value>
|
||||||
|
</data>
|
||||||
|
<data name="Migration_v16_OverrideStyle_Toast" xml:space="preserve">
|
||||||
|
<value>Hellion Chat 1.2.1 hat das Settings-Menü neu sortiert und die alte „Stilüberschreiben"-Option entfernt (überholt durch das Theme-System aus 1.1.0). Deine restlichen Einstellungen bleiben unverändert. Die Fenster-Transparenz ist nach „Theme & Layout" migriert. Ein Backup der vorherigen Config liegt unter pluginConfigs/HellionChat.json.pre-v16-backup neben der aktiven HellionChat.json.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Tab_Integrations" xml:space="preserve">
|
||||||
|
<value>Integrationen</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_Intro" xml:space="preserve">
|
||||||
|
<value>Plugin-Integrationen lassen HellionChat mit anderen installierten Dalamud-Plugins zusammenarbeiten. Jede Integration erkennt ihr Ziel automatisch und deaktiviert sich still, wenn das Ziel-Plugin fehlt.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_Honorific_SectionHeader" xml:space="preserve">
|
||||||
|
<value>Honorific</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_Honorific_Status_Detected" xml:space="preserve">
|
||||||
|
<value>Erkannt (v{0}.{1})</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_Honorific_Status_NotInstalled" xml:space="preserve">
|
||||||
|
<value>Nicht installiert</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_Honorific_Status_Incompatible" xml:space="preserve">
|
||||||
|
<value>Inkompatible API-Version ({0} erwartet, {1}.{2} gefunden)</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_Honorific_Toggle" xml:space="preserve">
|
||||||
|
<value>Honorific-Titel im Chat-Header anzeigen</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_Honorific_ToggleHint" xml:space="preserve">
|
||||||
|
<value>Zeigt deinen Custom-Titel aus Honorific im Header über dem Chat-Log an, in der von dir gewählten Farbe.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_Honorific_LinkRepo" xml:space="preserve">
|
||||||
|
<value>Honorific auf GitHub</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_Honorific_LinkAuthor" xml:space="preserve">
|
||||||
|
<value>von Caraxi</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_ComingSoon_SectionHeader" xml:space="preserve">
|
||||||
|
<value>Demnächst</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_ComingSoon_Intro" xml:space="preserve">
|
||||||
|
<value>Diese Integrationen sind auf der Roadmap. Die Einstellungen erscheinen automatisch, sobald das jeweilige Plugin angebunden ist.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_ComingSoon_ContextMenu_Title" xml:space="preserve">
|
||||||
|
<value>Kontextmenü-Aktionen</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_ComingSoon_ContextMenu_Description" xml:space="preserve">
|
||||||
|
<value>Rechtsklick auf einen Namen im Chat: zu PlayerTrack springen, Lodestone-Profil öffnen oder mit einem Klick eine DM verfassen.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_ComingSoon_Notifications_Title" xml:space="preserve">
|
||||||
|
<value>Smart Notifications (NotificationMaster)</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_ComingSoon_Notifications_Description" xml:space="preserve">
|
||||||
|
<value>Mentions und DMs über NotificationMaster: System-Toasts, Taskbar-Flash und Sounds pro Channel.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_ComingSoon_RPStatus_Title" xml:space="preserve">
|
||||||
|
<value>RP-Status-Block (Moodles · LightlessClient)</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_ComingSoon_RPStatus_Description" xml:space="preserve">
|
||||||
|
<value>Moodles-Status-Icons und Pair-Badges direkt neben den Chat-Namen anzeigen, für mehr Roleplay-Kontext.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_ComingSoon_ExtraChat_Title" xml:space="preserve">
|
||||||
|
<value>ExtraChat-Channels</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_ComingSoon_ExtraChat_Description" xml:space="preserve">
|
||||||
|
<value>End-to-End-verschlüsselte Cross-Datacenter-Linkshells nativ in HellionChat hosten.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_ComingSoon_QuickDM_Title" xml:space="preserve">
|
||||||
|
<value>Quick-DM-Button (XIVInstantMessenger)</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_ComingSoon_QuickDM_Description" xml:space="preserve">
|
||||||
|
<value>DM-Schnellzugriff direkt aus dem Chat-Fenster, ein Klick.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_GotAnIdea_SectionHeader" xml:space="preserve">
|
||||||
|
<value>Idee?</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_GotAnIdea_Body" xml:space="preserve">
|
||||||
|
<value>Idee für eine Plugin-Integration, die nicht auf der Liste steht? Komm auf den Hellion-Forge-Discord und schreib mir. Community-Input bestimmt die Roadmap.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_GotAnIdea_LinkLabel" xml:space="preserve">
|
||||||
|
<value>Hellion Forge öffnen</value>
|
||||||
|
</data>
|
||||||
|
<data name="ChatHeader_HonorificTitle_Tooltip" xml:space="preserve">
|
||||||
|
<value>Custom-Titel von Honorific</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
<value>Enable privacy filter</value>
|
<value>Enable privacy filter</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Privacy_FilterEnabled_Description" xml:space="preserve">
|
<data name="Privacy_FilterEnabled_Description" xml:space="preserve">
|
||||||
<value>When enabled, only messages from whitelisted channels are persisted to the database. Disabling restores upstream ChatTwo behavior (everything except battle messages is stored).</value>
|
<value>When enabled, only messages from whitelisted channels are persisted to the database. Disabling restores the original behavior (everything except battle messages is stored).</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Privacy_FilterEnabled_StorageOnly_Help" xml:space="preserve">
|
<data name="Privacy_FilterEnabled_StorageOnly_Help" xml:space="preserve">
|
||||||
<value>The filter only controls what is written to the local database. The chat log itself keeps showing every message live, disallowed channels just stop being saved. Use the channel hide options in your in-game chat tabs if you want to remove channels from the visible chat.</value>
|
<value>The filter only controls what is written to the local database. The chat log itself keeps showing every message live, disallowed channels just stop being saved. Use the channel hide options in your in-game chat tabs if you want to remove channels from the visible chat.</value>
|
||||||
@@ -211,7 +211,7 @@
|
|||||||
<value>Full History</value>
|
<value>Full History</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Wizard_Profile_FullHistory_Description" xml:space="preserve">
|
<data name="Wizard_Profile_FullHistory_Description" xml:space="preserve">
|
||||||
<value>Disables the privacy filter entirely. Stores everything except battle logs, just like upstream Chat 2. Retention is OFF, history grows forever.</value>
|
<value>Disables the privacy filter entirely. Stores everything except battle logs (the original full-history behavior). Retention is OFF, history grows forever.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Wizard_Profile_FullHistory_GdprWarning" xml:space="preserve">
|
<data name="Wizard_Profile_FullHistory_GdprWarning" xml:space="preserve">
|
||||||
<value>GDPR notice: storing third-party messages (Say/Shout/Yell of strangers, NPC dialogue with player names, etc.) for an unlimited time may exceed the personal/household exemption (Art. 2(2)(c)). Use this profile only if you have a clear reason to keep the full archive.</value>
|
<value>GDPR notice: storing third-party messages (Say/Shout/Yell of strangers, NPC dialogue with player names, etc.) for an unlimited time may exceed the personal/household exemption (Art. 2(2)(c)). Use this profile only if you have a clear reason to keep the full archive.</value>
|
||||||
@@ -406,6 +406,12 @@
|
|||||||
<data name="ChatLog_AutoTellTabs_GreetedToggle_Description" xml:space="preserve">
|
<data name="ChatLog_AutoTellTabs_GreetedToggle_Description" xml:space="preserve">
|
||||||
<value>Adds a click-to-toggle button next to each auto tell tab to mark a partner as already greeted, dimming the tab name when set. Useful for club greeters tracking many parallel conversations; off by default.</value>
|
<value>Adds a click-to-toggle button next to each auto tell tab to mark a partner as already greeted, dimming the tab name when set. Useful for club greeters tracking many parallel conversations; off by default.</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="ChatLog_AutoTellTabs_OpenAsPopout_Name" xml:space="preserve">
|
||||||
|
<value>Open new /tell tabs directly as pop-out</value>
|
||||||
|
</data>
|
||||||
|
<data name="ChatLog_AutoTellTabs_OpenAsPopout_Description" xml:space="preserve">
|
||||||
|
<value>When enabled, each newly created /tell tab opens directly as its own window. Closing the window returns the tab to the sidebar.</value>
|
||||||
|
</data>
|
||||||
<data name="ChatLog_AutoTellTabs_PreloadHint" xml:space="preserve">
|
<data name="ChatLog_AutoTellTabs_PreloadHint" xml:space="preserve">
|
||||||
<value>The number of preloaded tells is configured in the Privacy tab.</value>
|
<value>The number of preloaded tells is configured in the Privacy tab.</value>
|
||||||
</data>
|
</data>
|
||||||
@@ -555,8 +561,19 @@
|
|||||||
<data name="Tabs_Presets_Linkshell_Hint" xml:space="preserve">
|
<data name="Tabs_Presets_Linkshell_Hint" xml:space="preserve">
|
||||||
<value>If you use multiple linkshells, the maintainer recommends one tab per shell for cleaner readability. Duplicate this tab and narrow the channel selection per copy.</value>
|
<value>If you use multiple linkshells, the maintainer recommends one tab per shell for cleaner readability. Duplicate this tab and narrow the channel selection per copy.</value>
|
||||||
</data>
|
</data>
|
||||||
|
|
||||||
|
<!-- Hellion Chat — v1.2.0 per-tab icon override -->
|
||||||
|
<data name="Tabs_Icon_Label" xml:space="preserve">
|
||||||
|
<value>Tab-Icon</value>
|
||||||
|
</data>
|
||||||
|
<data name="Tabs_Icon_HelpMarker" xml:space="preserve">
|
||||||
|
<value>FontAwesome-Glyph für die Sidebar. Default greift auf Tab-Name oder Channel-Typ.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Tabs_Icon_DefaultOption" xml:space="preserve">
|
||||||
|
<value>(Default-Mapping)</value>
|
||||||
|
</data>
|
||||||
<data name="ChatColourPresets_Default" xml:space="preserve">
|
<data name="ChatColourPresets_Default" xml:space="preserve">
|
||||||
<value>ChatTwo Default</value>
|
<value>Klassik (Chat 2 Default)</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="ChatColourPresets_HighContrast" xml:space="preserve">
|
<data name="ChatColourPresets_HighContrast" xml:space="preserve">
|
||||||
<value>High-Contrast</value>
|
<value>High-Contrast</value>
|
||||||
@@ -585,6 +602,12 @@
|
|||||||
<data name="Settings_Window_PopOutInputEnabled_Description" xml:space="preserve">
|
<data name="Settings_Window_PopOutInputEnabled_Description" xml:space="preserve">
|
||||||
<value>Master switch: lets you type and send messages directly inside every pop-out window (including auto-tell tabs). Channel changes inside a pop-out apply globally just like in the main window; the text buffer and history cursor stay independent per pop-out.</value>
|
<value>Master switch: lets you type and send messages directly inside every pop-out window (including auto-tell tabs). Channel changes inside a pop-out apply globally just like in the main window; the text buffer and history cursor stay independent per pop-out.</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="Settings_Window_ResetPosition_Name" xml:space="preserve">
|
||||||
|
<value>Reset Window Position</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Window_ResetPosition_Description" xml:space="preserve">
|
||||||
|
<value>Snaps the chat window and every active pop-out back to the primary monitor's top-left corner. Useful when a window has drifted off-screen after a display layout change (monitor disconnected, resolution changed). The plugin also runs an automatic bounds check once per session — this button is the manual backup if anything still ends up unreachable.</value>
|
||||||
|
</data>
|
||||||
<data name="Popout_v060_HintText" xml:space="preserve">
|
<data name="Popout_v060_HintText" xml:space="preserve">
|
||||||
<value>New in v0.6.0: you can type directly inside pop-out windows. Toggle the master switch in the window settings to enable it.</value>
|
<value>New in v0.6.0: you can type directly inside pop-out windows. Toggle the master switch in the window settings to enable it.</value>
|
||||||
</data>
|
</data>
|
||||||
@@ -594,4 +617,262 @@
|
|||||||
<data name="Popout_v060_HintOpenSettings" xml:space="preserve">
|
<data name="Popout_v060_HintOpenSettings" xml:space="preserve">
|
||||||
<value>Open window settings</value>
|
<value>Open window settings</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="Hint_v061_PopOutHeader_Body" xml:space="preserve">
|
||||||
|
<value>You can open any chat tab as its own window. Click the window icon in the top right or right-click the tab. New in v0.6.1: pop-out input is enabled by default (can be turned off under Settings → Window).</value>
|
||||||
|
</data>
|
||||||
|
<data name="Hint_v061_PopOutHeader_Ack" xml:space="preserve">
|
||||||
|
<value>Got it</value>
|
||||||
|
</data>
|
||||||
|
<data name="Hint_v061_PopOutHeader_OpenSettings" xml:space="preserve">
|
||||||
|
<value>Open Settings</value>
|
||||||
|
</data>
|
||||||
|
<data name="ChatTwoConflictTitle" xml:space="preserve">
|
||||||
|
<value>Hellion Chat cannot start while Chat 2 is loaded.</value>
|
||||||
|
</data>
|
||||||
|
<data name="ChatTwoConflictBody" xml:space="preserve">
|
||||||
|
<value>Hellion Chat is a standalone fork of Chat 2. Both plugins replace the same in-game chat window and would conflict at runtime if loaded together.</value>
|
||||||
|
</data>
|
||||||
|
<data name="ChatTwoConflictAction" xml:space="preserve">
|
||||||
|
<value>Disable Chat 2 in /xlplugins, then re-enable Hellion Chat.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_General_Title" xml:space="preserve">
|
||||||
|
<value>General</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_General_Subtext" xml:space="preserve">
|
||||||
|
<value>Plugin-wide settings — language, input, audio, performance.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_Appearance_Title" xml:space="preserve">
|
||||||
|
<value>Appearance</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_Appearance_Subtext" xml:space="preserve">
|
||||||
|
<value>Window opacity, fonts, motion</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_Themes_Title" xml:space="preserve">
|
||||||
|
<value>Themes</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_Themes_Subtext" xml:space="preserve">
|
||||||
|
<value>Choose a theme or import your own</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_Window_Title" xml:space="preserve">
|
||||||
|
<value>Window</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_Window_Subtext" xml:space="preserve">
|
||||||
|
<value>Window behaviour — when it shows, whether it can move.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_Chat_Title" xml:space="preserve">
|
||||||
|
<value>Chat</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_Chat_Subtext" xml:space="preserve">
|
||||||
|
<value>How messages are displayed — tells, preview, behaviour, emotes.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_Tabs_Title" xml:space="preserve">
|
||||||
|
<value>Tabs</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_Tabs_Subtext" xml:space="preserve">
|
||||||
|
<value>Tab management — create and configure your own chat tabs.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_Privacy_Title" xml:space="preserve">
|
||||||
|
<value>Privacy</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_Privacy_Subtext" xml:space="preserve">
|
||||||
|
<value>What's allowed to be stored — privacy filter per channel.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_Database_Title" xml:space="preserve">
|
||||||
|
<value>Database</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_Database_Subtext" xml:space="preserve">
|
||||||
|
<value>Storage, migration, legacy cleanup</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_Information_Title" xml:space="preserve">
|
||||||
|
<value>Information</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_Information_Subtext" xml:space="preserve">
|
||||||
|
<value>About the plugin — version, mission, license, changelog.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Tab_Themes" xml:space="preserve">
|
||||||
|
<value>Themes</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Themes_Active" xml:space="preserve">
|
||||||
|
<value>Active: {0}</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Themes_BuiltIns" xml:space="preserve">
|
||||||
|
<value>Built-in themes</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Themes_Custom" xml:space="preserve">
|
||||||
|
<value>Custom themes</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Themes_OpenFolder" xml:space="preserve">
|
||||||
|
<value>Open themes folder</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Themes_ExportActive" xml:space="preserve">
|
||||||
|
<value>Export active...</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Themes_ApplyChatColors_Hint" xml:space="preserve">
|
||||||
|
<value>This theme suggests its own chat channel colours.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Themes_ApplyChatColors_Apply" xml:space="preserve">
|
||||||
|
<value>Apply</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Themes_ApplyChatColors_Keep" xml:space="preserve">
|
||||||
|
<value>Keep current</value>
|
||||||
|
</data>
|
||||||
|
<data name="StatusBar_Privacy_Enabled" xml:space="preserve">
|
||||||
|
<value>Privacy-First</value>
|
||||||
|
</data>
|
||||||
|
<data name="StatusBar_Privacy_Open" xml:space="preserve">
|
||||||
|
<value>Open</value>
|
||||||
|
</data>
|
||||||
|
<data name="Appearance_UseCompactDensity_Name" xml:space="preserve">
|
||||||
|
<value>Compact Density</value>
|
||||||
|
</data>
|
||||||
|
<data name="Appearance_UseCompactDensity_Description" xml:space="preserve">
|
||||||
|
<value>Schaltet das Message-Layout vom Card-Row-Default zurück auf einzeilige `[HH:mm] Sender: Text` Zeilen.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_ThemeAndLayout_Title" xml:space="preserve">
|
||||||
|
<value>Theme & Layout</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_ThemeAndLayout_Subtext" xml:space="preserve">
|
||||||
|
<value>How the window looks — theme, frame, timestamp style.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_FontsAndColours_Title" xml:space="preserve">
|
||||||
|
<value>Fonts & Colours</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_FontsAndColours_Subtext" xml:space="preserve">
|
||||||
|
<value>Readability — font, font size, per-channel chat colours.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_DataManagement_Title" xml:space="preserve">
|
||||||
|
<value>Data Management</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_DataManagement_Subtext" xml:space="preserve">
|
||||||
|
<value>What happens to stored data — retention, cleanup, export, DB stats.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_Integrations_Title" xml:space="preserve">
|
||||||
|
<value>Integrations</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Card_Integrations_Subtext" xml:space="preserve">
|
||||||
|
<value>Other Dalamud plugins HellionChat reacts to. Auto-detected, with a "coming soon" preview of upcoming integrations.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_ThemeAndLayout_Theme_Heading" xml:space="preserve">
|
||||||
|
<value>Theme</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_ThemeAndLayout_WindowStyle_Heading" xml:space="preserve">
|
||||||
|
<value>Window Style</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_ThemeAndLayout_TimestampStyle_Heading" xml:space="preserve">
|
||||||
|
<value>Timestamp Style</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_ThemeAndLayout_WindowOpacity_Name" xml:space="preserve">
|
||||||
|
<value>Window Transparency</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_ThemeAndLayout_WindowOpacity_Description" xml:space="preserve">
|
||||||
|
<value>How transparent the window background is. Lower values let the game show through more. Tip: Dalamud's per-window menu (Hamburger in the title bar) gives you per-window overrides for opacity, background blur, click-through and pinning — those override this slider for that window.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_FontsAndColours_Fonts_Heading" xml:space="preserve">
|
||||||
|
<value>Fonts</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_FontsAndColours_Colours_Heading" xml:space="preserve">
|
||||||
|
<value>Chat Colours</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_DataManagement_Storage_Heading" xml:space="preserve">
|
||||||
|
<value>Storage</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_DataManagement_Retention_Heading" xml:space="preserve">
|
||||||
|
<value>Retention</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_DataManagement_Cleanup_Heading" xml:space="preserve">
|
||||||
|
<value>Cleanup</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_DataManagement_Export_Heading" xml:space="preserve">
|
||||||
|
<value>Export</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_DataManagement_DbViewer_Heading" xml:space="preserve">
|
||||||
|
<value>Database Viewer</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_DataManagement_Advanced_Heading" xml:space="preserve">
|
||||||
|
<value>Advanced (Shift+Click to open)</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Window_Frame_Behaviour_Heading" xml:space="preserve">
|
||||||
|
<value>Behaviour</value>
|
||||||
|
</data>
|
||||||
|
<data name="Migration_v16_OverrideStyle_Toast" xml:space="preserve">
|
||||||
|
<value>Hellion Chat 1.2.1 reorganised the Settings menu and removed the legacy "Style override" option (made obsolete by the Themes system in 1.1.0). Your other settings are unchanged. Window opacity was migrated to Theme & Layout. A backup of your previous config is at pluginConfigs/HellionChat.json.pre-v16-backup next to the live HellionChat.json.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Tab_Integrations" xml:space="preserve">
|
||||||
|
<value>Integrations</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_Intro" xml:space="preserve">
|
||||||
|
<value>Plugin integrations let HellionChat react to other installed Dalamud plugins. Each integration auto-detects its target and silently disables itself when the target plugin is not present.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_Honorific_SectionHeader" xml:space="preserve">
|
||||||
|
<value>Honorific</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_Honorific_Status_Detected" xml:space="preserve">
|
||||||
|
<value>Detected (v{0}.{1})</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_Honorific_Status_NotInstalled" xml:space="preserve">
|
||||||
|
<value>Not installed</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_Honorific_Status_Incompatible" xml:space="preserve">
|
||||||
|
<value>Incompatible API version ({0} expected, {1}.{2} detected)</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_Honorific_Toggle" xml:space="preserve">
|
||||||
|
<value>Show Honorific title in chat header</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_Honorific_ToggleHint" xml:space="preserve">
|
||||||
|
<value>Displays your custom title from Honorific in the header above the chat log, in your chosen colour.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_Honorific_LinkRepo" xml:space="preserve">
|
||||||
|
<value>Honorific on GitHub</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_Honorific_LinkAuthor" xml:space="preserve">
|
||||||
|
<value>by Caraxi</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_ComingSoon_SectionHeader" xml:space="preserve">
|
||||||
|
<value>Coming soon</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_ComingSoon_Intro" xml:space="preserve">
|
||||||
|
<value>These integrations are on the roadmap. The settings for each appear automatically once the underlying plugin is wired up.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_ComingSoon_ContextMenu_Title" xml:space="preserve">
|
||||||
|
<value>Context menu actions</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_ComingSoon_ContextMenu_Description" xml:space="preserve">
|
||||||
|
<value>Right-click a name in chat to jump to PlayerTrack, open the Lodestone profile, or compose a DM in one click.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_ComingSoon_Notifications_Title" xml:space="preserve">
|
||||||
|
<value>Smart notifications (NotificationMaster)</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_ComingSoon_Notifications_Description" xml:space="preserve">
|
||||||
|
<value>Route mentions and DMs through NotificationMaster for system toasts, taskbar flash, and per-channel sounds.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_ComingSoon_RPStatus_Title" xml:space="preserve">
|
||||||
|
<value>RP status block (Moodles · LightlessClient)</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_ComingSoon_RPStatus_Description" xml:space="preserve">
|
||||||
|
<value>Show Moodles status icons and pair-badges inline next to chat names for richer roleplay context.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_ComingSoon_ExtraChat_Title" xml:space="preserve">
|
||||||
|
<value>ExtraChat channels</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_ComingSoon_ExtraChat_Description" xml:space="preserve">
|
||||||
|
<value>Host end-to-end-encrypted cross-datacenter linkshells natively in HellionChat.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_ComingSoon_QuickDM_Title" xml:space="preserve">
|
||||||
|
<value>Quick DM button (XIVInstantMessenger)</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_ComingSoon_QuickDM_Description" xml:space="preserve">
|
||||||
|
<value>One-click DM compose without leaving the chat window.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_GotAnIdea_SectionHeader" xml:space="preserve">
|
||||||
|
<value>Got an idea?</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_GotAnIdea_Body" xml:space="preserve">
|
||||||
|
<value>Got an idea for a plugin integration that's not on this list? Hop on the Hellion Forge Discord and tell me. Community input drives the roadmap.</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Integrations_GotAnIdea_LinkLabel" xml:space="preserve">
|
||||||
|
<value>Open Hellion Forge</value>
|
||||||
|
</data>
|
||||||
|
<data name="ChatHeader_HonorificTitle_Tooltip" xml:space="preserve">
|
||||||
|
<value>Honorific custom title</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
+38
-2
@@ -7,7 +7,7 @@
|
|||||||
// </auto-generated>
|
// </auto-generated>
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
namespace ChatTwo.Resources {
|
namespace HellionChat.Resources {
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
|
|
||||||
@@ -38,7 +38,7 @@ namespace ChatTwo.Resources {
|
|||||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||||
get {
|
get {
|
||||||
if (object.ReferenceEquals(resourceMan, null)) {
|
if (object.ReferenceEquals(resourceMan, null)) {
|
||||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ChatTwo.Resources.Language", typeof(Language).Assembly);
|
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("HellionChat.Resources.Language", typeof(Language).Assembly);
|
||||||
resourceMan = temp;
|
resourceMan = temp;
|
||||||
}
|
}
|
||||||
return resourceMan;
|
return resourceMan;
|
||||||
@@ -2148,6 +2148,24 @@ namespace ChatTwo.Resources {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to The channel selector button next to the input field is tinted with the currently active channel's colour. Matches the tinting of the input text itself..
|
||||||
|
/// </summary>
|
||||||
|
internal static string Options_ColorSelectedInputChannelButton_Description {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("Options_ColorSelectedInputChannelButton_Description", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to Tint channel selector with channel colour.
|
||||||
|
/// </summary>
|
||||||
|
internal static string Options_ColorSelectedInputChannelButton_Name {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("Options_ColorSelectedInputChannelButton_Name", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to Chat colours.
|
/// Looks up a localized string similar to Chat colours.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -2661,6 +2679,24 @@ namespace ChatTwo.Resources {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to Hide the chat while the New Game+ menu is open. Closing the menu shows the chat again..
|
||||||
|
/// </summary>
|
||||||
|
internal static string Options_HideInNewGamePlusMenu_Description {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("Options_HideInNewGamePlusMenu_Description", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to Hide while New Game+ menu is open.
|
||||||
|
/// </summary>
|
||||||
|
internal static string Options_HideInNewGamePlusMenu_Name {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("Options_HideInNewGamePlusMenu_Name", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to Hide {0} during loading screens..
|
/// Looks up a localized string similar to Hide {0} during loading screens..
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -208,6 +208,12 @@
|
|||||||
<data name="Options_ChatColours_Import">
|
<data name="Options_ChatColours_Import">
|
||||||
<value>Vom Spiel importieren</value>
|
<value>Vom Spiel importieren</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="Options_ColorSelectedInputChannelButton_Name" xml:space="preserve">
|
||||||
|
<value>Channel-Auswahl-Knopf in Channel-Farbe</value>
|
||||||
|
</data>
|
||||||
|
<data name="Options_ColorSelectedInputChannelButton_Description" xml:space="preserve">
|
||||||
|
<value>Der Channel-Auswahl-Knopf neben dem Eingabefeld bekommt die Farbe des aktuell aktiven Channels. Konsistent zur Färbung des Eingabetextes selbst.</value>
|
||||||
|
</data>
|
||||||
<data name="Options_Tabs_Tab">
|
<data name="Options_Tabs_Tab">
|
||||||
<value>Kanäle</value>
|
<value>Kanäle</value>
|
||||||
</data>
|
</data>
|
||||||
@@ -1190,6 +1196,12 @@ Sie wurden gewarnt.</value>
|
|||||||
<data name="Options_HideInBattle_Description" xml:space="preserve">
|
<data name="Options_HideInBattle_Description" xml:space="preserve">
|
||||||
<value>Blende den Chat während der Kämpfe aus.</value>
|
<value>Blende den Chat während der Kämpfe aus.</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="Options_HideInNewGamePlusMenu_Name" xml:space="preserve">
|
||||||
|
<value>Während des New-Game+ Menüs ausblenden</value>
|
||||||
|
</data>
|
||||||
|
<data name="Options_HideInNewGamePlusMenu_Description" xml:space="preserve">
|
||||||
|
<value>Blendet den Chat aus, solange das New-Game+ Menü geöffnet ist. Schließen des Menüs blendet den Chat wieder ein.</value>
|
||||||
|
</data>
|
||||||
<data name="Options_Emote_EmoteStats" xml:space="preserve">
|
<data name="Options_Emote_EmoteStats" xml:space="preserve">
|
||||||
<value>Emote-Statistik</value>
|
<value>Emote-Statistik</value>
|
||||||
</data>
|
</data>
|
||||||
@@ -208,6 +208,12 @@
|
|||||||
<data name="Options_ChatColours_Import">
|
<data name="Options_ChatColours_Import">
|
||||||
<value>Import from game</value>
|
<value>Import from game</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="Options_ColorSelectedInputChannelButton_Name" xml:space="preserve">
|
||||||
|
<value>Tint channel selector with channel colour</value>
|
||||||
|
</data>
|
||||||
|
<data name="Options_ColorSelectedInputChannelButton_Description" xml:space="preserve">
|
||||||
|
<value>The channel selector button next to the input field is tinted with the currently active channel's colour. Matches the tinting of the input text itself.</value>
|
||||||
|
</data>
|
||||||
<data name="Options_Tabs_Tab">
|
<data name="Options_Tabs_Tab">
|
||||||
<value>Tabs</value>
|
<value>Tabs</value>
|
||||||
</data>
|
</data>
|
||||||
@@ -1189,6 +1195,12 @@
|
|||||||
<data name="Options_HideInBattle_Description" xml:space="preserve">
|
<data name="Options_HideInBattle_Description" xml:space="preserve">
|
||||||
<value>Hide the chat during battles.</value>
|
<value>Hide the chat during battles.</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="Options_HideInNewGamePlusMenu_Name" xml:space="preserve">
|
||||||
|
<value>Hide while New Game+ menu is open</value>
|
||||||
|
</data>
|
||||||
|
<data name="Options_HideInNewGamePlusMenu_Description" xml:space="preserve">
|
||||||
|
<value>Hide the chat while the New Game+ menu is open. Closing the menu shows the chat again.</value>
|
||||||
|
</data>
|
||||||
<data name="Options_Emote_EmoteStats" xml:space="preserve">
|
<data name="Options_Emote_EmoteStats" xml:space="preserve">
|
||||||
<value>Emote Stats</value>
|
<value>Emote Stats</value>
|
||||||
</data>
|
</data>
|
||||||
+1
-1
@@ -1364,7 +1364,7 @@
|
|||||||
<value>启动</value>
|
<value>启动</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Webinterface_Start_Success" xml:space="preserve">
|
<data name="Webinterface_Start_Success" xml:space="preserve">
|
||||||
<value>网页界面已停止。</value>
|
<value>网页界面已启动。</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Webinterface_Start_Failed" xml:space="preserve">
|
<data name="Webinterface_Start_Failed" xml:space="preserve">
|
||||||
<value>网页界面启动失败。检查 /xllog 获取更多信息。</value>
|
<value>网页界面启动失败。检查 /xllog 获取更多信息。</value>
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
using Lumina.Excel;
|
using Lumina.Excel;
|
||||||
using Lumina.Excel.Sheets;
|
using Lumina.Excel.Sheets;
|
||||||
|
|
||||||
namespace ChatTwo;
|
namespace HellionChat;
|
||||||
|
|
||||||
public static class Sheets
|
public static class Sheets
|
||||||
{
|
{
|
||||||
@@ -37,7 +37,7 @@ public static class Sheets
|
|||||||
|
|
||||||
public static IEnumerable<World> WorldsOnDatacenter(IPlayerCharacter character)
|
public static IEnumerable<World> WorldsOnDatacenter(IPlayerCharacter character)
|
||||||
{
|
{
|
||||||
var dcRow = character.HomeWorld.Value.DataCenter.Value.Region.RowId;
|
var dcRow = character.HomeWorld.Value.DataCenter.RowId;
|
||||||
return WorldSheet.Where(world => world.IsPublic && world.DataCenter.Value.Region.RowId == dcRow);
|
return WorldSheet.Where(world => world.IsPublic && world.DataCenter.RowId == dcRow);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user