LWWidget.Beta5.Cash = LWWidget.Game.Page.inherits({ setData: function (data) { var _d = data.getChildren('Empire')[0].getChildren('Budget')[0]; this.income = parseInt(_d.getAttribute('income'), 10); this.upkeep = parseInt(_d.getAttribute('upkeep'), 10); this.profit = parseInt(_d.getAttribute('profit'), 10); }, draw: function (_e) { _e.innerHTML = '



Planetary income: €' + Base.Util.formatNumber(this.income) + '

Fleet upkeep: €' + Base.Util.formatNumber(this.upkeep) + '

Daily profit: €' + Base.Util.formatNumber(this.profit) + '

'; } });