v 0.36

Ivan [05-03-14 - 20:37]
v 0.36
*Небольшие изменения интерфейса
Filename
MobileBank.lua
MobileBank.xml
diff --git a/MobileBank.lua b/MobileBank.lua
index 4d7db1b..a377c1c 100644
--- a/MobileBank.lua
+++ b/MobileBank.lua
@@ -1,4 +1,4 @@
---	MobileBank v0.35
+--	MobileBank v0.36
 ----------------------------
 --	Список команд:
 -- /mb cls - очистить собраные данные
@@ -10,7 +10,7 @@

 MB = {}

-MB.version=0.35
+MB.version=0.36

 MB.dataDefaultItems = {
 	Guilds={},
@@ -259,7 +259,7 @@ function MB.CreateBank()
 	    local dynamicControl = CreateControlFromVirtual("MBUI_Row", MBUI_Container, "TemplateRow",i)

 	    -- Строка
-	    local fromtop=180
+	    local fromtop=150
 	    _G["MBUI_Row"..i]:SetAnchor(TOP,MBUI_Container,TOP,0,fromtop+52*(i-1))
 	    -- _G["MBUI_Row"..i]:SetDimensions (530,52)

@@ -359,7 +359,7 @@ function MB.FilterInit(self)
 end

 function MB.FilterEnter(self)
-	_G[tostring(self:GetName().."TextureHighlight")]:SetAlpha(0.5)
+	_G[tostring(self:GetName().."TextureHighlight")]:SetAlpha(0.75)
 	self.NormalAnimation:PlayFromStart()
 	self.HighlightAnimation:PlayFromStart()
 end
@@ -372,6 +372,7 @@ end

 function MB.FilterClicked(self,filtertype)
 	MB.FilterBank(11,filtertype)
+	MBUI_ContainerSlider:SetValue(11)

 	for k,v in pairs(MB.FilterChildrens) do
 		_G[v:GetName().."TexturePressed"]:SetAlpha(0)
diff --git a/MobileBank.xml b/MobileBank.xml
index d79be23..237390a 100644
--- a/MobileBank.xml
+++ b/MobileBank.xml
@@ -26,17 +26,17 @@
 		<Controls>
 			<!-- Заготовка отображения информации о предмете -->
 			<Control name="MBUI_Container" mouseEnabled="true" hidden="true">
-				<Dimensions x="560" y="800" />
+				<Dimensions x="560" y="750" />
 				<Controls>
 					<!-- Фон -->
 					<Backdrop name="$(parent)Bg" centerColor="00000000" edgeColor="00000000">
 						<Anchor point="TOPLEFT" relativePoint="TOPLEFT" offsetX="10" offsetY="0"/>
-						<Dimensions x="560" y="800" />
+						<Dimensions x="560" y="750" />
 					</Backdrop>

 					<Texture name="$(parent)Texture" textureFile="EsoUI/Art/Miscellaneous/centerscreen_left.dds" resizeToFitFile="true">
 						<Anchor point="TOPLEFT" relativePoint="TOPLEFT" offsetX="-40" offsetY="-40"/>
-						<Dimensions x="595" y="1020" />
+						<Dimensions x="595" y="975" />
 						<!-- <TextureCoords left="0" right="0" top="0" bottom="0" /> -->
 					</Texture>

@@ -67,7 +67,7 @@

 							<Control name="$(parent)Filter" mouseEnabled="true">
 								<Dimensions x="560" y="64" />
-								<Anchor point="CENTER" relativePoint="TOP" relativeTo="MBUI_Container" offsetX="0" offsetY="100"/>
+								<Anchor point="CENTER" relativePoint="TOP" relativeTo="MBUI_Container" offsetX="0" offsetY="90"/>
 								<OnInitialized>
 									MB.FilterInit(self)
 								</OnInitialized>
@@ -287,27 +287,27 @@
 							</Control>

 							<Label name="$(parent)Name" font="ZoFontGame" text="Name">
-								<Anchor point="TOP" relativePoint="LEFT" offsetX="-100" offsetY="65"/>
+								<Anchor point="TOP" relativePoint="LEFT" offsetX="-100" offsetY="35"/>
 							</Label>

 							<Label name="$(parent)Stat" font="ZoFontGame" text="Stat">
-								<Anchor point="TOP" relativePoint="CENTER" offsetX="130" offsetY="65"/>
+								<Anchor point="TOP" relativePoint="CENTER" offsetX="130" offsetY="35"/>
 							</Label>

 							<Label name="$(parent)Value" font="ZoFontGame" text="Value">
-								<Anchor point="TOP" relativePoint="RIGHT" offsetX="155" offsetY="65"/>
+								<Anchor point="TOP" relativePoint="RIGHT" offsetX="155" offsetY="35"/>
 							</Label>
 						</Controls>
 					</Label>

 					<!-- Счетчик вещей -->
 					<Label name="$(parent)ItemCounter" font="ZoFontGame" color="white">
-						<Anchor point="CENTER" relativePoint="BOTTOM" offsetX="0" offsetY="-17"/>
+						<Anchor point="CENTER" relativePoint="BOTTOM" offsetX="0" offsetY="-10"/>
 					</Label>

 					<!-- Слайдер -->
 					<Slider name="$(parent)Slider" mouseEnabled="true" step="1" dragFromThumb="true">
-						<Anchor point="BOTTOM" relativePoint="BOTTOMRIGHT" offsetX="-10" offsetY="-50"/>
+						<Anchor point="BOTTOM" relativePoint="BOTTOMRIGHT" offsetX="-10" offsetY="-30"/>
 						<Dimensions x="16" y="565" />
 					</Slider>