Hi all,
this is my first post after lurking for a while.
I've been experimenting with customizing the "modernized VerbCoin" in the template which comes with the latest version of AGS. I love the template, it just needs some new sprites to match the aesthetic of the game I'm creating. However, I really want six verbs on the coin. I've been analysing the code and don't really understand how it positions the buttons, or how I would go about adding more?
Take a look at DeadSuperHero's template here:
https://www.adventuregamestudio.co.uk/forums/index.php?topic=58889.0
I haven't used but it looks similar to what you want.
Hey, that template looks great!
Not quite what I'm after though, I really like the user experience of the Modernized VerbCoin template which game with AGS- it's pleasingly minimal.
Is there any documentation or a thread about that particular template? I've been searching but haven't been able to find it.
It seems like the Modernized Verb is hardwired to support four verb buttons, but I'd love to be proven wrong on that!
Quote from: timid_dolphin on Sun 20/06/2021 10:51:59
Not quite what I'm after though, I really like the user experience of the Modernized VerbCoin template which game with AGS- it's pleasingly minimal.
Is there any documentation or a thread about that particular template? I've been searching but haven't been able to find it.
At the moment the only documentation for it is here:
https://adventuregamestudio.github.io/ags-manual/TemplateVerbcoin.html
Quote from: timid_dolphin on Sun 20/06/2021 10:51:59
It seems like the Modernized Verb is hardwired to support four verb buttons, but I'd love to be proven wrong on that!
You can register
up to four verb buttons but the positions are hard-coded, so as an example you couldn't have one button in the middle. The main purpose of rewriting it was to give a new starting point for something better, so in theory it is just waiting for a mathematical hero to add a generic layout method that can accommodate different shapes, icon sizes, and styles. But in the mean time you could just replace the existing layout code and the fixed layout positions.
i.e. edit this function:
https://github.com/adventuregamestudio/ags-template-source/blob/3a4224d9fbd085cf2a26edc9d669cf17df38a266/Verb%20Coin/VerbCoin.asc#L170-L212