Jump to content

Window opening


Beluga

Recommended Posts

I made a script that should open a window, create image and setCameraMatrix but those things aren't happened. The screen keep staying black? Someone can help me.

  loginWindow = guiCreateWindow(0.35875,0.285,0.28375,0.4167,"Welcome to The Friend Mode v0.1 BETA",true) 
  toggleControl ("chatbox",false) 
  guiWindowSetMovable(loginWindow,false) 
  guiWindowSetSizable(loginWindow,false) 
  loginWindowUsernameLabel = guiCreateLabel(0.0352,0.108,0.859,0.112,"Username",true,loginWindow) 
  guiLabelSetColor(loginWindowUsernameLabel,255,255,255) 
  guiLabelSetVerticalAlign(loginWindowUsernameLabel,"center") 
  guiLabelSetHorizontalAlign(loginWindowUsernameLabel,"left",false) 
  loginWindowUsernameEdit = guiCreateEdit(0.0749,0.248,0.8238,0.124,"",true,loginWindow) 
  guiEditSetMaxLength(loginWindowUsernameEdit,20) 
  loginWindowPasswordEdit = guiCreateEdit(0.0749,0.54,0.8238,0.124,"",true,loginWindow) 
  guiEditSetMasked(loginWindowPasswordEdit,true) 
  guiEditSetMaxLength(loginWindowPasswordEdit,20) 
  loginWindowPasswordLabel = guiCreateLabel(0.0352,0.396,0.8062,0.12,"Password",true,loginWindow) 
  guiLabelSetColor(loginWindowPasswordLabel,255,255,255) 
  guiLabelSetVerticalAlign(loginWindowPasswordLabel,"center") 
  guiLabelSetHorizontalAlign(loginWindowPasswordLabel,"left",false) 
  loginWindowLoginButton = guiCreateButton(0.0441,0.704,0.9031,0.108,"Log in!",true,loginWindow) 
  loginWindowRegisterButton = guiCreateButton(0.0441,0.836,0.9031,0.108,"Register",true,loginWindow) 
   
  showCursor (true,true) 
  showChat (false) 
  setCameraMatrix (-2770.24,-1133.92,38.14,-2881.06,-907.75,9.301) 
  showPlayerHudComponent ("radar",false) 
  fadeCamera (true,2.5) 
  widescreenImage = guiCreateStaticImage(0,0,1,1,"widescreen.png",true,getRootElement()) 
  guiMoveToBack (widescreenImage) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...