-
Notifications
You must be signed in to change notification settings - Fork 151
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
add keybinding menu subcategories #966
Conversation
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.
Code review, no ingame test
Merge? |
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.
looks good
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.
Code looks good, just some style changes I can recommend.
|
||
class controls { | ||
class Background: RscText { | ||
colorBackground[] = {0.25,0.25,0.25,0.4}; |
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.
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.
This would have to be changed for the settings as well, for consistency. It's carbon coby atm.
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.
👍 Should change both then.
onButtonClick = QUOTE(_this call (uiNamespace getVariable 'FUNC(gui_editKey)')); | ||
style = ST_LEFT; | ||
colorBackground[] = {0,0,0,0}; | ||
colorBackgroundActive[] = {1,1,1,1}; |
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.
When hovered, the text can only be read because of the shadow. Remove the shadow, colorFocused[] = {0.5, 0.5, 0.5, 0.5};
, and have text color change to black on hover (like before and vanilla). AFAIK RscButton
has no property to do that, so would have to be done through EHs.
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.
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.
Yeah, that is what I was thinking.
|
||
private _edit = _subcontrol controlsGroupCtrl IDC_KEY_EDIT; | ||
_edit ctrlSetText _displayName; | ||
_edit ctrlSetTooltip _tooltip; |
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.
Like before and vanilla, have the tooltip be shown for both the name and the keys.
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.
ok
|
||
if (_isDuplicated) then { | ||
_ctrlKeyList lnbSetColor [[_index, 1], [1, 0, 0, 1]]; | ||
_edit ctrlSetTextColor [1,0,0,1]; |
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.
A lot of red on screen, like before, have only the keys turn to red when duplicate?
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.
Will go with whatever the base game does. Will check.
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.
Yep, Vanilla only highlights the keys.
lol, will still look at those suggestions |
Rip, review right as its merged. |
When merged this pull request will:
Test: