stuck with script :S
Posted: July 10th, 2012, 1:08 am
ok i am new to LUA so please if possible spells things out for me lol
basically what i am trying to do is
IF X1 == X2 and Y1 == Y2 then
do nothing
else
(change X1 to == X2) and (change Y1 to == Y2)
here is the code atm
basically i want the script to check the skins postion on the screen check it against a the relevant X and Y variables, and if they are not both equal then change them so the screen x and y values are equal to the variable x and y values
thank you for any help given
basically what i am trying to do is
IF X1 == X2 and Y1 == Y2 then
do nothing
else
(change X1 to == X2) and (change Y1 to == Y2)
here is the code atm
Code: Select all
function Initialize()
msXheight = SKIN:GetVariable('#CURRENTCONFIGX#')
msYwidth = SKIN:GetVariable('#CURRENTCONFIGY#')
end -- function Initialize
function Update()
if sType == msXheight then
exit
else
SKIN:Bang('!WriteKeyValue variables LocationX #CURRENTCONFIGX# #CURRENTPATH#variables.inc')
end
if sLabel == msYwidth then
exit
else
SKIN:Bang('!WriteKeyValue variables locationY #CURRENTCONFIGY# #CURRENTPATH#variables.inc')
SKIN:Bang('!Refresh')
return '99'
end -- function Update
thank you for any help given