Jump to content

تعديل كود


Stranger

Recommended Posts

السلام عليكم يا شباب الحين ذا الكود

guest شغال وكل شي ,, بس المشكله اذا ضغطت زر

الخلفيه تكون فيه ما تختفي وش المشكله

back = اسم الخلفيه

function createWindows() 
  windowLogin = guiCreateWindow(0, 0, 640, 480, "", false) 
  guiCenterWindow(windowLogin) 
  guiWindowSetSizable(windowLogin, false) 
  guiWindowSetMovable(windowLogin, false) 
  
  usernameEdit = guiCreateEdit(129, 213, 395, 34, "", false, windowLogin) 
  guiSetProperty(usernameEdit, "NormalTextColour", "FF003366") 
  guiSetProperty(usernameEdit, "ActiveSelectionColour", "FFAAAAAA") 
  guiSetProperty(usernameEdit, "InheritsAlpha", "False") 
  guiSetFont(usernameEdit, "default-bold-small") 
  
  passwordEdit = guiCreateEdit(129, 313, 395, 34, "", false, windowLogin) 
  guiSetProperty(passwordEdit, "NormalTextColour", "FF003366") 
  guiSetProperty(passwordEdit, "ActiveSelectionColour", "FFAAAAAA") 
  guiEditSetMasked(passwordEdit, true) 
  guiSetFont(passwordEdit, "default-bold-small") 
  guiSetProperty(passwordEdit, "InheritsAlpha", "False") 
  
  loginButton = guiCreateButton(389, 357, 135, 42, "Login", false, windowLogin) 
  guestButton = guiCreateButton(389, 405, 135, 42, "Guest", false, windowLogin) 
  registerButton = guiCreateButton(129, 386, 248, 61, "Register!", false, windowLogin) 
  rememberMeCheck = guiCreateCheckBox(156, 354, 200, 25, "Remember me", false, false, windowLogin) 
  guiSetProperty(rememberMeCheck, "InheritsAlpha", "False") 
  guiSetProperty(rememberMeCheck, "NormalTextColour", "FFFFFFFF") 
  
  guiSetAlpha(windowLogin, 0) 
  guiSetAlpha(rememberMeCheck, 0) 
  guiSetVisible(windowLogin, false) 
  
  windowRegister = guiCreateWindow(0, 0, 640, 480, "", false) 
  guiCenterWindow(windowRegister) 
  guiWindowSetSizable(windowRegister, false) 
  guiWindowSetMovable(windowRegister, false) 
  
  userRegEdit = guiCreateEdit(129, 139, 395, 34, "", false, windowRegister) 
  guiSetProperty(userRegEdit, "NormalTextColour", "FF003366") 
  guiSetProperty(userRegEdit, "ActiveSelectionColour", "FFAAAAAA") 
  guiSetProperty(userRegEdit, "InheritsAlpha", "False") 
  guiSetFont(userRegEdit, "default-bold-small") 
  
  passRegEdit = guiCreateEdit(129, 240, 395, 34, "", false, windowRegister) 
  guiSetProperty(passRegEdit, "NormalTextColour", "FF003366") 
  guiSetProperty(passRegEdit, "ActiveSelectionColour", "FFAAAAAA") 
  guiEditSetMasked(passRegEdit, true) 
  guiSetFont(passRegEdit, "default-bold-small") 
  guiSetProperty(passRegEdit, "InheritsAlpha", "False") 
  
  passRegEdit2 = guiCreateEdit(129, 340, 395, 34, "", false, windowRegister) 
  guiSetProperty(passRegEdit2, "NormalTextColour", "FF003366") 
  guiSetProperty(passRegEdit2, "ActiveSelectionColour", "FFAAAAAA") 
  guiEditSetMasked(passRegEdit2, true) 
  guiSetFont(passRegEdit2, "default-bold-small") 
  guiSetProperty(passRegEdit2, "InheritsAlpha", "False") 
  
  regButton = guiCreateButton(389, 417, 135, 42, "Register", false, windowRegister) 
  closeButton = guiCreateButton(131, 417, 135, 42, "Close", false, windowRegister) 
  
tocolor(255,255,255,255*alphaFactor)) 
  for i=1, 8 do     
    dxDrawImage(screenWidth /2 - (25/2) , screenHeight /2 - (2000/2), 25, 2000, "images/back.png", (22.5*i)+rot, 0, 0, tocolor(255,255,255,255)) 
  end 
end 
  
function drawLogin() 
  if (backgroundAtivo == true) then 
    dxDrawRectangle(0,0, screenWidth, screenHeight, tocolor(255, 255, 255, 255)) 
    createBackground(backRotation) 
    backRotation = backRotation + 1 
  end 
  

Edited by Guest
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...