Jump to content

derailed

Members
  • Posts

    2
  • Joined

  • Last visited

derailed's Achievements

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody.

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody. (2/54)

0

Reputation

  1. Can one possibly set custom font on the text input as well?
  2. Hi. I'm new to MTA scripting community. I created a login screen with two edit boxes and a label on top to create a custom input fields. Now, when I type in the letters, the black vertical line stays behind as I insert text. Thank you for your help in advance on how to fix this issue. Code: loginLabels = { }; function updateLabels( ) guiSetText( loginLabels[ source ], guiGetText( source ) ); end local loginBackground = guiCreateStaticImage(0, 0, guiGetScreenSize(), guiGetScreenSize(), loginSettings[0], false) local loginWindow = guiCreateStaticImage(0, 0, guiGetScreenSize(), guiGetScreenSize(), loginSettings[1], false, loginBackground) loginUser = guiCreateEdit( 0.292, 0.411, 0.155, 0.03, " ", true, loginWindow ) guiSetAlpha ( loginUser, 0 ) loginLabels[loginUser] = guiCreateLabel( 0.298, 0.418, 0.155, 0.03,"",true, loginWindow) guiMoveToBack( loginLabels[loginUser] ); local loginFont = guiCreateFont(loginSettings[4], 14) guiSetFont ( loginLabels[loginUser], loginFont ) guiLabelSetColor ( loginLabels[loginUser], 0, 0, 0) guiBringToFront( loginUser ) loginPassword = guiCreateEdit( 0.292, 0.477, 0.155, 0.03, " ", true, loginWindow ) guiSetAlpha ( loginPassword, 0 ) loginLabels[loginPassword] = guiCreateLabel( 0.298, 0.483, 0.155, 0.03,"",true, loginWindow) guiMoveToBack( loginLabels[loginPassword] ); guiSetFont ( loginLabels[loginPassword], loginFont ) guiLabelSetColor ( loginLabels[loginPassword], 0, 0, 0) guiBringToFront( loginPassword ) guiBringToFront( loginUser ) addEventHandler( "onClientGUIChanged", loginUser, updateLabels, false ); addEventHandler( "onClientGUIChanged", loginPassword, updateLabels, false );
×
×
  • Create New...