Jump to content

Resolution!


LiOneLMeSsIShoT

Recommended Posts

I've added a picture in login screen as it's the window...without making a window...just a picture....the problem here it's not working for other resolutions..only my resolution works fine. it come...left, right... or even on the top with other resolutions...so could you tell me how to solve this problem?

        GUIEditor.staticimage[1] = guiCreateStaticImage(0, 0, 1360, 768, ":Registration_System/Images/loginpanel.png", false) 

Link to comment
try this
local x, y = guiGetScreenSize() 
GUIEditor.staticimage[1] = guiCreateStaticImage(0, 0, x, y, ":Registration_System/Images/loginpanel.png", false) 

Works fine, but the problem is with other buttons and things...it's really small buttons, and such things...

    GUIEditor.staticimage[1] = guiCreateStaticImage(0, 0, x, y, ":Registration_System/Images/loginpanel.png", false) 
  
        checkbox_save = guiCreateCheckBox(149, 349, 15, 15, "", true, false, GUIEditor.staticimage[1]) 
        UsernameLogin = guiCreateEdit(168, 233, 213, 25, "", false, GUIEditor.staticimage[1]) 
        PasswordLogin = guiCreateEdit(168, 302, 213, 25, "", false, GUIEditor.staticimage[1]) 
        guiEditSetMasked(PasswordLogin, true) 
        Login = guiCreateButton(88, 497, 351, 78, "Login", false, GUIEditor.staticimage[1]) 
        guiSetAlpha(Login, 0.50) 
        guiSetFont(Login, "sa-header") 
        guiSetProperty(Login, "NormalTextColour", "FF7F7F7F") 
        btns = guiCreateButton(88, 605, 351, 78, "Register", false, GUIEditor.staticimage[1]) 
        guiSetAlpha(btns, 0.50) 
        guiSetFont(btns, "sa-header") 
        guiSetProperty(btns, "NormalTextColour", "FF7F7F7F") 
  
        GUIEditor.staticimage[2] = guiCreateStaticImage(78, -32, 1360, 768, ":Registration_System/Images/Registerpanel.png", false, GUIEditor.staticimage[1]) 
        guiSetVisible(GUIEditor.staticimage[2], false) 
  
        UsernameRegister = guiCreateEdit(559, 262, 215, 24, "", false, GUIEditor.staticimage[2]) 
        PasswordRegister = guiCreateEdit(559, 338, 215, 24, "", false, GUIEditor.staticimage[2]) 
        guiEditSetMasked(PasswordRegister, true) 
        ConfirmPasswordE = guiCreateEdit(559, 414, 215, 24, "", false, GUIEditor.staticimage[2]) 
        guiEditSetMasked(ConfirmPasswordE, true) 
        Register = guiCreateButton(440, 543, 446, 60, "", false, GUIEditor.staticimage[2]) 
        guiSetAlpha(Register, 0.50)     

Link to comment
try this
local x, y = guiGetScreenSize() 
GUIEditor.staticimage[1] = guiCreateStaticImage(0, 0, x, y, ":Registration_System/Images/loginpanel.png", false) 

