Detect interface unlock / action queueing

Game development with Board Game Arena Studio
User avatar
RicardoRix
Posts: 2548
Joined: 29 April 2012, 23:43

Re: Detect interface unlock / action queueing

Post 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.
User avatar
quietmint
Posts: 299
Joined: 31 July 2017, 00:28

Re: Detect interface unlock / action queueing

Post 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.)
User avatar
Draasill
Posts: 197
Joined: 26 April 2020, 00:00

Re: Detect interface unlock / action queueing

Post by Draasill »

(BTW you should add the "boardgamearena" tag to the github project :) )
https://github.com/topics/boardgamearena
User avatar
fafa-fr
Posts: 383
Joined: 22 December 2013, 21:58

Re: Detect interface unlock / action queueing

Post 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 :)
Post Reply

Return to “Developers”