Skip to content

Hybrid Vision Mode #773

Description

@cjshrader

At one point, @chrizzocb did some research into getting Vision Mode With Highlighting working with controllers. It wasn't realistically possible, but it did show that the TTS string does tell us if the user is using a controller or a mouse.

Mouse:

['NEEDLEFLARE SERRATED CLEAVER', 'Ancestral Legendary Two-Handed Axe (Slashing)', '900 Item Power', '3,786 Damage Per Second (-359)', '[3,439 - 4,975] Damage per Hit', '0.90 Attacks per Second (Slow) (-0.10)', '+369 Weapon Damage [230 - 383] (+369)', '+324 Strength +[300 - 360] (+324)', '+3,906 Maximum Life [3,662 - 4,400] (+3,906)', 'x14% All Damage Multiplier [12 - 20]% (+14%)', 'Thorns damage dealt has a 116% [80 - 120]% chance to deal damage to all enemies around you and your Minions.', 'Properties lost when equipped:', '+375% Damage', 'Indestructible', '+25 Maximum Resource', '+5.0% Critical Strike Chance', '+385 All Stats', '+8,206 Maximum Life', 'Mythic Power', 'Socket (2)', 'Requires Level 70', 'Upgrades an Aspect in the Codex of Power on salvage', 'Sell Value: 59,154 Gold', 'Durability: 100/100. Tempers: 3/3', 'Right mouse button']

Controller:

['NEEDLEFLARE SERRATED CLEAVER', 'Ancestral Legendary Two-Handed Axe (Slashing)', '900 Item Power', '3,786 Damage Per Second (-359)', '[3,439 - 4,975] Damage per Hit', '0.90 Attacks per Second (Slow) (-0.10)', '+369 Weapon Damage [230 - 383] (+369)', '+324 Strength +[300 - 360] (+324)', '+3,906 Maximum Life [3,662 - 4,400] (+3,906)', 'x14% All Damage Multiplier [12 - 20]% (+14%)', 'Thorns damage dealt has a 116% [80 - 120]% chance to deal damage to all enemies around you and your Minions.', 'Properties lost when equipped:', '+375% Damage', 'Indestructible', '+25 Maximum Resource', '+5.0% Critical Strike Chance', '+385 All Stats', '+8,206 Maximum Life', 'Mythic Power', 'Socket (2)', 'Requires Level 70', 'Upgrades an Aspect in the Codex of Power on salvage', 'Sell Value: 59,154 Gold', 'Durability: 100/100. Tempers: 3/3', 'Bottom action button']

Notice the Mouse says "mouse button" at the end but Controller says "action button". This means we could create a hybrid vision mode that uses Fast vision mode when the user is using a controller, and Highlighting when the user is using a mouse.

This should be a new subscriber to the tts set up exactly like vision_mode_with_highlighting and vision_mode_fast. Only one can ever be active at once, just like today. It will take the tts message and determine if it is mouse or controller, and then use the appropriate vision_mode class to handle drawing on screen. I would expect the vision_mode_hybrid class to be fairly small

Metadata

Metadata

Assignees

No one assigned

    Labels

    Dev IdeaAn idea from a developer of D4LF, generally useful for one of the contributors to implement.

    Fields

    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions