Changeset e2ca6c9cda25905a2780120b17537e03c2352c4b
- Timestamp:
- 07/08/07 13:08:41
(1 year ago)
- Author:
- Christopher Jung <bktheg@web.de>
- git-committer:
- Christopher Jung <bktheg@web.de> 1183892921 +0200
- git-parent:
[33b4c765166e54319cb2c354fc6faaa315b6cbcd]
- git-author:
- Christopher Jung <bktheg@web.de> 1183892921 +0200
- Message:
Anzeige Baukosten pro Tick in der Bauschlange sowie Hover-Effekte eingebaut
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r07a80e0 |
re2ca6c9 |
|
| 250 | 250 | private void out_queueShipList(WerftObject werft, WerftQueueEntry[] queue) { |
|---|
| 251 | 251 | t.set_block("_WERFT.WERFTGUI", "queueshiplist.listitem", "queueshiplist.list"); |
|---|
| | 252 | t.set_block("queueshiplist.listitem", "queueship.buildcosts.listitem", "queueship.buildcosts.list"); |
|---|
| 252 | 253 | |
|---|
| 253 | 254 | int remaining = 0; |
|---|
| … | … | |
| 259 | 260 | |
|---|
| 260 | 261 | t.set_var( |
|---|
| | 262 | "queueship.buildcosts.list", "", |
|---|
| 261 | 263 | "queueship.position", entry.getPosition(), |
|---|
| 262 | 264 | "queueship.type.image", entry.getBuilding().getPicture(), |
|---|
| … | … | |
| 273 | 275 | "queueship.item.picture", Items.get().item(entry.getBuildItem()).getPicture(), |
|---|
| 274 | 276 | "queueship.item.name", Items.get().item(entry.getBuildItem()).getName()); |
|---|
| | 277 | } |
|---|
| | 278 | |
|---|
| | 279 | if( !entry.getCostsPerTick().isEmpty() ) { |
|---|
| | 280 | ResourceList reslist = entry.getCostsPerTick().getResourceList(); |
|---|
| | 281 | for( ResourceEntry res : reslist ) { |
|---|
| | 282 | t.set_var( |
|---|
| | 283 | "res.image", res.getImage(), |
|---|
| | 284 | "res.plainname", res.getPlainName(), |
|---|
| | 285 | "res.name", res.getName(), |
|---|
| | 286 | "res.cargo", res.getCargo1() |
|---|
| | 287 | ); |
|---|
| | 288 | |
|---|
| | 289 | t.parse("queueship.buildcosts.list", "queueship.buildcosts.listitem", true); |
|---|
| | 290 | } |
|---|
| | 291 | } |
|---|
| | 292 | |
|---|
| | 293 | if( entry.getEnergyPerTick() != 0 ) { |
|---|
| | 294 | |
|---|
| | 295 | t.set_var( |
|---|
| | 296 | "res.image", Configuration.getSetting("URL")+"data/interface/energie.gif", |
|---|
| | 297 | "res.plainname", "Energie", |
|---|
| | 298 | "res.name", "Energie", |
|---|
| | 299 | "res.cargo", entry.getEnergyPerTick() |
|---|
| | 300 | ); |
|---|
| | 301 | |
|---|
| | 302 | t.parse("queueship.buildcosts.list", "queueship.buildcosts.listitem", true); |
|---|
| 275 | 303 | } |
|---|
| 276 | 304 | |
|---|
| r07a80e0 |
re2ca6c9 |
|
| 279 | 279 | <br /> |
|---|
| 280 | 280 | {if werftgui.main.build} |
|---|
| | 281 | <script type="text/javascript"> |
|---|
| | 282 | <!-- |
|---|
| | 283 | //<![CDATA[ |
|---|
| | 284 | function highlightRow(row, highlight) { |
|---|
| | 285 | if( highlight ) { |
|---|
| | 286 | row.style.backgroundColor = '#36413A'; |
|---|
| | 287 | } |
|---|
| | 288 | else { |
|---|
| | 289 | row.style.backgroundColor = 'transparent'; |
|---|
| | 290 | } |
|---|
| | 291 | } |
|---|
| | 292 | //]]> |
|---|
| | 293 | --> |
|---|
| | 294 | </script> |
|---|
| 281 | 295 | {if werftgui.buildshiplist} |
|---|
| 282 | 296 | <div style="height:400px; overflow:auto;"> |
|---|
| … | … | |
| 289 | 303 | </tr> |
|---|
| 290 | 304 | <!-- BEGIN buildshiplist.listitem --> |
|---|
| 291 | | <tr> |
|---|
| | 305 | <tr onmouseover="highlightRow(this, true)" onmouseout="highlightRow(this, false)"> |
|---|
| 292 | 306 | <td class="noBorderX"> |
|---|
| 293 | 307 | {if buildship.item.id} |
|---|
| … | … | |
| 353 | 367 | {if queueshiplist.list} |
|---|
| 354 | 368 | <div style="height:400px; overflow:auto;"> |
|---|
| 355 | | <table class="noBorderX" style="width:95%"> |
|---|
| | 369 | <table class="noBorderX" style="width:95%" cellpadding="5"> |
|---|
| 356 | 370 | <tr> |
|---|
| 357 | | <td class="noBorderX" style="text-align:center" colspan="2">Typ</td> |
|---|
| 358 | | <td class="noBorderX">Status</td> |
|---|
| 359 | | <td class="noBorderX"></td> |
|---|
| 360 | | <td class="noBorderX">Aktionen</td> |
|---|
| | 371 | <td class="noBorderX" style="text-align:center;width:30%" colspan="2">Typ</td> |
|---|
| | 372 | <td class="noBorderX" style="width:50%">Status</td> |
|---|
| | 373 | <td class="noBorderX" style="width:10%"></td> |
|---|
| | 374 | <td class="noBorderX" style="width:10%">Aktionen</td> |
|---|
| 361 | 375 | </tr> |
|---|
| 362 | 376 | <!-- BEGIN queueshiplist.listitem --> |
|---|
| 363 | | <tr> |
|---|
| | 377 | <tr onmouseover="highlightRow(this, true)" onmouseout="highlightRow(this, false)"> |
|---|
| 364 | 378 | <td class="noBorderX"> |
|---|
| 365 | 379 | <img style="vertical-align:middle;width:64px" src="{queueship.type.image}" alt="" /> |
|---|
| … | … | |
| 372 | 386 | {if queueship.reqitem} |
|---|
| 373 | 387 | <br />Benötigt: <img style="vertical-align:middle" src="{URL}data/items/{queueship.item.picture}" alt="{queueship.item.name}" />{queueship.item.name} |
|---|
| | 388 | {/endif} |
|---|
| | 389 | {if queueship.buildcosts.list} |
|---|
| | 390 | <br />Pro Tick: |
|---|
| | 391 | <!-- BEGIN queueship.buildcosts.listitem --> |
|---|
| | 392 | <img style="vertical-align:middle" src="{res.image}" alt="{res.plainname}" title="{res.plainname}" />{res.cargo} |
|---|
| | 393 | <!-- END queueship.buildcosts.listitem --> |
|---|
| 374 | 394 | {/endif} |
|---|
| 375 | 395 | </td> |
|---|