Commit graph

109 commits

Author SHA1 Message Date
Pingumask
92c0d4f96a MAINT update dependencies 2024-12-05 01:01:39 +01:00
MRegnard
81b5d0985c
Updating the Organ Grinder Vote Mode (#205)
* Update CHANGELOG.md

* Hidding the skulls for player, if the option "Organ Grinder Vote" is ON.

* Adding a message for the ST, if the option "Organ Grinder Vote" is ON.

* Correcting spaces typos

* Adding the french version of the message for ST

* Adding the english version of the message for the ST

* Deleting an OG reminder (EN)

This reminder was previously used to ignore the issue of the skulls visible by players. Now that this issue is corrected, this token is useless.

* Deleting an OG reminder (FR)

This reminder was previously used to ignore the issue of the skulls visible by players. Now that this issue is corrected, this token is useless.

* Some corrections for the linter

* Some corrections for the linter

* Corrections for the linter

---------

Co-authored-by: Pingumask <68610022+Pingumask@users.noreply.github.com>
2024-12-04 20:41:51 +00:00
MRegnard
4cdd2d340f
Adding special votes (#198)
Creates a window to choose the type of special vote
- Adding the argument "playerForSpecialVote"
- Updating the history to take account of the special votes
- Allowing all players to vote during special vote
- Adding an option "Special vote" in players' menu
NB: This skull will not be visible while the vote is still open. You need to close the vote first.
If the vote is detected as special, the majority isn't printed

This change affects the Story Teller's mark (for the case of an Atheist-script, where the Story Teller is marked as being on the block).

This mark is now hidden for players if the option "Organ Grinder Vote" is turned on.
2024-12-04 19:55:43 +00:00
Pingumask
080296e0aa 3.17.0 2023-11-10 22:57:42 +00:00
Pingumask
b8d17d4ebe Night order option always on for storyteller 2023-07-30 15:56:40 +00:00
pingumask
c721637d90 Fix linter issues 2023-05-09 17:43:00 +00:00
MRegnard
3e859a8850
Adding the Organ Grinder (#42)
* Adding Organ Grinder's icon

* Adding Organ Grinder's English description

* Adding Organ Grinder's French Description

* Adding Organ Grinder's English Jinxes

* Adding Organ Grinder's French Jinxes

* Correcting a typo

* Correcting a typo

* Adding a new icon

* Temporary change to test presence of new icon

* Adding some texts

They will be useful later

* Adding some texts, useful later

* Adding print in History for hidden vote

* Correcting history's print

* Adding new token for Organ Grinder

* New token for Organ Grinder

* Adding new (boolean) parameter for hidden vote

* Adding a new option in the menue

Without effect for now

* Cancelling previous update

* Adding new option in the menue

For now, without the bad effect

* Test: is the variable "isOrganGrinder" detected?

* The option in the menue can now change a variable

* Updating the saving of vote history

Taking account the possibility of Organ Grinder

* Correcting the previous commit

Deleting an unexpected "locale"

* Testing new way

Because of its folder, this file doesn't have access to the grimoire. I test now to give the boolean "organVote" as a parameter.

* Testing giving "organGrinder" as a parameter

* Testing to find the "grimoire" variable

* Adding a print for debbug

* Deleting the console.log, but adding a new test

* Test to know if the bool variable is seen

* End of test, get back to the normal type

* Test

* Cancelling all changes in Vote.vue

* Trying to access to the grimoire with an import

* Testing again to import grimoire

* Testing to print organGrinder

* Gone back to the first changes

Now, we just have to know where is the grimoire, for the import

* Test for access to the grimoire

* New test to find the grimoire

* Trying to import 'state' instead of 'grimoire'

* maybe the import is useless

* Trying what happens if organGrinder=true

* Trying access to index.js/state without conflict

* Update session.js

* Update session.js

* Update session.js

* Correcting typo

* Update session.js

* Update session.js

* Update session.js

* Update session.js

* Update session.js

* Update session.js

* Update session.js

* Update session.js

* Update session.js

* Update session.js

* Final version of this file

* Updating a sentence in singular

* Correcting Organ Grinder's ability

The Organ Grinder's ability is not active for exiles.

* Hiding the number of votes if Organ Grinder

* Trying new bool, maybe better that "isStoryTeller"

* Update Vote.vue

* Update Vote.vue

* Just for a test

* Update Vote.vue

* It's just for a test

* Cancelling all changes, I'll see it later

* Updating to take account isOrganGrinderVoteMode

* Allowing Story Teller to see history

(even if there is an Organ Grinder)

* Correcting ?:

An "else" condition is necessary.

* Trying to correct the error with new parenthesis

* Hidding the number of hands up during vote

Only for players, and only if there is an Organ Grinder

* Test for hide vote

* Update Player.vue

* Cancelling changes

* Test for icons

* New test to confirm the "v-if" is detected

* New test

* Trying to add the "?"

* Testing adding some new elements to print the "?"

* Finishing the print of "?"

The print wasn't printed for other players before the vote lock.

* Corecting a careless mistake

* Finalising the hidden votes

- Correcting the conditions (the previous ones was for tests
- Changing the colour of "?"

* Adding a new colour

* Removing the previous (and without effect) change

* Adding a new colour
2023-05-09 17:32:02 +00:00
Pingumask
9b591af752 Menu adjustments 2023-02-27 21:49:15 +00:00
Pingumask
c1693ec361 Small UI adjustments 2023-02-27 19:00:11 +00:00
pingumask
8d0622f3bb responsive design 2022-12-26 16:23:44 +01:00
Pingumask
fdb208c03a Localization + French translation 2022-10-27 22:36:19 +02:00
Nathan Ferguson
84f6cab2d8 Add static hover target to prevent reminder token flickering #153 2022-04-03 22:35:18 +12:00
Steffen
300395de08
v2.13.0 (#168)
* add support for custom fabled (closes #110)

* 2.13.0

* show custom fabled first

* add recordVoteHistory & clearVoteHistory to session menu

* Update CHANGELOG.md

* socket part of toggle recordVoteHistory

analogous to isNight

* remove accidental

* Add files via upload

* add custom fabled

* Add option to reduce night animations to save power.

* add fallback icon for fabled

* changelog

* disable all animations now

* linter

* add 'on the block' indicator

- after vote, ST chooses to put onto block / empty block / no change to block
- player menu has add / remove from block
- players are automatically removed from the block when (i) they die (ii) another player is put onto block
- fixed crash on add/remove/etc player mid vote

* hide rounded corners on maximized modals

(barely visible anyway)

* ST always sees vote history

i.e. toggle affects only players

* empty block at night

* avoid clashing with seat icon

* nlc: toggle within session.js

* lint

* minor

* Use proper "Exile" terminology for exile

* Add info about "Banishment"->"Exile" to CHANGELOG

* requested changes

* remove direct ST control of block

* player menu order

* move block/night logic from socket to menu

* minor fix to previous

* on block -> marked

* requested changes

* requested change

Co-authored-by: Steffen <steffen@baumgart.biz>

* fix players being moved or removed during a nomination (closes #164)
add vue linter

* let's try adding a lint error

* linter adjusted

* it's working!

* requested change

record marked player id in session

* feedback implemented
npm audit

* prepare develop branch

* adjust linter config

* revert version bump

* fixes & visuals

* Update CHANGELOG.md

* restore old lint command (fixes #170)

* minor fix default

* show jinxed interactions on character reference modal

* 2.13.0

* changelog

Co-authored-by: nicfreeman1209 <nicfreeman1209@gmail.com>
Co-authored-by: nicfreeman1209 <14160941+nicfreeman1209@users.noreply.github.com>
Co-authored-by: Adrian Irving-Beer <wisq@wisq.net>
Co-authored-by: Andrew Conant <emptierset@gmail.com>
2021-05-15 20:07:54 +02:00
Steffen
da3a13518b
fix shifting player bug on delete (fixes #135) 2021-03-19 20:09:13 +01:00
Dave
9e249765de final styling changes, making pronouns icon always appear on the same side. 2021-03-06 09:34:18 +00:00
Dave
a4a44f9ba8 fixing bug stopping pronouns from being removed by checking for null specifically instead of just a falsey value. 2021-03-03 22:34:02 +00:00
Dave
4d2225c994 tweaking styles and adding pronouns icon to name bar if the player has pronouns set, made the name bar slighlty wider to allow for the same number of charachtersfor this and moved the player menu slightly to account for it. 2021-03-03 22:23:22 +00:00
Dave
77e89f290b changed out transgender symbol for the hopefully more suitable venus-mars icon 2021-03-02 19:03:36 +00:00
Dave
f6ca08d6d5 reworked CSS for pronoun tooltip and a little bit of player name to fix text overflow. Also moved the text content in to span tags for styling. 2021-03-02 18:50:18 +00:00
Dave
2590f00ea9 removing preferred, to mkae it just Player Pronouns 2021-03-01 14:55:05 +00:00
Dave
2a028bb7cd stop pronouns being set to null when cacelling prompt 2021-03-01 14:53:32 +00:00
Dave
81af122458 making change pronoun option appear for story teller as well as seated player and updating flow control logic to allow story teller to change the pronouns for any player 2021-02-28 14:51:15 +00:00
Dave
f670193fba added a max width and overflow hidden to the pronouns tooltip to stop it getting too long 2021-02-28 13:26:58 +00:00
Dave
b9bd77789a correcting spelling of preferred on pronoun prompt 2021-02-28 13:19:34 +00:00
Dave
ecb205e027 cleaning up vueX code to reuse existing player update methods, and add form flow logic to block infinite loops 2021-02-28 13:17:40 +00:00
Dave
3f33e10564 cleaning up formatting and syntax style in player.vue CSS 2021-02-28 11:31:18 +00:00
Dave
769c891a67 correcting pronoun to pronouns in all occurances 2021-02-28 11:23:16 +00:00
Dave
2e930e6606 Merge branch 'main' of https://github.com/davotronic5000/townsquare into #43_gender_pronouns 2021-02-28 10:30:44 +00:00
Steffen
a5d6d593c8 show generic icons for custom roles and opt out players 2021-02-04 21:40:59 +01:00
Dave
ec05b07329 adding additional validation to changePronoun method in player.vue 2021-01-27 22:36:42 +00:00
Dave
e60def4226 creating an action to store player pronoun in state and persist the data in local storage 2021-01-27 19:41:28 +00:00
Dave
18e5b86518 makeing option to change pronouns only show for currently seated player 2021-01-25 21:15:45 +00:00
Dave
48eab1fa8c getting player pronouns to be synced over sockets layer 2021-01-18 14:02:03 +00:00
Dave
03731bc887 tweaking position of tooltip 2021-01-17 23:41:44 +00:00
Dave
d8df724907 created css for pronoun tooltips 2021-01-17 23:20:59 +00:00
Dave
37194a390f adding fonat awesome idon to menu option for change pronouns 2021-01-17 00:50:07 +00:00
Dave
5bafa94a1a make change pronoun menu option appear for both story tellers and the seated player 2021-01-17 00:36:49 +00:00
Dave
ccd40ccc99 adding method and dialog to player vue to update player pronoun in state. 2021-01-17 00:18:26 +00:00
Steffen
f6a7cbaf28 adjusted player menu styling for smaller screens (fixes #88) 2021-01-09 21:32:52 +01:00
Steffen
2741950837 remove screenshot feature as it is no longer needed 2020-12-27 20:11:57 +01:00
Steffen
f7eef3f8ea add player role distribution through live session for ST 2020-12-15 22:31:50 +01:00
Steffen
53d608288d only empty seats can be claimed by players and ST can clear seats now 2020-12-15 15:59:43 +01:00
Steffen
f69c7a79c2 voting terminology adjusted (closes #66)
highlight currently selected vote option
2020-12-02 22:01:16 +01:00
Steffen
ede5d353f4 better (custom) reminder text rendering 2020-12-01 21:49:06 +01:00
Steffen
f10ff968a6 finished adding night reminders to fabled 2020-11-30 22:04:21 +01:00
Steffen
974089e033
code cleanup 2020-08-09 22:09:39 +02:00
Steffen
a8a87a1e38
adjusted custom scripts with fabled support
added session handling for fabled
2020-08-09 22:02:02 +02:00
Steffen
f7c8e022a3
fabled UI finished 2020-08-09 21:28:38 +02:00
Steffen
fd75b1771f
fixed jumpy clock hands when someone joins in the middle of a vote (fixes #49) 2020-07-23 10:40:26 +02:00
Steffen
1ce9c08dc3
keep night order for dead players (closes #47) 2020-07-19 21:16:45 +02:00