Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upUi fixes #28884
Conversation
KorGgenT
added some commits
Mar 21, 2019
KorGgenT
added
Info / User Interface
[C++]
labels
Mar 21, 2019
AMurkin
reviewed
Mar 21, 2019
AMurkin
and others
added some commits
Mar 21, 2019
ZhilkinSerg
self-assigned this
Mar 21, 2019
This comment has been minimized.
This comment has been minimized.
I-am-Erk
added
the
<Bugfix>
label
Mar 21, 2019
This comment has been minimized.
This comment has been minimized.
|
so far i don't know what part of the code draws that cursor. i only hope i can find it soon. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
This pull request has been mentioned on Cataclysm: Dark Days Ahead. There might be relevant details there: https://discourse.cataclysmdda.org/t/yall-messed-up-the-interface/19310/8 |
KorGgenT
added some commits
Mar 24, 2019
This comment has been minimized.
This comment has been minimized.
|
@KorGgenT, let me first say I already love the new possibilities with the panel manager! Great work! I was appalled to see the ignorant reactions on reddit etc, so I thought you might want to hear that some of understand where this is going and appreciate your contribution. So I've tested this branch since I was really looking forward to commit f22d2ee, but noticed that it introduces a regression: whenever I perform and action, the "Look around" square is drawn for a short time around the absolute middle square (i.e. where the character would be without this commit). Looking at the code one wouldn't expect this, but I assume there are more places where the code makes assumptions about the "center" that isn't true any more. I wonder, is it intentional that the game view (i.e. the tiles) extends "under" the side bar? Perhaps you want to allow players to make minimal panels and thus see more? I was just thinking that if we limited the game view so it stopped where the side bar begins (when it is shown) then those assumptions about the "center" I talked about would become true again and you can stop playing whack-a-mole adding correcting offsets all over the code base like f22d2ee. Of course, I haven't looked into any of this in detail, so I might be completely off. |
This comment has been minimized.
This comment has been minimized.
KorGgenT
added some commits
Mar 25, 2019
This comment has been minimized.
This comment has been minimized.
|
This pull request has been mentioned on Cataclysm: Dark Days Ahead. There might be relevant details there: https://discourse.cataclysmdda.org/t/interface-issues/19394/2 |
This comment has been minimized.
This comment has been minimized.
This code draws this cursor: Cataclysm-DDA/src/cata_tiles.cpp Lines 1224 to 1229 in 2bf28ea And a bit of info:
received with this debug code: DebugLog( D_INFO, DC_ALL ) << "X:POS+OFF (" << g->u.posx() << ( g->u.view_offset.x > 0 ? "+" : "-" )
<< abs( g->u.view_offset.x ) << " = "
<< g->u.posx() + g->u.view_offset.x << ")"
<< ( g->u.posx() + g->u.view_offset.x != g->ter_view_x ? " != " : " == " )
<< "TERVIEW (" << g->ter_view_x << ")"
<< "; DELTA = " << g->u.posx() + g->u.view_offset.x - g->ter_view_x;Apparently value of delta (i.e. |
KorGgenT
added some commits
Mar 26, 2019
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
i was hoping the #if was going to do just that in sdltiles.cpp. you were having issues compiling it? i didn't particularly want to add the #if to every line in game.cpp those functions were defined; do you have any thoughts as to the correct way to get this to work with the header file? |
This comment has been minimized.
This comment has been minimized.
|
The issues come from game.cpp. |
This comment has been minimized.
This comment has been minimized.
|
then do i need to rename the header file? if it's not including even if i'm telling it to, no wonder i'm having problems |
This comment has been minimized.
This comment has been minimized.
|
You will have to put the prototypes and non tiles functions which return nothing somewhere else, where both console and tiles can find them (not too sure where best through). |
KorGgenT
added some commits
Mar 27, 2019
This comment has been minimized.
This comment has been minimized.
|
Honestly this can wait if it checks out otherwise, but I see bullet trails from NPCs shooting at things being drawn with an offset. Somewhere in animation.cpp perhaps. |
This comment has been minimized.
This comment has been minimized.
Probably the same issue that was affecting snow/rain animation? |
KorGgenT
added some commits
Mar 28, 2019
This comment has been minimized.
This comment has been minimized.
|
Bullet trails working, SCT messages still offset. |
This comment has been minimized.
This comment has been minimized.
|
Is it intentional that in compact view the minimap does not draw a border? It has one, but it looks like it's blanks. |
kevingranade
merged commit e908b0a
into
CleverRaven:master
Mar 29, 2019
This comment has been minimized.
This comment has been minimized.
|
The issue with the 'view' cursor being drawn when it shouldn't is still there, albeit difficult to reproduce. I made the view cursor appear next to my character by switching windows and coming back to CDDA. I may have clicked on the screen as well. It drew the cursor 1 tile to the left of my player character. |










KorGgenT commentedMar 21, 2019
•
edited
Summary
SUMMARY: Features "finish UI panel features and fix some visual problems"Purpose of change
the feature was incomplete. i wanted to fix the rest of them.
Closes #28813
Fixes #28890
Fixes #29059
Describe the solution