diff Devian.xml @ 50:c3166f700438

dock beacons and text fader cleaned up fixed OnLeave ending at mouseOverDock false and causing beacons to stick fixed a nil argument in dock framescript
author Nenue
date Tue, 05 Jan 2016 01:37:29 -0500
parents 2bf7eb1844cb
children 1b8c597dba44
line wrap: on
line diff
--- a/Devian.xml	Mon Jan 04 08:39:07 2016 -0500
+++ b/Devian.xml	Tue Jan 05 01:37:29 2016 -0500
@@ -239,10 +239,10 @@
     <Size x="32" y="20" />
     <Layers>
       <Layer level="ARTWORK">
-        <Texture name="$parentBar" parent="DevianDock" setAllPoints="true" parentKey="bar" alphaMode="BLEND">
+        <Texture name="$parentBar" parent="DevianDock" setAllPoints="true" parentKey="caption" alphaMode="BLEND">
           <Color r="1" g="1" b="1" a="1" />
           <Gradient orientation="VERTICAL">
-            <MaxColor r="0" g="0" b="0" a="1" />
+            <MaxColor r="0.15" g=".15" b="0.15" a="0.4" />
             <MinColor r="0" g="0" b="0" a="0" />
           </Gradient>
         </Texture>
@@ -256,14 +256,10 @@
 
   <Button name="DevianBeacon" hidden="true" inherits="DevianButton" virtual="true" enableMouse="true" alpha="1" frameStrata="MEDIUM">
     <Size x="64" y="32" />
-    <TexCoords top="0" left="0" bottom="1" right="1" />
 
     <Scripts>
       <OnShow>
-        if self.console.index ~= DevianDB.current_channel then
-          UIFrameFadeIn(self,DevianDB.dock_onshow_fade_time, DevianDB.dock_onshow_fade_from, DevianDB.dock_onshow_fade_to)
-          UIFrameFadeIn(self.caption,DevianDB.dock_onshow_fade_time, DevianDB.dock_onshow_fade_from, 0)
-        end
+        Devian.UpdateBeacon(self)
       </OnShow>
       <OnMouseDown>
         --print("click", self:GetName(), button, self.console.index)