Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seat Redesign #2007

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Seat Redesign #2007

wants to merge 1 commit into from

Conversation

96LawDawg
Copy link
Collaborator

Back in mid October, there was a lot of discussion and work done on re-designing the seats. Around here in discord: https://discord.com/channels/770758631146782780/770758631146782783/1163543505310847006.

I took a shot at getting it started. It mostly uses the click logic and style that @mousewax came up with.

I initially had done the logic as a clickRoutine on the seat. But that adds so much stuff that should be done behind the scenes and would be intimidating to change for a newcomer. But putting it into the code, like I've done here, also creates issues. The css changes and the code changes will not be compatible with some exisiting games. For example, see Feline.

Also, in seats.js around line 147-150 I try to make changes to the seat make changes to the actual playerName and playerColor. For playerName, it works, but the screen flashes. And playerColor doesn't work.

But other than these huge problems, this is a pretty good start.

Happy New Year.

@96LawDawg 96LawDawg added enhancement New feature or request routine operations changes to button behavior widget properties changes to widget properties labels Dec 26, 2023
@ArnoldSmith86
Copy link
Owner

PR-SERVER-BOT: You can play around with it here: https://test.virtualtabletop.io/PR-2007/pr-test (or any other room on that server)

After merging, a backup will be available at https://beta.virtualtabletop.io/editor/PR2007-pr-test.

@96LawDawg
Copy link
Collaborator Author

The css changes also effect the hand counter widget. Altogether, if this PR stays roughly as it, we would need a file updater that puts something like the old css back onto existing seats. But that will be hard because many seats already have css. And we would need some sort of clickRoutine updater that makes old seats behave like they did before. I don't know if either of those are possible or not.

@RaphaelAlvez
Copy link
Collaborator

no time for a proper review just some things I wanted to say

  • I prefer this design except for the text-shadow. I think it really makes the text harder to read
  • the color and name input give the impression the player settings are being changed when in fact they are not
  • maybe this could be a click routine instead of a click action. would cause less trouble with older games
  • @ArnoldSmith86 maybe default seat styles in the editor?

@ArnoldSmith86 ArnoldSmith86 marked this pull request as draft February 5, 2024 11:44
@RaphaelAlvez
Copy link
Collaborator

Just pointing out that I really like this PR but I'm concerned with games that could have used click targeting a seat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request routine operations changes to button behavior widget properties changes to widget properties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants