feat(vitalsharing): settings UI, in-game overlay, reuse CharTag
- Settings tab: new "Vital Sharing (cross-PC)" checkbox + "Open Overlay" button, plus help text clarifying CharTag is used as the sharing group. - Drop separate VitalSharingTags list — reuse PluginSettings.CharTag as the single tag value sent with every share_* payload. - New VitalSharingOverlayView (HudList of peers with coloured HP/STA/MANA percentages) modeled after UB's NetworkUI. Colours match the web sidebar palette (#ff4444 / #ffaa00 / #4488ff). - VitalSharingTracker now caches a peer snapshot on every inbound share_vital_update so the overlay can render without re-polling. - PluginCore.SetVitalSharingEnabled static helper so the settings checkbox can toggle without poking at private fields. - /mm vitalsharing command simplified to on|off|status|overlay. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
b87412e8f9
commit
29a54b720f
9 changed files with 304 additions and 81 deletions
11
MosswartMassacre/ViewXML/vitalSharingOverlay.xml
Normal file
11
MosswartMassacre/ViewXML/vitalSharingOverlay.xml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0"?>
|
||||
<view icon="7735" title="Vital Sharing" width="360" height="260">
|
||||
<control progid="DecalControls.FixedLayout" clipped="">
|
||||
<control progid="DecalControls.StaticText" name="lblHeader" left="8" top="6" width="340" height="16" text="Vital Sharing Peers" style="FontBold"/>
|
||||
<control progid="DecalControls.StaticText" name="lblCol0" left="8" top="24" width="160" height="14" text="Character"/>
|
||||
<control progid="DecalControls.StaticText" name="lblCol1" left="170" top="24" width="55" height="14" text="HP"/>
|
||||
<control progid="DecalControls.StaticText" name="lblCol2" left="227" top="24" width="55" height="14" text="Stam"/>
|
||||
<control progid="DecalControls.StaticText" name="lblCol3" left="284" top="24" width="55" height="14" text="Mana"/>
|
||||
<control progid="DecalControls.List" name="lstPeers" left="6" top="42" width="340" height="200"/>
|
||||
</control>
|
||||
</view>
|
||||
Loading…
Add table
Add a link
Reference in a new issue