character sizes, ..

This commit is contained in:
Sen 2025-03-27 23:14:26 +01:00
parent 74f730e450
commit 517e7d74f9
42 changed files with 405 additions and 209 deletions

View file

@ -62,7 +62,7 @@ public class GuiCharacters extends GuiList<GuiCharacters.CharacterEntry>
public void init(int width, int height)
{
super.init(width, height);
this.setDimensions(width - 400, height, 52, height - 52);
this.setDimensions(600, height, 32, height - 32);
this.elements.clear();
if(this.gm.getNetHandler() != null) {
int initialSelection = this.gm.getNetHandler().getSelectedCharacter();
@ -72,8 +72,8 @@ public class GuiCharacters extends GuiList<GuiCharacters.CharacterEntry>
this.elements.add(new CharacterEntry(null, false));
this.setSelected(initialSelection);
}
this.descField = this.add(new TransparentBox(width - 400, 0, 400, height - 28, ""));
this.actionButtom = this.add(new ActButton(width - 198 * 2, height - 24, 194, 20, new ActButton.Callback() {
this.descField = this.add(new TransparentBox(width - 390, 62, 380, height - 124, "", false));
this.actionButtom = this.add(new ActButton(width / 2 - 200, height - 28, 198, 24, new ActButton.Callback() {
public void use(ActButton elem, Mode action) {
CharacterEntry entry = GuiCharacters.this.getSelected();
if(entry != null && GuiCharacters.this.gm.getNetHandler() != null) {
@ -84,7 +84,7 @@ public class GuiCharacters extends GuiList<GuiCharacters.CharacterEntry>
}
}
}, ""));
this.add(new NavButton(width - 198, height - 24, 194, 20, GuiMenu.INSTANCE, "Abbrechen"));
this.add(new NavButton(width / 2 + 2, height - 28, 198, 24, GuiMenu.INSTANCE, "Abbrechen"));
this.updateButtons();
}