Go Back   Shestak UI > Interface Forums > Other Community > Technical Support

Technical Support Ask for help or find solutions about ShestakUI.

Advertising

 
Thread Tools
Old 25.12.2010, 22:47   #1
 Junior Member User Information

losa's Avatar
Question V2.9+ about barpet code

在barpet中,第40行开始
Code [Select]:
			if i == 1 then
				if SettingsCF["actionbar"].petbar_horizontal == true then
					button:SetPoint("TOPLEFT", ActionButton1, "TOPRIGHT", 4, 86)
				else
					button:SetPoint("TOPLEFT", 0, 0)
				end
			else
这里决定了横向动作条的位置,我想让它随着bottombar的数量而移动。
当我这样写的时候
Code [Select]:
			if i == 1 then
				if SettingsCF["actionbar"].petbar_horizontal == true and SettingsCF.actionbar.bottombars == 1 then
					button:SetPoint("TOPLEFT", ActionButton1, "TOPRIGHT", 4, 30)
				else
					button:SetPoint("TOPLEFT", 0, 0)
				if SettingsCF["actionbar"].petbar_horizontal == true and SettingsCF.actionbar.bottombars == 2 then
					button:SetPoint("TOPLEFT", ActionButton1, "TOPRIGHT", 4, 58)
				else
					button:SetPoint("TOPLEFT", 0, 0)
				end
			else
它不能够正常运行。
请问我该如何写这段代码。感激不尽。
Old 25.12.2010, 22:47   #1.5 - Disable Ads

Advertise on this site

Old 25.12.2010, 23:13   #2
Shestak
 Junior Member User Information

Shestak's Avatar
Quote:
if ...... then
...code...
elseif ...... then
...code...
else
...code...
end
Short message
Old 26.12.2010, 01:49   #3
losa
 Junior Member User Information

losa's Avatar
解决了,非常感谢。

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Blizzard's interface art/code Shestak General Discussion 0 10.06.2011 00:58


Mobile Style Русский English Deutsch Italian Chinese