fixed that button

git [02-10-19 - 18:48]
fixed that button
Filename
FurCControlBridge.lua
FurCGui.lua
FurCSettingsAdapter.lua
locale/en.lua
xml/FurnitureCatalogue_100025.xml
xml/FurnitureCatalogue_100026.xml
diff --git a/FurCControlBridge.lua b/FurCControlBridge.lua
index b4a7684..d8903fe 100644
--- a/FurCControlBridge.lua
+++ b/FurCControlBridge.lua
@@ -97,11 +97,8 @@ function FurC.GuiHideTooltip(control)
   InformationTooltip:SetHidden(true)
 end

-function FurC.GetRumourTooltip()
-  if FurC.GetShowRumours() then
-    GetString(SI_FURC_HIDE_RUMOUR_TT)
-  end
-  return GetString(SI_FURC_SHOW_RUMOUR_TT)
+function FurC.GetRumourTooltip()
+  return GetString((FurC.GetShowRumours() and SI_FURC_HIDE_RUMOUR_TT) or SI_FURC_SHOW_RUMOUR_TT)
 end

 function FurC.GuiOnSearchBoxClick(control, mouseButton, doubleClick)
@@ -203,9 +200,6 @@ function FurC.GuiVirtualMouseOut(control)
   FurC.GuiHideTooltip(control)
 end

-function FurC.GuiToggleShowRumours()
-  FurC.SetShowRumours(not FurC.GetShowRumours())
-end

 function FurC.GuiQualityMouseUp(control, button)
 if button == 2 then FurC.SetFilterQuality(0) end
diff --git a/FurCGui.lua b/FurCGui.lua
index 9bf8002..d2b376b 100644
--- a/FurCGui.lua
+++ b/FurCGui.lua
@@ -199,7 +199,7 @@ function FurC.ApplyLineTemplate()
     for _, control in pairs(contRolist) do
       control:SetWidth(controlSize)
     end
-    FurC_Search:SetWidth(controlSize-19)
+    FurC_Search:SetWidth(controlSize-40)
   end
   if FurC.GetTinyUi() then
     FurC.SlotTemplate = "FurC_SlotTemplateTiny"
@@ -451,6 +451,8 @@ local function createGui()
   FurC.SetFontSize(FurC.GetFontSize())
   FurC.LoadFrameInfo()
   FurC.InitFilters()
+
+  FurC_ShowRumoursGlow:SetHidden(not FurC.GetShowRumours())

 end

diff --git a/FurCSettingsAdapter.lua b/FurCSettingsAdapter.lua
index 45e7508..92681b3 100644
--- a/FurCSettingsAdapter.lua
+++ b/FurCSettingsAdapter.lua
@@ -289,6 +289,7 @@ end
 function FurC.SetShowRumours(value)
   FurC.settings["showRumours"] = value
   FurC_ShowRumours:SetState((value and BSTATE_PRESSED) or BSTATE_DISABLED)
+  FurC_ShowRumoursGlow:SetHidden(not value)
   FurC.UpdateGui()
 end