Works fine, but the problem is with other buttons and things...it's really small buttons, and such things...

    GUIEditor.staticimage[1] = guiCreateStaticImage(0, 0, x, y, ":Registration_System/Images/loginpanel.png", false) 
  
        checkbox_save = guiCreateCheckBox(149, 349, 15, 15, "", true, false, GUIEditor.staticimage[1]) 
        UsernameLogin = guiCreateEdit(168, 233, 213, 25, "", false, GUIEditor.staticimage[1]) 
        PasswordLogin = guiCreateEdit(168, 302, 213, 25, "", false, GUIEditor.staticimage[1]) 
        guiEditSetMasked(PasswordLogin, true) 
        Login = guiCreateButton(88, 497, 351, 78, "Login", false, GUIEditor.staticimage[1]) 
        guiSetAlpha(Login, 0.50) 
        guiSetFont(Login, "sa-header") 
        guiSetProperty(Login, "NormalTextColour", "FF7F7F7F") 
        btns = guiCreateButton(88, 605, 351, 78, "Register", false, GUIEditor.staticimage[1]) 
        guiSetAlpha(btns, 0.50) 
        guiSetFont(btns, "sa-header") 
        guiSetProperty(btns, "NormalTextColour", "FF7F7F7F") 
  
        GUIEditor.staticimage[2] = guiCreateStaticImage(78, -32, 1360, 768, ":Registration_System/Images/Registerpanel.png", false, GUIEditor.staticimage[1]) 
        guiSetVisible(GUIEditor.staticimage[2], false) 
  
        UsernameRegister = guiCreateEdit(559, 262, 215, 24, "", false, GUIEditor.staticimage[2]) 
        PasswordRegister = guiCreateEdit(559, 338, 215, 24, "", false, GUIEditor.staticimage[2]) 
        guiEditSetMasked(PasswordRegister, true) 
        ConfirmPasswordE = guiCreateEdit(559, 414, 215, 24, "", false, GUIEditor.staticimage[2]) 
        guiEditSetMasked(ConfirmPasswordE, true) 
        Register = guiCreateButton(440, 543, 446, 60, "", false, GUIEditor.staticimage[2]) 
        guiSetAlpha(Register, 0.50)     

so is it possible to edit that buttons?

Link to comment
You should re-create the GUI with guieditor and tick on the relative option for each GUI made.

Or perhaps you could change all false to true but I'm not sure if you need smaller numbers in the x and y and w and h for that. Read the wiki pages https://wiki.multitheftauto.com/wiki/Gu ... taticImage

How is that?....No...c'mmon...no scriptwise? no need to create it again..."Bored..lazy...have no time"

Edited by Guest
Link to comment
You should re-create the GUI with guieditor and tick on the relative option for each GUI made.

Or perhaps you could change all false to true but I'm not sure if you need smaller numbers in the x and y and w and h for that. Read the wiki pages https://wiki.multitheftauto.com/wiki/Gu ... taticImage

How is that?....

Re-create the image.

Right click

Click on Set Position Code

Click on Presets

Select 1

Click Ok

Link to comment
You should re-create the GUI with guieditor and tick on the relative option for each GUI made.

Or perhaps you could change all false to true but I'm not sure if you need smaller numbers in the x and y and w and h for that. Read the wiki pages https://wiki.multitheftauto.com/wiki/Gu ... taticImage

How is that?....

Re-create the image.

Right click

Click on Set Position Code

Click on Presets

Select 1

Click Ok

the problem not with the image :3...the problem with guis..anyway i want a scriptwise to fix that... not remake that ?:(

Link to comment
  • Moderators

Have you ever changed something to relative manualy? Using math.

Do you know what a relative value is? Did you ever had % at school? because it is something simular then that. (except you use it as multiplier to change other values)

Link to comment

Your best option is to load the code with GUIeditor again like Anubhav suggested. Then tick on all relative options for each bit, in the right-click menus. It's the easiest way unless you want to go into maths, which is not really needed for these types of GUI's. You would have to write down some mathematical formulas to change the x,y,w,h of your GUI's relative to the resolution that you made the GUI on.

Read the wiki page. It says that you need numbers under 1 and have the relative argument set to 'true'.

Link to comment
Your best option is to load the code with GUIeditor again like Anubhav suggested. Then tick on all relative options for each bit, in the right-click menus. It's the easiest way unless you want to go into maths, which is not really needed for these types of GUI's. You would have to write down some mathematical formulas to change the x,y,w,h of your GUI's relative to the resolution that you made the GUI on.

Read the wiki page. It says that you need numbers under 1 and have the relative argument set to 'true'.

Better than relative is guiGetScreenSize as it keeps the scale same.

Link to comment
Your best option is to load the code with GUIeditor again like Anubhav suggested. Then tick on all relative options for each bit, in the right-click menus. It's the easiest way unless you want to go into maths, which is not really needed for these types of GUI's. You would have to write down some mathematical formulas to change the x,y,w,h of your GUI's relative to the resolution that you made the GUI on.

Read the wiki page. It says that you need numbers under 1 and have the relative argument set to 'true'.

Better than relative is guiGetScreenSize as it keeps the scale same.

Ah, I didn't know that wasn't accounted for with the relative options in the regular GUI.

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...