Unminified source code for common BGA js components?

Game development with Board Game Arena Studio
Post Reply
User avatar
salty-horse
Posts: 78
Joined: 14 June 2012, 23:08

Unminified source code for common BGA js components?

Post by salty-horse »

I would like to understand and modify some of BGA's components, such as Stock.
Is the unminified source code available anywhere public?

I'm doing some unconventional things with it (wishing to handle my own selection mechanism, not using images for elements), and finding it time-consuming to understand which of things it depends upon for various operations, and how to bypass them (e.g., some operation depend on specific class names).

Having the source code would also allow to quickly adapt it to my own uses (such as placing the elements in specific patterns).
User avatar
Lymon Flowers
Posts: 196
Joined: 01 April 2020, 21:14

Re: Unminified source code for common BGA js components?

Post by Lymon Flowers »

I don't know if there are such files handy, but un-minification tools like js-beautify could help if you need to understand the framework a bit more.
User avatar
salty-horse
Posts: 78
Joined: 14 June 2012, 23:08

Re: Unminified source code for common BGA js components?

Post by salty-horse »

Yes, I can already view the files with a "prettifier". This is the process I'm finding time-consuming. It will be much easier if I had access to the real code.
User avatar
Victoria_La
Posts: 665
Joined: 28 December 2015, 20:55

Re: Unminified source code for common BGA js components?

Post by Victoria_La »

Code is not available publically for security and copyright protection reasons, it is not open source. Component like Stock is pretty trival and
you can use prettifier easily for sure. It is also very well documented on wiki pages.
You also don't really need it now days as html5 technologies pretty much elimate need to javascript coding
for managing children of a div and layout (so there is no really "modify" - if it does not fit into your model - do not use it).
User avatar
salty-horse
Posts: 78
Joined: 14 June 2012, 23:08

Re: Unminified source code for common BGA js components?

Post by salty-horse »

OK, thanks.
Post Reply

Return to “Developers”