Search found 6 matches

by catwillow
24 March 2024, 07:49
Forum: Developers
Topic: Adding text strings to a piece on a gameboard
Replies: 11
Views: 737

Re: Adding text strings to a piece on a gameboard

https://developer.mozilla.org/en-US/docs/Web/CSS/position yes absolute or relative position should do the trick. The browser F12 developer has an inspect element function and is great for dabbling with css and styling requirements. As well as seeing how your dojo.place functions worked. Don't forge...
by catwillow
22 March 2024, 03:46
Forum: Developers
Topic: Adding text strings to a piece on a gameboard
Replies: 11
Views: 737

Re: Adding text strings to a piece on a gameboard

From your example, you would put an additional 'text' placeholder variable inside the jstpl_token, (the similar way 'color' is done in your example). jstpl_text_token = '<div id="myImage">${text}</div>' where you'd pass 'text' as a parameter with 123. text: 123 You'd obviously want to com...
by catwillow
22 March 2024, 00:26
Forum: Developers
Topic: Adding text strings to a piece on a gameboard
Replies: 11
Views: 737

Re: Adding text strings to a piece on a gameboard

Let's define a simple div with the id "myImage" showing the token image as background <div id="myImage"></div> You should be able to do $("myImage").innerText="123"; So I'm working with the Reversi tutorial, here: https://en.doc.boardgamearena.com/Tutorial_re...
by catwillow
21 March 2024, 14:15
Forum: Developers
Topic: Adding text strings to a piece on a gameboard
Replies: 11
Views: 737

Re: Adding text strings to a piece on a gameboard

Is it a simple answer like use positioning (top and left)? are these pieces already just on a large board image? https://developer.mozilla.org/en-US/docs/Web/CSS/position Otherwise... Have you gone through the tutorials, and perhaps looked at some example code? BGA's standard approach is to use doj...
by catwillow
19 March 2024, 08:11
Forum: Developers
Topic: Adding text strings to a piece on a gameboard
Replies: 11
Views: 737

Adding text strings to a piece on a gameboard

I'd like to be able to add text to a piece on a gameboard - what's the best way to do that?

(Specifically, each piece will have a number from 0 to 999 on it.)
by catwillow
26 January 2024, 21:08
Forum: Discussions
Topic: Stopping bell notifications
Replies: 14
Views: 1651

Re: Stopping bell notifications

I am having the same problem. The bell is gone and I can't unsubscribe. How do you get the bell back?

Go to advanced search