r/Pizza_Presser • • Aug 14 '14

Quick Fix!

Just released a tiny update which should fix all the trouble everyone is having with saving and loading. My bad! Enjoy :)

1 Upvotes

2 comments sorted by

2

u/64bitcookie Aug 14 '14 edited Aug 14 '14

The upgrades are still a bit buggy - if you buy it and refresh it doesn't reload it until you buy another upgrade.

If you are only going to buy the upgrades once instead of using a counter to show how many you bought couldn't you use ticks and crosses to show if you have bought it or not to prevent people wasting there money haha.

e.g)

======= = HTML =

<button onClick="buyUpgrade()">
    <table>
    	<tr>
    	    <td>
	       	<span>Upgrade Name!</span>
	    </td>
	    <td rowspan="2">
	        <span id="upgradeRight">&#10007;</span>
	    </td>
    </tr>
    <tr>
	    <td>
		    <span>$</span>
		    <span id="upgradeCost" class="text">0</span>
	    </td>
    </tr>
</table>
</button>

============ = JAVASCRIPT =

function buyUpgrade() {
	    document.getElementById('upgradeRight').innerHTML = '&#10003;';
}

and this is what it would look like:

before clicked

after clicked

1

u/Mojo2013 Aug 14 '14

Thanks for this :) - The next patch is gonna be dedicated to upgrades so I can sort the confusion out