Skip to content

Fix analyzer button in FF window - #3

Open
HansDeutscher wants to merge 1 commit into
thathankatw:masterfrom
HansDeutscher:bugfix/ff-button-position
Open

Fix analyzer button in FF window#3
HansDeutscher wants to merge 1 commit into
thathankatw:masterfrom
HansDeutscher:bugfix/ff-button-position

Conversation

@HansDeutscher

Copy link
Copy Markdown

Hello there!
The game recently made some minor changes to the FF window layout. This messed up the position of the analyzer button which will now hover over the number of defenders currently alive. This is slightly annoying so decided to reposition the button.
Instead of using the absolute position within the pane (tw2gui_window_content_pane), I believe it would be better to just insert the button into the grid of buttons (fort_battle_buttons) and align the CSS styles with the rest of other buttons.
While this works for most situations, in case you are also a general rank, you will see more buttons in the grid and the grid would overflow on the left side outside the background box which is visually unpleasant. Attempted to fix that too by shifting the entire grid slightly more to the right. I am not experienced with overriding CSS styles via Tampermonkey - what I found works is the old ugly !important way. If there's a better way to do this, let me know.
This is what the buttons look like now for captain ranks and below with my changes:
captain-rank
And this is what the buttons look like now with all possible buttons available at the same time:
all-buttons
Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant