Jump to content
  • 0

Help With drop/spoil panel


Question

Posted (edited)

Good colleagues, I would need a hand to fix this text so that everything does not appear as rows.

 

Here is the code

 

StringUtil.append(html1, "<tr>", "<td><img src=\"" + item.getIcon() + "\" height=32 width=32></td>" + "<td><font color=\"", color, "\">", item.getName() + "</td>" + "<tr><td><font color=\"00cc66\">Chance: </font>", "<font color=\"ffffff\">" + roundChance + "0%" + "</font></td></tr>", "<td>", (drop.isQuestDrop() ? "Quest" : (cat.isSweep() ? "Sweep" : "Drop")), "</td>", "</tr>");

 

DropPanel.png

Edited by Vision

3 answers to this question

Recommended Posts

  • 0
Posted (edited)
<tr><td widht="250"><font color=\"00cc66\">Chance: </font>

try messing with width 250 , try bigger or lower until you fit it.

is funny how this is a java topic and you are supposed to already know editing basic htm xD

Edited by arm4729
  • 0
Posted

The problem is the width of your <td>. By increasing that, you will fix it.

 

But imho remove the "Chance" string (why you need it?) and limit the decimals after the dot to 2.

 

[ICON]

3.18%

 

instead of

[ICON]

Chance: 3.180%

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...