Page 2 of 2

Re: Detect interface unlock / action queueing

Posted: 30 August 2020, 22:09
by RicardoRix
fafa-fr wrote: 30 August 2020, 21:53
quietmint wrote: 30 August 2020, 20:26 (to detect when a new log message is created, so we can change it later to strikethrough style upon "undo turn")
Oh, this would interest me (but only with an official Yes from the admins, and some feedback that it works without problem -- is it in Santorini, or in another game?)
I've noticed this nifty feature in the Beta Kingdom Builder game.

Re: Detect interface unlock / action queueing

Posted: 30 August 2020, 22:31
by quietmint
fafa-fr wrote: 30 August 2020, 21:53
quietmint wrote: 30 August 2020, 20:26 (to detect when a new log message is created, so we can change it later to strikethrough style upon "undo turn")
Oh, this would interest me (but only with an official Yes from the admins, and some feedback that it works without problem -- is it in Santorini, or in another game?)
Yes, Santorini is doing this when you "restart turn". It was a bit troublesome because of the timing (the log message for a cancelled action may appear before or after the cancellation occurs, and because they can refresh the page at any time you need to track all cancelled move IDs and transmit them in getAllDatas function) and because the DOM elements for mobile logs vs. desktop logs are using different IDs for the same log entry :) Poke around this commit: https://github.com/AntonioSoler/bga-san ... 9580322fbe

(Previous version of Santorini, and I'm sure still for Kingdom Builder, we did the override for function addMoveToLog but this didn't include mobile.)

Re: Detect interface unlock / action queueing

Posted: 31 August 2020, 17:04
by Draasill
(BTW you should add the "boardgamearena" tag to the github project :) )
https://github.com/topics/boardgamearena

Re: Detect interface unlock / action queueing

Posted: 31 August 2020, 17:55
by fafa-fr
quietmint wrote: 30 August 2020, 22:31
fafa-fr wrote: 30 August 2020, 21:53
quietmint wrote: 30 August 2020, 20:26 (to detect when a new log message is created, so we can change it later to strikethrough style upon "undo turn")
Oh, this would interest me (but only with an official Yes from the admins, and some feedback that it works without problem -- is it in Santorini, or in another game?)
Yes, Santorini is doing this when you "restart turn". It was a bit troublesome because of the timing (the log message for a cancelled action may appear before or after the cancellation occurs, and because they can refresh the page at any time you need to track all cancelled move IDs and transmit them in getAllDatas function) and because the DOM elements for mobile logs vs. desktop logs are using different IDs for the same log entry :) Poke around this commit: https://github.com/AntonioSoler/bga-san ... 9580322fbe
Thanks :)