Quantcast
Channel: Descent: Journeys in the Dark (Second Edition) | General | BoardGameGeek
Viewing all articles
Browse latest Browse all 3507

Thread: Descent: Journeys in the Dark (Second Edition):: General:: D2e Card Viewer - Major Update (4.0.1)

$
0
0

by any2cards

I have uploaded a new, major update to the D2e Card Viewer for Chrome users (Firefox users, see comments at the end of this post). This new update is pending review at this time. Since we are utilizing additional sophisticated coding techniques/calls that require additional permissions, the approval process for the Chrome extension can take awhile. I will modify this post once approval has been given. Note that your current version (3.1.0) of the Chrome extension should auto update to the new version (4.0.1).

For this new version, I worked with an individual who assisted me in completely re-writing major portions of the code to facilitate the implementation of new features, and the modification of existing features to make them function faster and better than before. The tooltip (the actual object that displays the assets that are underlined) has been completely rewritten, and now dynamically determines where to display the cards based upon how many cards are added to the tooltip, as well as where the underlined text is within the web page.

The dynamic aspects of this new code allows us to automatically calculate the size of the tooltip we need (both in height, width, and the number of cards to be displayed), and where we need it displayed, so that it is entirely on the screen. For example, if there is an underlined key asset near the bottom the screen, the card(s) may initially attempt to display partially off of the bottom of the screen, but will now automatically be moved up to a necessary height to properly display the entire card(s). Similarly, if the underlined key asset is near the right side of the screen, the card(s) may initially attempt to display partially off of the right side of the screen, but will now automatically be moved to the left as necessary to properly display the entire card(s). In addition, this new dynamic feature of the tooltip should eliminate the screen jumping bug issues we have seen in the past when key asset names were near the bottom of the page.

What's even better, however, is some new features that have been implemented for the D2e Card Viewer. When you add this extension to the Chrome browser, if you left click on the corresponding icon that is added to the extension bar:
, you will be presented with a expandable/collapsible menu. You can use this to select any expansions / assets for which you want the D2e Card Viewer to work. By default, it will work for everything. This allows you, the user, to control what game assets are underlined. These selections will be stored within Chrome's storage so that the next time you run the browser, it will maintain your previous settings.

The menu looks like this:



So as you can see, it provides you a huge amount of flexibility and control as to what you see underlined. This new version has undergone extensive testing by myself, running the code in a local mode. As I am only human, I could have assumed things, or missed things, that others will discover. Please let me know, once you are able to utilize the new version, if you run into any issues. Thank you.

*** Firefox Users ***: Unfortunately, Firefox does not currently support many of the program calls made within this new version of the code. As such, at this time, I cannot provide Firefox users with the same functionality. Investigations have begun to determine if similar functionality can be achieved with different code, but to be honest, I would hate to have to maintain two code sets. For now, the existing 3.1.0 code will continue to be supported for Firefox users.

Viewing all articles
Browse latest Browse all 3507

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>