Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Positioned text in user interface

Comments in 'Plugin Development' started by udwarf, Apr 29, 2016.

  1. udwarf
    Offline

    udwarf Active Member

    Joined:
    Apr 17, 2016
    Posts:
    61
    Minecraft User:
    1Zaza
    Is it possible to display text message in particular position on the user's screen? For example, in the right-middle part of the user's screen?
    I don't think that FloatingTextParticle is a solution. It should be like a chat message, but in other position on the screen.
    Actually, I want to somehow display to the user timer (how many minutes and seconds left for completing a task) and searching for the best solution

    Thank you.
  2. MinePocket Servers
    Offline

    MinePocket Servers Active Member

    Joined:
    Mar 6, 2014
    Posts:
    69
    Minecraft User:
    MinePocket
    A popup seems to be best solution, text formatting is a bit hard
  3. applqpak
    Offline

    applqpak Active Member Plugin Developer

    Joined:
    Dec 16, 2015
    Posts:
    284
    Plugins:
    1
    Minecraft User:
    applqpak
    Just echo " " or   until you get it to the position you want.
  4. MinePocket Servers
    Offline

    MinePocket Servers Active Member

    Joined:
    Mar 6, 2014
    Posts:
    69
    Minecraft User:
    MinePocket
    Does text scale with DPI?
  5. applqpak
    Offline

    applqpak Active Member Plugin Developer

    Joined:
    Dec 16, 2015
    Posts:
    284
    Plugins:
    1
    Minecraft User:
    applqpak
    I'm not sure.
  6. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    I don't think so
    applqpak likes this.
  7. MinePocket Servers
    Offline

    MinePocket Servers Active Member

    Joined:
    Mar 6, 2014
    Posts:
    69
    Minecraft User:
    MinePocket
    Looks like spaces are the way to go, keep in mind that the width of a space is != to the width of a normal char. I had trouble with that for /f map
  8. Kvetinac97
    Offline

    Kvetinac97 Active Member Plugin Developer

    Joined:
    Nov 17, 2014
    Posts:
    276
    Plugins:
    1
    Minecraft User:
    Kvetinac97
    For 0.14.2:

    MCPE has a "base place" in the screen (above the hotbar) where you see popups with item names.
    This varies with DPI.

    For get more left, use \n (new line) and then lots of spaces.
    For get right, do not use \n, use just spaces.
    For get upper, use \n.
    There is no option actually how to go down;

    WARNING!!! Hello\nIts me will spawn Its me on "base place" and Hello, one line up. (so its reading backwards).

    Why? #blameMCPEdevs
    applqpak likes this.
  9. Muqsit
    Offline

    Muqsit Active Member

    Joined:
    Sep 9, 2015
    Posts:
    175
    Minecraft User:
    Muqsit
    Maybe wait for 0.14.3 or 0.15? They might fix it by then!
    So far, I'm loving 0.14.2 :)
  10. CookieSteve
    Offline

    CookieSteve Active Member

    Joined:
    Apr 22, 2014
    Posts:
    132
    Minecraft User:
    iStrqfeChris
    Not a fan of 0.14.2
    applqpak likes this.
  11. udwarf
    Offline

    udwarf Active Member

    Joined:
    Apr 17, 2016
    Posts:
    61
    Minecraft User:
    1Zaza
    So, if I want that the message was permanently displayed in the right-bottom corner of the screen then I need to add alot spaces in the beggining of the message and then every, say, 2 seconds fire sendPopup($message), right?

Share This Page

Advertisement