[GUI] Some ultimate Relative positioning & sizing for GUIs ?

Started by Sebastian, Apr 01, 2017, 01:03 AM

Previous topic - Next topic

Sebastian

Quote from: Drake on Apr 07, 2017, 04:10 AMlabel.TextAlignment = GUI_ALIGN_LEFT;

Actually I figured out how to make it work as it should.
For no reason, if you set the text only after setting everything else about that label, it will work like a charm. :|

before:
QuoteAccount.Label = GUILabel( );
   Account.Label.Text = "Please register your account !";
   Account.Label.Pos = VectorScreen.rPos( 6, 10 );
   Account.Label.FontSize = VectorScreen.rSize( 20 );
   Account.Label.TextColour = Colour( 255, 255, 100 );
   Account.Label.FontFlags = ( GUI_FFLAG_BOLD | GUI_FFLAG_ULINE );

after
QuoteAccount.Label = GUILabel( );
   Account.Label.Pos = VectorScreen.rPos( 6, 10 );
   Account.Label.FontSize = VectorScreen.rSize( 20 );
   Account.Label.TextColour = Colour( 255, 255, 100 );
   Account.Label.FontFlags = ( GUI_FFLAG_BOLD | GUI_FFLAG_ULINE );
   Account.Label.Text = "Please register your account !";