Sign in to follow this  
#Hulk

مشكلة في احداثيات شيك بوكس

Recommended Posts

السلام عليكم ورحمه الله وبركاته

المشكلة هي , ابي لوب الشيك بوكس يجي تحت بعض من دون مسافات

جربت كذا طريقه ما نفع ,

local yAxis = 10
local xAxis = 20
			for index, itemDetails in pairs(packageDetails[5]) do
			local guiPrefix = guiTabName.."-package"..tostring(index).."-"
			gui[guiPrefix.."chk1"] = guiCreateCheckBox(yAxis, xAxis+20, 91, 15, ItemsName, false, false,patrol)
			guiSetFont(gui[guiPrefix.."chk1"], "default-bold-small")
			setElementData(gui[guiPrefix.."chk1"], "button:action", "Push")
			setElementData(gui[guiPrefix.."chk1"], "button:itemDetails", itemDetails)
			setElementData(gui[guiPrefix.."chk1"], "button:itemID", index)
			setElementData(gui[guiPrefix.."chk1"], "button:grantID", packageDetails[1])
			setElementData(gui[guiPrefix.."chk1"], "button:chk", gui[guiPrefix.."chk1"])
			addEventHandler("onClientGUIClick", gui[guiPrefix.."chk1"], selectPackageGUI_process)
			table.insert(gChks, gui[guiPrefix.."chk1"])

شكرا , مقدما

Share this post


Link to post
local yAxis = 10
local xAxis = 20
local zAxis = 0

	for index, itemDetails in pairs(packageDetails[5]) do
		zAxis = zAxis + 20
		local guiPrefix = guiTabName.."-package"..tostring(index).."-"
		gui[guiPrefix.."chk1"] = guiCreateCheckBox(yAxis, xAxis+zAxis, 91, 15, ItemsName, false, false,patrol)
		guiSetFont(gui[guiPrefix.."chk1"], "default-bold-small")
		setElementData(gui[guiPrefix.."chk1"], "button:action", "Push")
		setElementData(gui[guiPrefix.."chk1"], "button:itemDetails", itemDetails)
		setElementData(gui[guiPrefix.."chk1"], "button:itemID", index)
		setElementData(gui[guiPrefix.."chk1"], "button:grantID", packageDetails[1])
		setElementData(gui[guiPrefix.."chk1"], "button:chk", gui[guiPrefix.."chk1"])
		addEventHandler("onClientGUIClick", gui[guiPrefix.."chk1"], selectPackageGUI_process)
		table.insert(gChks, gui[guiPrefix.."chk1"])

 

Share this post


Link to post
On 8/6/2018 at 09:23, !#NssoR_) said:

local yAxis = 10
local xAxis = 20
local zAxis = 0

	for index, itemDetails in pairs(packageDetails[5]) do
		zAxis = zAxis + 20
		local guiPrefix = guiTabName.."-package"..tostring(index).."-"
		gui[guiPrefix.."chk1"] = guiCreateCheckBox(yAxis, xAxis+zAxis, 91, 15, ItemsName, false, false,patrol)
		guiSetFont(gui[guiPrefix.."chk1"], "default-bold-small")
		setElementData(gui[guiPrefix.."chk1"], "button:action", "Push")
		setElementData(gui[guiPrefix.."chk1"], "button:itemDetails", itemDetails)
		setElementData(gui[guiPrefix.."chk1"], "button:itemID", index)
		setElementData(gui[guiPrefix.."chk1"], "button:grantID", packageDetails[1])
		setElementData(gui[guiPrefix.."chk1"], "button:chk", gui[guiPrefix.."chk1"])
		addEventHandler("onClientGUIClick", gui[guiPrefix.."chk1"], selectPackageGUI_process)
		table.insert(gChks, gui[guiPrefix.."chk1"])

 

نفس المشكله كل اللوب متجمع في نقطه واحده !

Share this post


Link to post
On 8/6/2018 at 09:23, !#NssoR_) said:

local yAxis = 10
local xAxis = 20
local zAxis = 0

	for index, itemDetails in pairs(packageDetails[5]) do
		zAxis = zAxis + 20
		local guiPrefix = guiTabName.."-package"..tostring(index).."-"
		gui[guiPrefix.."chk1"] = guiCreateCheckBox(yAxis, xAxis+zAxis, 91, 15, ItemsName, false, false,patrol)
		guiSetFont(gui[guiPrefix.."chk1"], "default-bold-small")
		setElementData(gui[guiPrefix.."chk1"], "button:action", "Push")
		setElementData(gui[guiPrefix.."chk1"], "button:itemDetails", itemDetails)
		setElementData(gui[guiPrefix.."chk1"], "button:itemID", index)
		setElementData(gui[guiPrefix.."chk1"], "button:grantID", packageDetails[1])
		setElementData(gui[guiPrefix.."chk1"], "button:chk", gui[guiPrefix.."chk1"])
		addEventHandler("onClientGUIClick", gui[guiPrefix.."chk1"], selectPackageGUI_process)
		table.insert(gChks, gui[guiPrefix.."chk1"])

 

تمام اشتغل

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.