-
-
Notifications
You must be signed in to change notification settings - Fork 462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic boost indicators #1692
base: dev
Are you sure you want to change the base?
Dynamic boost indicators #1692
Conversation
Dynamic position of boost icons
@Amx545, man, this is awesome! @Hrusteckiy, look! |
Finally someone did that! |
Added settings: Distance from indicators Vertical/horizontal alignment Inversion insert Maximum number of indicators in a row (column if vertical)
src/xrGame/ui/UIBoostStatesWnd.cpp
Outdated
Item->Show(false); | ||
} | ||
} | ||
if(!influences.empty() || !m_ind_boost_pos.empty()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure to put a space between an if
and the parens.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Co-authored-by: Hleb Valoshka <[email protected]>
Any chance of this being merged? |
Sure! |
e89fcc8
to
f6fd5cc
Compare
Dynamic position of booster icons depending on the order in which boosters are used.