Open
Conversation
Dynamic position of boost icons
Member
|
@Amx545, man, this is awesome! @Hrusteckiy, look! |
Contributor
|
Finally someone did that! |
Added settings: Distance from indicators Vertical/horizontal alignment Inversion insert Maximum number of indicators in a row (column if vertical)
Xottab-DUTY
reviewed
Jun 16, 2024
src/xrGame/ui/UIBoostStatesWnd.cpp
Outdated
| Item->Show(false); | ||
| } | ||
| } | ||
| if(!influences.empty() || !m_ind_boost_pos.empty()) |
Member
There was a problem hiding this comment.
Make sure to put a space between an if and the parens.
Suggested change
| if(!influences.empty() || !m_ind_boost_pos.empty()) | |
| if (!influences.empty() || !m_ind_boost_pos.empty()) |
src/xrGame/ui/UIBoostStatesWnd.cpp
Outdated
| flags |= LA_ONLYALPHA; | ||
| flags |= LA_TEXTURECOLOR; | ||
|
|
||
| for (const auto& [type, Item] : m_ind_boost_state) |
Member
There was a problem hiding this comment.
Please, try to use other name. According to our code style, local variables should use camelCase (but snake_case is also allowed in some cases)
Some other local variables in your code also start with a capital letter, this needs to be fixed.
375gnu
reviewed
Jul 2, 2024
Co-authored-by: Hleb Valoshka <375gnu@gmail.com>
|
Any chance of this being merged? |
Member
Sure! |
e89fcc8 to
f6fd5cc
Compare
c3ffa4d to
09b0b99
Compare
e38d9d8 to
94d0261
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dynamic position of booster icons depending on the order in which boosters are used.
