Terasology / LightAndShadow

Light & Shadow is an experimental game type set in a quirky Alice in Wonderland inspired setting
Apache License 2.0
8 stars 22 forks source link

fix: dialogue box overlapping the health bar #143

Closed stefaniamak closed 4 years ago

stefaniamak commented 4 years ago

Summary

Dialogue used to overlap the health bar if the window of the game was small enough. For that reason, the dialogue box had to move upwards.

How I chose the new "offset": 50 for the dialogue box

The 50 consists of the health bar's size (30) and twice the offset of it (the health bar) from the bottom (10). Twice because the health bar should have equal space with the dialogue box, that it has with the bottom of the sreen.

How to test

  1. Start a new LAS game
  2. Talk to the Fool NPC
  3. Change the whole window's width

Screenshots

Before

image image

After

image image