1LoL1 Posted September 4, 2015 Posted September 4, 2015 Hello please how i can this change to all resolutions or how to change text of image. This work normally when i have 600 or 800 resolution: and this not work when i have 1000+ : and i want this: 600 or 800: 1000+: spalten[1] = "" spalten[2] = "" spalten[3] = "" spalten[4] = "" spalteGuiImage[1] = guiCreateStaticImage(0,0.45,0.2,0.030,"images/scrollmenu_1.png",true) spalteGuiImage[2] = guiCreateStaticImage(0,0.475,0.2,0.030,"images/scrollmenu_1.png",true) spalteGuiImage[3] = guiCreateStaticImage(0,0.5,0.2,0.030,"images/scrollmenu_1.png",true) spalteGuiImage[4] = guiCreateStaticImage(0,0.525,0.2,0.030,"images/scrollmenu_1.png",true) spalteGuiText[1] = guiCreateLabel(0.05,0.05,0.995,0.95,spalten[1],true,spalteGuiImage[1]) spalteGuiText[2] = guiCreateLabel(0.05,0.05,0.995,0.95,spalten[2],true,spalteGuiImage[2]) spalteGuiText[3] = guiCreateLabel(0.05,0.05,0.995,0.95,spalten[3],true,spalteGuiImage[3]) spalteGuiText[4] = guiCreateLabel(0.05,0.05,0.995,0.95,spalten[4],true,spalteGuiImage[4]) local Labels = {spalteGuiText[1], spalteGuiText[2], spalteGuiText[3], spalteGuiText[4]} for i , v in pairs (Labels) do guiSetFont(v, "default-bold-small") end --guiLabelSetColor (spalteGuiText[1],50,255,50) guiSetVisible(spalteGuiImage[1],false) guiSetVisible(spalteGuiImage[2],false) guiSetVisible(spalteGuiImage[3],false) guiSetVisible(spalteGuiImage[4],false) please anyone help.
LabiVila Posted September 5, 2015 Posted September 5, 2015 you should declare on top of your script this: local x,y = guiGetScreenSize () then after that you do that do this: spalteGuiImage[1] = guiCreateStaticImage(0, (270/600)*x, (160/800)*y, (24.04/600)*x, "images/scrollmenu_1.png",false) you should do this for every image and stuff in your script, and don't forget, 6th argument is false
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now