Giter Club home page Giter Club logo

Comments (4)

Artur91425 avatar Artur91425 commented on August 25, 2024

And for quests :)

from pfquest.

Muehe avatar Muehe commented on August 25, 2024

I have a semi-complete solution for this by using the tooltips of the search results. It works for items and quests (adds additional values and formatting for quests too):

pfquest itemtooltip
pfquest questtooltip

Couldn't show IDs for spawns, because they are not in the DB file, but I added some other stuff:

pfquest spawntooltip

from pfquest.

Artur91425 avatar Artur91425 commented on August 25, 2024

The information in the tooltip looks very good, I like it. But I think that also need to add the ID to the browser. It will be more convenient and clearer. And if implement a two-way search, then it will be great :)

from pfquest.

Muehe avatar Muehe commented on August 25, 2024

How about this (also adds quest level colored according to difficulty):

screenshot_2017-11-28_20-26-04
screenshot_2017-11-28_20-40-08

diff --git a/pfBrowser.lua b/pfBrowser.lua
index 3fb247b..0e2bde4 100644
--- a/pfBrowser.lua
+++ b/pfBrowser.lua
@@ -708,7 +708,7 @@ function pfBrowser:SearchItem(search)
               ITEM_QUALITY_COLORS[itemQuality].g * 255,
               ITEM_QUALITY_COLORS[itemQuality].b * 255)
 
-          this.text:SetText(this.itemColor .."|Hitem:"..this.itemID..":0:0:0|h[".. this.itemName.."]|h|r")
+          this.text:SetText(this.itemColor .."|Hitem:"..this.itemID..":0:0:0|h[".. this.itemName.."]|h|r |cff9d9d9d("..this.itemID..")|r")
           this.text:SetWidth(this.text:GetStringWidth())
           this:SetScript("OnUpdate", nil)
         end
@@ -764,7 +764,7 @@ function pfBrowser:SearchQuest(search)
       end
 
       if quests[quest] then
-        button.text:SetText("|cffffcc00|Hquest:0:0:0:0|h[" .. questname .. "]|h|r")
+        button.text:SetText(pfDatabase:HexDifficultyColor(quests[quest]["lvl"]).."["..quests[quest]["lvl"].."]|r |cffffcc00|Hquest:0:0:0:0|h[" .. questname .. "]|h|r |cff9d9d9d("..quests[quest]["id"]..")|r")
       else
         button.text:SetText("|cffff5555[?] |cffffcc00|Hquest:0:0:0:0|h[" .. questname .. "]|h|r")
       end

As with the tooltips, the spawns lack the ID to show, and I haven't had time to set up all the stuff required for a full extract, so I can't do anything about that for now.

from pfquest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.