summaryrefslogtreecommitdiff
path: root/index.html
blob: 9a270200db1dc298d40c1e834c27104b4db55a2f (plain)
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">

    <link rel="stylesheet" href="/resources/css/variables.css" />
    <link rel="stylesheet" href="/resources/css/page.css" />
    <link rel="stylesheet" href="/resources/css/battle.css" />
    <link rel="stylesheet" href="/resources/css/menu.css" />
  </head>

  <body>
    <div class="wrap">
      <div id="battle">
        <div id="battle__enemy">
          <img class="battle__monster-sprite__animation" src="" draggable="false" />
        </div>

        <div id="battle__player"></div>
      </div>

      <div id="techniques"></div>
      <template id="tpl___techniques">
        <div></div>
      </template>
      <template id="tpl___technique">
        <div class="techniques__technique">
          <div>
            <div data-template-slot="name"></div>
            <div data-template-slot="types"></div>
          </div>
          <div>
            <div data-template-slot="power"></div>
            <div data-template-slot="accuracy"></div>
            <div data-template-slot="range"></div>
          </div>
        </div>
      </template>

      <div id="status">
        <div>Money: <span id="money"></span></div>
      </div>

      <div id="menu">
        <div id="menu__party">
          <img src="/modules/tuxemon/mods/tuxemon/gfx/ui/menu/tuxemon.png" title="Tuxemon" width="64" height="64" />
        </div>

        <div id="menu__inventory">
          <img src="/modules/tuxemon/mods/tuxemon/gfx/ui/item/backpack.png" title="Inventory" width="64" height="64" />
        </div>

        <div id="menu__catch">
          <img src="/modules/tuxemon/mods/tuxemon/gfx/items/tuxeball.png" title="Catch" width="64" height="64" />
        </div>

        <div id="menu__journal">
          <img src="/modules/tuxemon/mods/tuxemon/gfx/ui/menu/journal.png" title="Journal" width="64" height="64" />
        </div>
      </div>
    </div>


    <!-- Templates -->

    <template id="tpl___party">
      <div class="party">
        <div data-template-slot="monsters" class="party__monsters"></div>
        <div data-template-slot="modes" class="party__selection-modes">
          <button data-template-slot="modeSelect" data-party-selection-mode="select">Select</button>
          <button data-template-slot="modeStats" data-party-selection-mode="stats">Stats</button>
          <button data-template-slot="modeTechniques" data-party-selection-mode="techniques">Techniques</button>
        </div>
      </div>
    </template>

    <template id="tpl___party__monster">
      <div class="party__monster">
        <div><div class="monster__level"></div></div>
        <img data-template-slot="sprite" class="monster__img" src="" />
        <div class="monster__exp">
          <div class="monster__exp-bar"></div>
        </div>
        <div class="monster__exp-text"></div>
        <div class="monster__active-technique">
          <div class="monster__active-technique__name"></div>
          <div class="monster__active-technique__types"></div>
          <div class="monster__active-technique__power"></div>
        </div>
      </div>
    </template>

    <template id="tpl___battle__monster">
      <div class="battle__monster">
        <div class="battle__monster-info">
          <div class="battle__monster-info-box">
            <div>
              <span data-template-slot="name" class="battle__monster-info__name"></span>
              <span data-template-slot="gender" class="battle__monster-info__gender"></span>
              Lv. <span data-template-slot="level" class="battle__monster-info__level"></span>
            </div>
            <div class="battle__monster-info-box__status">
              <div data-template-slot="statusEffect" class="battle__monster-info__status"></div>
              <div data-template-slot="hpBar"></div>
            </div>
          </div>
          <div class="battle__monster-info-exp">
            <div class="exp-label">XP</div>
            <div data-template-slot="expBar"></div>
          </div>
        </div>
        <div class="battle__monster-visual">
          <div class="battle__monster-sprite">
            <img data-template-slot="sprite" class="battle__monster-img" src="" draggable="false" />
          </div>
        </div>
      </div>
    </template>

    <template id="tpl___battle__hp-bar">
      <div class="hp-bar">
        <div class="hp-bar__bar-wrap">
          <div data-template-slot="bar" class="hp-bar__bar"></div>
        </div>
        <div data-template-slot="text" class="hp-bar__text"></div>
      </div>
    </template>

    <template id="tpl___battle__exp-bar">
      <div class="exp-bar">
        <div class="exp-bar__bar-wrap">
          <div data-template-slot="bar" class="exp-bar__bar"></div>
        </div>
        <div data-template-slot="text" class="exp-bar__text"></div>
      </div>
    </template>

    <template id="tpl___battle__damage">
      <div data-template-slot="text" class="damage"></div>
    </template>

    <template id="tpl___popup">
      <div class="popup__overlay">
        <div class="popup"></div>
      </div>
    </template>

    <template id="tpl___moveset__list">
      <div class="moveset__list"></div>
    </template>
    <template id="tpl___moveset__item">
      <div class="moveset__item">
        <span data-template-slot="name" class="moveset__item__name"></span>
        <span data-template-slot="types" class="moveset__item__type"></span>
        <span data-template-slot="power" class="moveset__item__power"></span>
        <span data-template-slot="level" class="moveset__item__level"></span>
      </div>
    </template>

    <template id="tpl___menu__journal">
      <div>
        <button data-template-slot="save">Save</button>
        <button data-template-slot="load">Load</button>
      </div>
    </template>


    <script type="text/javascript" src="/resources/js/definitions.js"></script>
    <script type="text/javascript" src="/resources/js/helpers.js"></script>
    <script type="text/javascript" src="/resources/js/classes/Monster.js"></script>
    <script type="text/javascript" src="/resources/js/classes/Technique.js"></script>
    <script type="text/javascript" src="/resources/js/classes/StatusEffect.js"></script>
    <script type="text/javascript" src="/resources/js/classes/Item.js"></script>
    <script type="text/javascript" src="/resources/js/classes/State.js"></script>
    <script type="text/javascript" src="/resources/js/db.js"></script>
    <script type="text/javascript" src="/resources/js/formula.js"></script>
    <script type="text/javascript" src="/resources/js/ui.js"></script>
    <script type="text/javascript" src="/resources/js/game.js"></script>
  </body>
</html>