Author Topic: Tweak: more variables for text position  (Read 2018 times)

Bono

  • VM-68
  • Posts: 193
Tweak: more variables for text position
« on: January 09, 2011, 04:25:03 PM »
It would be very good if in next build or any later build of DP2 be included new text position variables in menus.

Possibility of placing text from the edge (end) of screen in any resolution.

Like this:


Menu code for above screen (idea):
Code: [Select]
pb2menu 1

background none

widget
type text
xLedge 100
yTedge 90
valign center
halign left
text "text"

Quote
xLedge -> x left edge -> text position from left edge (end) of screen
xRedge -> x right edge -> text position from right edge (end) of screen
yTedge -> y top edge -> text position from top edge (end) of screen
yBedge -> y bottom edge -> text position from bottom edge (end) of screen

You understand what I mean?

When I will use this variables word "text" on screen always be 90px from top end of screen to down and 100px from left end of screen to right.


Sorry for my English. I have a lot of ideas, but it's really hard for me to write this. I am Sorry  :'(

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: Tweak: more variables for text position
« Reply #1 on: January 25, 2011, 09:38:03 AM »
This is basically what the ybot, ytop, etc. do.  The problem is the system was designed to fit on a 320x240 screen and not go beyond those boundaries (hudscale 2 scales that up to 640x480).  I guess I could change the system so that it uses the window size instead of the fixed size.

http://dplogin.com/dplogin/featurevote/feature.php?id=10248