-
-
Notifications
You must be signed in to change notification settings - Fork 111
Exclusive SuperWeapon Sidebar #1384
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
Exclusive SuperWeapon Sidebar #1384
Conversation
Nightly build for this pull request:
This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build. |
looks like nobody interested for this, so it won't change again until somebody notice it. |
Looks nice but due to the large list of SW that can stack in that side of the screen can be added a button for show/hide this SuperWeapon Sidebar ? |
That's not really true, we're just yet to give feedback, and the situation with you and @CrimRecya working on the same feature is a bit... odd
|
As useful as this may seem to some I still think both this and #1379 are infinitely less desirable than an additional sidebar tab for superweapons. I know there are some potential challenges in trying to implement that but maybe there's some sort of shortcut to 'fake it' rather than trying to plug it into the existing tab system e.g a button that changes the tab display to something that looks like it but isn't and only display's SW's. If I had more time and energy I would help you guys in the research but alas no can do. |
I think that a separate sidebar can also be an alternative option, doesn't have to choose either or. |
of course |
There's no special reason, it's just because I don't know it well enough |
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.
Overall, I am happy with this implementation. Looking at the new button, it looks well implemented to me. Kudos.
It's a shame we have to reimplement all this Ares crap, but eh, not much that can be done.
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.
If you wanna make it even better, maybe take out the static stuff outside of TacticalButtonClass, and into some new "SWSidebarClass". It's a bit weird to have it in the button itself, even if this is the only purpose of the button.
Just don't forget to resolve conflics and update docs.
Actually, I don't know how to handle conflicts outside of the browser |
You need to rebase your branch onto the latest develop. Then you'll get conflicts inside the files, and you can resolve them in VS/VS Code/other diff program. |
idk how to do it :( |
e4c0b68
to
54ec5e9
Compare
Thank you very much for your creation and for putting in so much effort to improve this implement.
Praise You! I see that you are also a Chinese contributor, so I directly write the original Chinese version for your understanding : 非常感谢你的创作,并花费如此精力改进这个功能。 1、对于图标后的背景,鼠标在其之上进行的操作是否能够被屏蔽,也就是说不会被各种其他操作所响应。 称赞.gif |
Question 1: The background area outside the icon currently does not affect mouse movements, but I will work on resolving it immediately. 问题1:图标以外的背景区域目前尚且不能影响鼠标动作,但我会马上着手解决。 |
A bit off-topic, but I appreciate you guys providing both English version of messages for understanding of others and Chinese to understand each other better, this is optimal for everyone participating 👍 |
TODO: |
It's too hard for me to deal with S/L... |
I don't think you ever need to save/load anything in the sidebar. The game just recreates the sidebar on each load, so you could do the same. |
I will do that in next 2 days. |
But I still need to save/load the superIndex per buttons I think. |
I don't think you need to. Just treat loading as you will treat starting a new game. I haven't looked in depth at how you implemented it, but what I would do is add the superweapon to the SuperWeapon Sidebar when the same superweapon is added to the main sidebar, so you will automatically keep them in sync. Keep in mind that I didn't check in depth how it works, so this is only in theory. |
It seems that the game did not re add cameos after reading the save file. |
It should be finished now. |
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.
LGTM. The main function is working well.
Availability of Toggle Super Weapon Sidebar in hotkeys shouldn't be controlled by the SuperWeaponSidebarKeysEnabled tag. It should just always be available when the exclusive SW sidebar is used, completely separate from the SW launch hotkeys. Anchoring of the tooltips on the left sidebar looks good to me now. |
SuperWeaponSidebar
is true. Cameos arranged in a pyramid shape. In theory, it should be compatible with Ares.SuperWeaponSidebar
为true时,可以把超级武器的图标排列在屏幕左侧了,就像命令与征服3中那样。图标按照金字塔形状排列。理论上它应该是兼容Ares的。SuperWeaponSidebar.Interval
controls the distance between two column cameos (excluding the background). When you need to make a background, the width of the background should be (SuperWeaponSidebar.Interval
+ cameo fixed width 60).SuperWeaponSidebar.Interval
控制两列图标之间的横向间距(图标背景不包含在内)。如果你需要制作图标的背景,那么背景的宽度应该是SuperWeaponSidebar.Interval
+ 图标的宽度(60像素)。SuperWeaponSidebar.LeftOffset
controls the distance between the left side of cameo and the left side of its column (background). This will not be greater thanSuperWeaponSidebar.Interval
.SuperWeaponSidebar.LeftOffset
控制图标距离背景左边缘的距离,这将不会超过SuperWeaponSidebar.Interval
的值。SuperWeaponSidebar.CameoHeight
controls the distance from the top of the previous cameo to the top of the next cameo. That is, the space between the upper and lower cameos is (SuperWeaponSidebar.CameoHeight
- cameo fixed height 48). This will not be less than 48. When you need to make a background, this is the height of the background.SuperWeaponSidebar.CameoHeight
控制图标顶部到下一个图标顶部的距离(也就是每两个背景之间的纵向间距),图标的顶部到其背景的上边缘的距离即为SuperWeaponSidebar.CameoHeight
- 图标高度(48)像素。如果你需要制作图标的背景,那么背景的高度应该是SuperWeaponSidebar.CameoHeight
的值。SuperWeaponSidebar.Max
controls the maximum number of cameos on the leftmost column, which also depends on the current game resolution.SuperWeaponSidebar.Max
控制最左侧一列最多能有多少个图标,这也会受到当前游戏分辨率的影响。SuperWeaponSidebar.MaxColumns
controls that maximum count of columns.SuperWeaponSidebar.MaxColumns
控制最多能显示多少列。SuperWeaponSidebar.Significance
not lower thanSuperWeaponSidebar.RequiredSignificance
are allowed to be added to the sw sidebar.SuperWeaponSidebar.Significance
值不低于SuperWeaponSidebar.RequiredSignificance
的超级武器才允许被加入超级武器侧边栏。SuperWeaponSidebarKeysEnabled
should be true that you can use hotkeys about superweapon sidebar.SuperWeaponSidebarKeysEnabled
设为true时你才可以使用超级武器侧边栏的热键。TXT_FIRE_TACTICAL_SW_XX
,TXT_FIRE_TACTICAL_SW_XX_DESC
,TXT_TOGGLE_SW_SIDEBAR
andTXT_TOGGLE_SW_SIDEBAR_DESC
into your.csf
file.csf
文件中添加对应的TXT_FIRE_TACTICAL_SW_XX
,TXT_FIRE_TACTICAL_SW_XX_DESC
,TXT_TOGGLE_SW_SIDEBAR
andTXT_TOGGLE_SW_SIDEBAR_DESC
条目。In
uimd.ini
:In
rulesmd.ini
In
ra2md.ini