misc fixes

This commit is contained in:
Sen 2025-03-17 02:11:09 +01:00
parent 2783aaa2ce
commit 887401b0b8
3 changed files with 61 additions and 11 deletions

View file

@ -339,7 +339,7 @@ public class Game implements IThreadListener {
@Variable(name = "con_overlay", category = CVarCategory.CONSOLE, display = "Konsolen-Overlay")
public boolean hudOverlay = true;
@Variable(name = "con_position", category = CVarCategory.CONSOLE, display = "Position")
public ConsolePos hudPos = ConsolePos.BOTTOM;
public ConsolePos hudPos = ConsolePos.TOP;
@Variable(name = "con_opacity", category = CVarCategory.CONSOLE, min = 0x00, max = 0xff, display = "Deckkraft Hintergrund")
public int hudOpacity = 0x40;
public boolean syncLimited;
@ -2925,8 +2925,7 @@ public class Game implements IThreadListener {
for(Iterator<Message> iter = log.iterator(); iter.hasNext();) {
Message msg = iter.next();
if((Timing.tmr_current - msg.time) <= fade) {
Drawing.txt_draw(0, y, 0, y, this.fb_x, this.fb_y,
(this.hudOpacity << 24) | 0xffffff, msg.message);
Drawing.drawTextbox(msg.message, 0, y, (this.hudOpacity << 24) | 0x000000);
y += this.hudPos == ConsolePos.BOTTOM ? -(Font.YGLYPH) : Font.YGLYPH;
}
else {