From 37e29e397bfee67e5d54772d147eb6a961084c8c Mon Sep 17 00:00:00 2001 From: novgorodschi catalin Date: Wed, 12 Aug 2026 11:21:04 +0300 Subject: [PATCH] Some visual change on Hero T4 Some visual change on Hero T4 --- Templates/Build/37_adventures.tpl | 167 ++++++++++++++++++++----- Templates/Build/37_auction.tpl | 128 ++++++++++++++++--- Templates/Build/37_items.tpl | 200 +++++++++++++++++++++++------- 3 files changed, 410 insertions(+), 85 deletions(-) diff --git a/Templates/Build/37_adventures.tpl b/Templates/Build/37_adventures.tpl index 63798d42..714fe190 100644 --- a/Templates/Build/37_adventures.tpl +++ b/Templates/Build/37_adventures.tpl @@ -72,29 +72,137 @@ $t4PlaceInfo = function ($wref) use ($database, $generator) { }; ?> + +

- - - - -
- getTimeFormat(max(0, $t4Running['endtime'] - $t4Now)); ?> -
+ " ramane neschimbat, deci ceasul din JS-ul jocului merge + * exact ca inainte. + */ + ?> +
+ + getTimeFormat(max(0, $t4Running['endtime'] - $t4Now)); ?> +
- +
- - - - - - + , deci nu se stila ca antet ?> + + + + + + @@ -105,37 +213,40 @@ $t4PlaceInfo = function ($wref) use ($database, $generator) { $t4Hard = ((int) $t4Offer['difficulty'] === 1); ?> - - + - - + - - +
 
- + + - (|) + + (|) + getTimeFormat((int) $t4Offer['duration']); ?>getTimeFormat((int) $t4Offer['duration']); ?> - + <?php echo $t4Hard ? HERO_ADV_DIFF_HARD : HERO_ADV_DIFF_NORMAL; ?> + title=""> getTimeFormat(max(0, $t4Offer['expire'] - $t4Now)); ?>getTimeFormat(max(0, $t4Offer['expire'] - $t4Now)); ?> + -
+ - +
- - + + +
diff --git a/Templates/Build/37_auction.tpl b/Templates/Build/37_auction.tpl index dc36422c..99122d47 100644 --- a/Templates/Build/37_auction.tpl +++ b/Templates/Build/37_auction.tpl @@ -192,6 +192,18 @@ foreach ($t4HeroItems->getInventory($session->uid) as $t4Row) { Latimile sunt stranse la minimul in care incape headerul, ca tabelul sa nu mai depaseasca zona de continut (~505px) si sa nu mai apara scroll orizontal. Total: 78+96+66+46+66+74 = 426px + padding. */ +/* Capul de COLOANE, la fel ca in 37_items.tpl si 37_adventures.tpl: gri + deschis, text mic, ca sa nu concureze cu titlul tabelului de deasupra. */ +.t4auc-tbl tr.t4cols th { + background: #e8e8ea; + color: #444; + font-size: 11px; + font-weight: bold; + text-align: center; + padding: 3px 5px; + border-bottom: 1px solid #d0d0d4; +} + .t4auc-tbl th { text-align: center; } /* fara white-space:nowrap pe th: "Se incheie in" se rupe pe doua randuri @@ -215,6 +227,55 @@ foreach ($t4HeroItems->getInventory($session->uid) as $t4Row) { word-wrap: break-word; } +/* --- "My bids" / "My sales": aceleasi tonuri ca restul paginii --- */ +.t4auc-mini td { padding: 6px; font-size: 11px; vertical-align: middle; } + +/* Coloana obiectului: iconita sus, numele dedesubt cu scris pal - exact ca in + tabelul de licitatii deschise, ca cele doua liste sa se citeasca la fel. */ +.t4auc-mini .t4auc-col-item { width: 86px; text-align: center; } + +/* Eticheta pe RANDUL EI, valoarea dedesubt. + Inainte erau inline: in coloana ingusta eticheta se rupea, iar cifra + ingrosata urca peste ea. Ca bloc, fiecare are randul propriu. */ +.t4auc-mini .t4auc-lbl { + display: block; + margin-bottom: 3px; + color: #8a877f; + font-size: 10px; + line-height: 14px; + white-space: nowrap; +} + +/* NU folosi ".t4auc-num" aici: numele e deja luat de campurile din Casa de + schimb (input cu chenar), iar valorile ar fi aratat ca niste casute + editabile. */ +.t4auc-mini .t4auc-value { display: block; font-weight: bold; line-height: 15px; color: #3f3d39; } +.t4auc-mini .t4auc-val { text-align: right; width: 92px; } +.t4auc-mini .t4auc-time { text-align: center; width: 74px; font-variant-numeric: tabular-nums; color: #8a877f; } + +/* --- "Sell an item" --- */ +.t4auc-sell td { padding: 6px; font-size: 11px; vertical-align: middle; } + +.t4auc-sell .t4auc-lbl { + display: block; + margin-bottom: 3px; + color: #8a877f; + font-size: 10px; +} + +.t4auc-sell select, +.t4auc-sell input[type="text"] { + padding: 2px 4px; + border: 1px solid #b9b6b0; + border-radius: 3px; + font-size: 11px; + font-family: inherit; +} + +.t4auc-sell select { max-width: 100%; } +.t4auc-sell .t4auc-qty { width: 48px; text-align: center; } +.t4auc-sell .t4auc-prc { width: 62px; text-align: right; } + /* Tier: numarul sus, abilitatea dedesubt cu scris mai pal */ .t4auc-tier { display: inline-block; @@ -416,7 +477,7 @@ $t4LblPrice = defined('HERO_AUC_PRICE_SHORT') ? HERO_AUC_PRICE_SHORT : HERO_AUC_ - + @@ -475,17 +536,28 @@ $t4LblPrice = defined('HERO_AUC_PRICE_SHORT') ? HERO_AUC_PRICE_SHORT : HERO_AUC_
- +
- - - - + + + + @@ -493,16 +565,24 @@ $t4LblPrice = defined('HERO_AUC_PRICE_SHORT') ? HERO_AUC_PRICE_SHORT : HERO_AUC_ -
(x): : getTimeFormat(max(0, $t4A['time_end'] - $t4Now)); ?> + + + (x) + + + + + + + + getTimeFormat(max(0, $t4A['time_end'] - $t4Now)); ?>
+
- - - + + + @@ -510,15 +590,24 @@ $t4LblPrice = defined('HERO_AUC_PRICE_SHORT') ? HERO_AUC_PRICE_SHORT : HERO_AUC_ -
(x): getTimeFormat(max(0, $t4A['time_end'] - $t4Now)); ?> + + + (x) + + + + + getTimeFormat(max(0, $t4A['time_end'] - $t4Now)); ?>
+
+ sta intre si - - - + + - + diff --git a/Templates/Build/37_items.tpl b/Templates/Build/37_items.tpl index a5822ce6..45ce1aab 100644 --- a/Templates/Build/37_items.tpl +++ b/Templates/Build/37_items.tpl @@ -83,56 +83,172 @@ $t4Equipped = $t4HeroItems->getEquipped($session->uid);

-
, ceea ce nu e HTML valid - browserele + * il "ridica" in afara tabelului, dar campurile raman asociate si + * formularul functioneaza. Structura e cea originala; a fost pastrata + * intentionat, ca sa nu se schimbe alinierea pe coloane. + */ + ?>
+ : : : + + + + + + + + + +
- - - - - + + + + + - + - + - - + @@ -143,11 +259,11 @@ table.t4items .t4bonus{display:block;color:#777;font-size:10px;line-height:1.3;f - - - - - + + + + + @@ -162,39 +278,39 @@ table.t4items .t4bonus{display:block;color:#777;font-size:10px;line-height:1.3;f ?> - + - + - - +
- T + - () + + -
+ - +
- +
-
- + + + x + + + - () + -
+
+ - - + + - + - +