Lukkas2201 Posted December 23, 2019 Share Posted December 23, 2019 Boa noite pessoal, queria uma ajuda, estava refazendo um script em Lua que eu tinha, e consegui fazer tudo certinho, com um porém, não consigo posicionar o gui, tipo, quero mover ele mais para baixo e um pouco mais para a direita, eu altero a coordenada, mas mesmo assim não vai, ele continua na mesma posição, oque poderia ser? inventory_infos = { window = {}, staticimage = {}, label = {} } inventory_infos.window[1] = guiCreateWindow(206, 5, 489, 206, "", false) guiWindowSetMovable(inventory_infos.window[1], false) guiWindowSetSizable(inventory_infos.window[1], false) inventory_infos.staticimage[1] = guiCreateStaticImage(9, 22, 197, 174, "icons/false.png", false, inventory_infos.window[1]) inventory_infos.label[1] = guiCreateLabel(218, 22, 261, 174, "The item is not selected!", false, inventory_infos.window[1]) guiSetFont(inventory_infos.label[1], "default-bold-small") inventory_infos.window[2] = guiCreateWindow(705, 5, 485, 206, "", false) guiWindowSetSizable(inventory_infos.window[2], false) inventory_infos.staticimage[2] = guiCreateStaticImage(10, 24, 179, 172, "icons/false.png", false, inventory_infos.window[2]) inventory_infos.label[2] = guiCreateLabel(198, 24, 277, 172, "The item is not selected!", false, inventory_infos.window[2]) guiSetFont(inventory_infos.label[2], "default-bold-small") guiSetVisible(inventory_infos.window[1],false) guiSetVisible(inventory_infos.window[2],false) ---------------------------------- pname = getPlayerName(getLocalPlayer()):gsub('#%x%x%x%x%x%x',''):gsub('#%x%x%x%x%x%x','') inventoryWindows = guiCreateWindow(0.15, 0.28, 0.72, 0.63,pname.."' Inventory", true) --- LINHA EM QUE EU ALTERO A POSIÇÃO PORÉM CONTINUA NA MESMA InvImage = guiCreateStaticImage(0.01,0.03,1.99,100,"images/inventory.png",true,inventoryWindows) --buttonItems["suicide"] = guiCreateButton(0.42,1.92,0.03,0.04, "✖",true,inventoryWindows) headline["loot"] = guiCreateLabel(0.26, 0.35, 0.34, 0.09,"Gear",true,inventoryWindows) guiLabelSetHorizontalAlign (headline["loot"],"center") guiSetFont (headline["loot"], "default-bold-small" ) guiSetAlpha(InvImage,1) guiSetProperty(InvImage,"Disabled","true") headline["inventory"] = guiCreateLabel(0.60, 0.05, 0.34, 0.09,"Inventário",true,inventoryWindows) guiLabelSetHorizontalAlign (headline["inventory"],"center") guiSetFont (headline["inventory"], "default-bold-small" ) gridlistItems["loot"] = guiCreateGridList (0.03, 0.10, 0.39, 0.83,true,inventoryWindows) gridlistItems["loot_colum"] = guiGridListAddColumn( gridlistItems["loot"], "Loot", 0.7 ) gridlistItems["loot_colum_amount"] = guiGridListAddColumn( gridlistItems["loot"], "", 0.2 ) gridlistItems["inventory"] = guiCreateGridList (0.57, 0.11, 0.39, 0.83,true,inventoryWindows) gridlistItems["inventory_colum"] = guiGridListAddColumn( gridlistItems["inventory"], "Inventory", 0.7 ) gridlistItems["inventory_colum_amount"] = guiGridListAddColumn( gridlistItems["inventory"], "", 0.2 ) buttonItems["loot"] = guiCreateButton(0.42, 0.17, 0.04, 0.69, "-> Pegar", true,inventoryWindows) buttonItems["inventory"] = guiCreateButton(0.53, 0.17, 0.04, 0.69, "<- Dropar", true,inventoryWindows) headline["slots"] = guiCreateLabel(0.62, 0.94, 0.29, 0.04,"Espaço:",true,inventoryWindows) guiLabelSetHorizontalAlign (headline["slots"],"center") guiLabelSetVerticalAlign (headline["slots"],"center") guiSetFont (headline["slots"], "default-bold-small" ) headline["slots_loot"] = guiCreateLabel(0.07, 0.94, 0.29, 0.04,"Espaço:",true,inventoryWindows) guiLabelSetHorizontalAlign (headline["slots_loot"],"center") guiLabelSetVerticalAlign (headline["slots_loot"],"center") --inv_takeammo = guiCreateButton(0.42, 0.10, 0.05, 0.07, "Take\nAmmo.", true,inventoryWindows) inv_takeall = guiCreateButton(0.42, 0.861, 0.04, 0.09, ">>", true,inventoryWindows) inv_dropall = guiCreateButton(0.53, 0.861, 0.04, 0.09, "<<", true,inventoryWindows) guiSetFont (headline["slots_loot"], "default-bold-small" ) guiSetVisible(inventoryWindows,false) Link to comment
DNL291 Posted December 23, 2019 Share Posted December 23, 2019 X, Y, Largura, Altura - Altere as posições x e y, os valores devem ser relativos, que vão do 0 a 1 em decimais. Da forma que estão atualmente, a janela deve ficar mais para o canto superior esquerdo, só aumentar os valores. Link to comment
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