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%

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..