BloggerTutorialBD / fallenswordhelper

Automatically exported from code.google.com/p/fallenswordhelper
0 stars 0 forks source link

Have a check box to hide: INFORMATION You have no items which require repairs. #509

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What new functionality do you require?

When I hunt I always try to repair after killing a round of creatures. What
I would like to see is a checkbox in Preferences to hide 'INFORMATION
You have no items which require repairs' Box. This would work exactly the
same as Hide Top Banner.

Please provide any additional information below.

This would just make it easier if playing from a net book/small screen as
you wouldn't have to scroll down every time.

Original issue reported on code.google.com by seerofni...@hotmail.co.uk on 31 Mar 2009 at 8:37

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Added: 
'<tr><td align="right">Hide No Items To Repair' + Helper.helpLink('Hide No 
Items To
Repair', 'Pretty simple ... it hides the Information box that says You have no 
items
which require repairs.') +
                ':</td><td><input name="hideNoItemsToRepair" type="checkbox" value="on"' +
(GM_getValue("hideNoItemsToRepair")?" checked":"") + '></td></tr>' +

to var configData in injectSettings below the hideBanner lines.

added hideRepairBox: function() {
        if (!GM_getValue("hideNoItemsToRepair")) return;
        var infoText =
System.findNode("//html/body/table/tbody/tr[3]/td[2]/table/tbody/tr[2]/td/font/c
enter");
        if (infoText && infoText.innerHTML == "You have no items which require repairs.")
        {

            var infoBox = System.findNode("//html/body/table/tbody/tr[3]/td[2]/table");
            var br1 = System.findNode("//html/body/table/tbody/tr[3]/td[2]/br");
            var br2 = System.findNode("//html/body/table/tbody/tr[3]/td[2]/br[2]");
            var br3 = System.findNode("//html/body/table/tbody/tr[3]/td[2]/br[3]");
            var br4 = System.findNode("//html/body/table/tbody/tr[3]/td[2]/br[4]");
            br1.style.display = "none";
            br2.style.display = "none";
            br3.style.display = "none";
            br4.style.display = "none";
            infoBox.style.display = "none";
        }
    },

to fslayout.js below the hideBanner function
Also added Layout.hideRepairBox(); in injectWorld(), can pretty much go 
anywhere near
the top.
Also added System.saveValueForm(oForm, "hideNoItemsToRepair"); 
to saveConfig()

Original comment by Brent.Me...@gmail.com on 27 Sep 2009 at 9:38

GoogleCodeExporter commented 9 years ago
closing multiple issues due to in-activity / not going to implement / no longer 
relevant / etc.

Original comment by Vong.H...@gmail.com on 10 Jan 2012 at 7:05