-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtradeWindow.html
62 lines (56 loc) · 1.41 KB
/
tradeWindow.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!-- Inspired from http://angular-ui.github.io/bootstrap/ -->
<div class="modal-header">
<h3>Trade screen</h3>
</div>
<div class="modal-body">
<div>
player: {{personCopy.name}}
</div>
<div>
planet: {{planetCopy.name}}
</div>
<div class="block">
<div class="tradeRowItem border-light">
</div>
<div class="tradeRowItem border-light">
Planet
</div>
<div class="tradeRowButton border-light">
</div>
<div class="tradeRowItem border-light">
Transfer
</div>
<div class="tradeRowButton border-light">
</div>
<div class="tradeRowItem border-light">
Ship
</div>
</div>
<div ng-repeat="resourceName in resourceNameList" class="block">
<div class="tradeRowItem border-light">
{{resourceName}}
</div>
<div class="tradeRowItem border-light">
{{planetCopy.getStored(resourceName)}}
</div>
<div class="tradeRowButton border-light">
<button ng-click="sell(resourceName)" class="btn"></button>
</div>
<div class="tradeRowItem border-light">
Transfer!
</div>
<div class="tradeRowButton border-light">
<button ng-click="buy(resourceName)" class="btn"></button>
</div>
<div class="tradeRowItem border-light">
{{personCopy.ship.getCargoCount(resourceName)}}
</div>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-primary" ng-click="ok()">Done</button>
<button class="btn btn-warning" ng-click="cancel()">Cancel</button>
</div>