Exclusive SuperWeapon Sidebar
- It is possible to put sw cameos on the left of screen like C&C3 when
ExclusiveSuperWeaponSidebaris true. - In theory, it should be compatible with Ares
- Cameos arranged in a pyramid shape.
ExclusiveSWSidebar.Intervalspecific how many leptons between two columns.ExclusiveSuperWeaponSidebar.Maxcontrols the maximum number of icons on the leftmost side, which also depends on the current game resolution.ExclusiveSWSidebar.MaxColumncontrols that maximum count of columns.- You can also launch first 10 SW by hotkey.
In uimd.ini:
[Sidebar]
ExclusiveSWSidebar=false ; boolean
ExclusiveSWSidebar.Interval=0 ; integer
ExclusiveSWSidebar.Max=0 ; integer
ExclusiveSWSidebar.MaxColumn= ; integer
In rulesmd.ini
[SOMESIDE]
ExclusiveSWSidebar.TopPCX= ; filename - including the .pcx extension
ExclusiveSWSidebar.CenterPCX= ; filename - including the .pcx extension
ExclusiveSWSidebar.BottomPCX= ; filename - including the .pcx extension
ExclusiveSWSidebar.ToggleShape= ; filename - including the .shp extension
[SOMESW]
AllowInExclusiveSidebar=true ; boolean
ExclusiveSidebar.PriorityHouses= ; list of house types
ExclusiveSidebar.RequiredHouses= ; list of house types
Nightly build for this pull request:
- compiled-dll-591579305935fec89e479079f87131a86e213e6f.zip These artifacts will expire in 90 days and will not be available for download after that time.
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 ?
looks like nobody interested for this, so it won't change again until somebody notice it.
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
- Maybe you and @CrimRecya could cooperate and implement a unified way which includes best of both worlds? Your implementation looks better in terms of internal, but his is more feature-full.
- Is there a reason you don't inherit from ControlClass? Per @ZivDero ToggleClass has different functionality that is not useful to your implementation.
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.
看起来不错,但由于屏幕那一侧可以堆叠的大量软件可以添加一个按钮来显示/隐藏这个 SuperWeapon 侧边栏?
of course
looks like nobody interested for this, so it won't change again until somebody notice it.
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
- Maybe you and @CrimRecya could cooperate and implement a unified way which includes best of both worlds? Your implementation looks better in terms of internal, but his is more feature-full.
- Is there a reason you don't inherit from ControlClass? Per @ZivDero ToggleClass has different functionality that is not useful to your implementation.
There's no special reason, it's just because I don't know it well enough
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
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.
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 :(
Thank you very much for your creation and for putting in so much effort to improve this implement. Since I am currently unable to conduct direct testing, I plan to ask you a few questions based on my previous PR #1379 :
- Can the mouse operations on the background be blocked, not responded to by various other operations.
- Can the keys directly display on the cameo to replace "ready" text when the SW is ready.
- Is there an another button that can be clicked besides the shortcut key switch.
- Can the SW be released directly at the mouse position by pressing the shortcut key (may not need to be directly included in this feature, but is indeed related)
Praise You!
I see that you are also a Chinese contributor, so I directly write the original Chinese version for your understanding :
非常感谢你的创作,并花费如此精力改进这个功能。 由于我现在没有办法直接进行测试,所以我想基于 pr #1379 的已有功能,询问几个问题:
1、对于图标后的背景,鼠标在其之上进行的操作是否能够被屏蔽,也就是说不会被各种其他操作所响应。 2、在超级武器准备完毕的时候,也就是图标上会显示“就绪”文本的时候,能否将这个文本改成其快捷键的键位。 3、除了快捷键开关之外,是否能有一个可以点击的图标开关。 4、(可能并不需要直接包含在这个功能里,但确实相关的功能)能否通过直接按下快捷键,让超级武器直接在鼠标所在的位置释放
称赞.gif
Thank you very much for your creation and for putting in so much effort to improve this implement. Since I am currently unable to conduct direct testing, I plan to ask you a few questions based on my previous PR #1379 :
- Can the mouse operations on the background be blocked, not responded to by various other operations.
- Can the keys directly display on the cameo to replace "ready" text when the SW is ready.
- Is there an another button that can be clicked besides the shortcut key switch.
- Can the SW be released directly at the mouse position by pressing the shortcut key (may not need to be directly included in this feature, but is indeed related)
Praise You!
I see that you are also a Chinese contributor, so I directly write the original Chinese version for your understanding :
非常感谢你的创作,并花费如此精力改进这个功能。 由于我现在没有办法直接进行测试,所以我想基于 pr #1379 的已有功能,询问几个问题:
1、对于图标后的背景,鼠标在其之上进行的操作是否能够被屏蔽,也就是说不会被各种其他操作所响应。 2、在超级武器准备完毕的时候,也就是图标上会显示“就绪”文本的时候,能否将这个文本改成其快捷键的键位。 3、除了快捷键开关之外,是否能有一个可以点击的图标开关。 4、(可能并不需要直接包含在这个功能里,但确实相关的功能)能否通过直接按下快捷键,让超级武器直接在鼠标所在的位置释放
称赞.gif
Question 1: The background area outside the icon currently does not affect mouse movements, but I will work on resolving it immediately. Question 2: This should be achievable. Question 3: I will add a new button. Question 4: The shortcut key to release a super weapon is equivalent to clicking once. It will not be released directly at the mouse position, but only requires you to click the mouse once in place.
问题1:图标以外的背景区域目前尚且不能影响鼠标动作,但我会马上着手解决。 问题2:这应当是可以做到的。 问题3:我将会新增一个按钮。 问题4:释放超武的快捷键本就是等同于点击了一次的操作,它不会直接在鼠标位置释放但也只需要你原地点击一次鼠标即可。
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: Make the keys directly display on the cameo to replace "ready" text when the SW is ready. Add a button that can be clicked besides the shortcut key switch.
It's too hard for me to deal with S/L... Completely I didn'y know how to do it.
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.
TODO: Make the keys directly display on the cameo to replace "ready" text when the SW is ready. Add a button that can be clicked besides the shortcut key switch.
I will do that in next 2 days.
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.
But I still need to save/load the superIndex per buttons I think.
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.
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. Or I just didn't find it.
Thank you very much for your creation and for putting in so much effort to improve this implement. Since I am currently unable to conduct direct testing, I plan to ask you a few questions based on my previous PR #1379 :
- Can the mouse operations on the background be blocked, not responded to by various other operations.
- Can the keys directly display on the cameo to replace "ready" text when the SW is ready.
- Is there an another button that can be clicked besides the shortcut key switch.
- Can the SW be released directly at the mouse position by pressing the shortcut key (may not need to be directly included in this feature, but is indeed related)
Praise You!
I see that you are also a Chinese contributor, so I directly write the original Chinese version for your understanding :
非常感谢你的创作,并花费如此精力改进这个功能。 由于我现在没有办法直接进行测试,所以我想基于 pr #1379 的已有功能,询问几个问题:
1、对于图标后的背景,鼠标在其之上进行的操作是否能够被屏蔽,也就是说不会被各种其他操作所响应。 2、在超级武器准备完毕的时候,也就是图标上会显示“就绪”文本的时候,能否将这个文本改成其快捷键的键位。 3、除了快捷键开关之外,是否能有一个可以点击的图标开关。 4、(可能并不需要直接包含在这个功能里,但确实相关的功能)能否通过直接按下快捷键,让超级武器直接在鼠标所在的位置释放
称赞.gif
It should be finished now. 应该都完成了。
The AI_Super() does not exist in my local repository. And I cannot resolve conflict.
I don't have enough ability and information to complete this PR.
@NetsuNegi @CrimRecya can you provide the default sprites for the superweapon sidebar background and buttons?
@NetsuNegi @CrimRecya can you provide the default sprites for the superweapon sidebar background and buttons?
what's the 'sprites' ?
Unfortunately, I cannot fetch changes to my local repo :(
@NetsuNegi @CrimRecya can you provide the default sprites for the superweapon sidebar background and buttons?
what's the 'sprites' ?
Shapes. You should be able to zip them up and upload right here by dragging the archive into the message box.
@NetsuNegi @CrimRecya can you provide the default sprites for the superweapon sidebar background and buttons?
what's the 'sprites' ?
Shapes. You should be able to zip them up and upload right here by dragging the archive into the message box.
alright
@NetsuNegi @CrimRecya can you provide the default sprites for the superweapon sidebar background and buttons?
what's the 'sprites' ?
Shapes. You should be able to zip them up and upload right here by dragging the archive into the message box.
This is what I used in #1379 SWbackground.zip