diff --git a/locale/en.lua b/locale/en.lua
index 38a6f30..a29cbec 100644
--- a/locale/en.lua
+++ b/locale/en.lua
@@ -138,8 +138,8 @@ local strings = {
   SI_FURC_STRING_CONTEXTMENU_DIVIDER =      "Don't use divider in context menu?",
   SI_FURC_STRING_CONTEXTMENU_DIVIDER_TT =   "Adds a divider to the context manu above the - Furniture entry. Check to disable",

-  SI_FURC_SHOW_RUMOUR_TT =                  "Show rumour (unconfirmed) items?",
-  SI_FURC_HIDE_RUMOUR_TT =                  "Only show confirmed items",
+  SI_FURC_SHOW_RUMOUR_TT =                  "Confirmed items only. Click to show rumour items.",
+  SI_FURC_HIDE_RUMOUR_TT =                  "Showing rumour (unconfirmed) items. Click to hide.",

   SI_FURC_STRING_MENU_RUMOUR_N =            "Hide rumour recipes?",
   SI_FURC_STRING_MENU_CROWN =               "Crown store items",
diff --git a/xml/FurnitureCatalogue_100025.xml b/xml/FurnitureCatalogue_100025.xml
index dbb93f3..ae2777b 100644
--- a/xml/FurnitureCatalogue_100025.xml
+++ b/xml/FurnitureCatalogue_100025.xml
@@ -200,9 +200,13 @@
                   />
                   <OnMouseEnter>  FurC.GuiShowTooltip(self, FurC.GetRumourTooltip())  </OnMouseEnter>
                   <OnMouseExit>  FurC.GuiHideTooltip(self)  </OnMouseExit>
-                  <OnMouseUp>    FurC.GuiToggleShowRumours()  </OnMouseUp>
+                  <OnMouseUp>    FurC.SetShowRumours(not FurC.GetShowRumours())  </OnMouseUp>
                 </Button>

+                <Texture name="FurC_ShowRumoursGlow" textureFile="esoui/art/chatwindow/chat_notification_glow.dds" hidden=true>
+                  <Anchor point="TOPLEFT"   relativeTo="FurC_ShowRumours" relativePoint="TOPLEFT" offsetX="-10" offsetY="-10" />
+                  <Anchor point="BOTTOMRIGHT"   relativeTo="FurC_ShowRumours" relativePoint="BOTTOMRIGHT" offsetX="-10" offsetY="-10" />
+                </Texture>


               </Controls>
diff --git a/xml/FurnitureCatalogue_100026.xml b/xml/FurnitureCatalogue_100026.xml
index 3efec33..63f1c94 100644
--- a/xml/FurnitureCatalogue_100026.xml
+++ b/xml/FurnitureCatalogue_100026.xml
@@ -179,14 +179,14 @@

                   <Anchor point="TOPLEFT"   relativeTo="FurC_TypeFilter" relativePoint="TOPRIGHT" offsetX="9" offsetY="10"/>
                   <Anchor point="BOTTOMLEFT"   relativeTo="FurC_TypeFilter" relativePoint="BOTTOMRIGHT" offsetX="9" />
-                  <Dimensions x="195" />
+                  <Dimensions x="175" />

                   <Controls>   <!-- FurC_Search controls -->

                     <EditBox name="FurC_SearchBox" inherits="ZO_DefaultEditForBackdrop ZO_EditDefaultText">

                       <Anchor point="TOPLEFT" relativeTo="$(parent)" relativePoint="TOPLEFT" offsetX="-40" offsetY="-10"/>
-                      <Anchor point="TOPRIGHT" relativeTo="$(parent)" relativePoint="TOPRIGHT" offsetX="-20" offsetY="0"/>
+                      <Anchor point="TOPRIGHT" relativeTo="$(parent)" relativePoint="TOPRIGHT" offsetX="0" offsetY="2"/>

                       <OnTextChanged>FurC.GuiSetSearchboxTextFrom(self)</OnTextChanged>
                       <OnMouseUp>FurC.GuiOnSearchBoxClick(self, button)</OnMouseUp>
@@ -194,19 +194,19 @@
                       <OnFocusLost>FurC.GuiOnSearchBoxFocusOut(self)</OnFocusLost>
                       <Controls>
                         <Backdrop name="$(parent)Backdrop" inherits="ZO_SingleLineEditBackdrop_Keyboard" maxHeight="30">
-                          <Anchor point="TOPLEFT" relativeTo="$(parent)" relativePoint="TOPLEFT" offsetY="-5"/>
-                          <Anchor point="TOPRIGHT" relativeTo="$(parent)" relativePoint="TOPRIGHT"/>
+                          <Anchor point="TOPLEFT" relativeTo="$(parent)" relativePoint="TOPLEFT" />
+                          <Anchor point="BOTTOMRIGHT" relativeTo="$(parent)" relativePoint="BOTTOMRIGHT"/>
                           <OnInitialized>self:SetHeight(30)</OnInitialized>
                         </Backdrop>

                       </Controls>

                     </EditBox>
-                  </Controls>
+                    </Controls>
                 </Control>

-                <Button name="FurC_ShowRumours"><Dimensions x="35" y="30" />
-                  <Anchor point="RIGHT"   relativeTo="FurC_Search" relativePoint="RIGHT" offsetX="-5" />
+                <Button name="FurC_ShowRumours"><Dimensions x="30" y="35" />
+                  <Anchor point="RIGHT"   relativeTo="FurC_Search" relativePoint="RIGHT" offsetX="5" offsetY="3"/>
                   <Textures
                     normal    ="esoui/art/chatwindow/chat_notification_disabled.dds"
                     pressed    ="esoui/art/chatwindow/chat_notification_echo.dds"
@@ -214,10 +214,15 @@
                   />
                   <OnMouseEnter>  FurC.GuiShowTooltip(self, FurC.GetRumourTooltip())  </OnMouseEnter>
                   <OnMouseExit>  FurC.GuiHideTooltip(self)  </OnMouseExit>
-                  <OnMouseUp>    FurC.GuiToggleShowRumours()  </OnMouseUp>
+                  <OnMouseUp>    FurC.SetShowRumours(not FurC.GetShowRumours())  </OnMouseUp>
                 </Button>


+
+                <Texture name="FurC_ShowRumoursGlow" textureFile="esoui/art/chatwindow/chat_notification_glow.dds" alpha="0.4">
+                  <Anchor point="CENTER"   relativeTo="FurC_ShowRumours" relativePoint="CENTER"   />
+                  <Dimensions x="55" y="60" />
+                </Texture>

               </Controls>
             </Control>