#4079 closed defect (fixed)
[PATCH] Show Upgrade in Structure Tree
Reported by: | fatherbushido | Owned by: | |
---|---|---|---|
Priority: | Should Have | Milestone: | Alpha 22 |
Component: | UI & Simulation | Keywords: | patch |
Cc: | s0600204 | Patch: |
Description (last modified by )
Since r18467, there is an Upgrade component. Currently it is used for the wall gate.
We can can remove the current gate in the structure tree and show the upgrade (i guess only for structure and not for units).
Attachments (3)
Change History (18)
comment:1 by , 8 years ago
comment:2 by , 8 years ago
Keywords: | patch rfc added |
---|---|
Milestone: | Backlog → Alpha 21 |
Summary: | Show Upgrade in Structure Tree → [PATCH] Show Upgrade in Structure Tree |
Patch displays the upgrade options of any structure (or wallset) that has them. (Works with fatherbushido's patch for #4125)
Patch also displays any units with upgrade options, alongside the trainer units down the right-hand side.
And I've disabled the cost component for Gates.
comment:3 by , 8 years ago
Just a quick remark, we let a cost component for Gates to prevent instantaneous repair.
comment:4 by , 8 years ago
Good point.
Does the repair need a resource and a time, or just a time? I ask because palisade gates are built/upgraded with wood, but have stone (and no wood) in their Cost.
by , 8 years ago
Attachment: | upgradeEntity_v1.1.patch added |
---|
Suppress the stone cost in Gate template. (*Seriously* the correct patch this time.)
comment:6 by , 8 years ago
Templates.js L308 and further for consistence it might be good to make upgrades an object instead of an array, have no strong opinion on it.
Draw.js L90 ++p instead of p++
Structree.js L229-241 why braces? L237 !newUpgrades[phase] instead of !(phase in newUpgrades) L285 gives folowing error:
ERROR: JavaScript error: gui/structree/structree.js line 285 ReferenceError: GetPhaseOfTemplate is not defined selectCiv@gui/structree/structree.js:285:9 __eventhandler38 (selectionchange)@civSelection selectionchange:0:1 init@gui/structree/structree.js:38:3 __eventhandler8 (press)@menuStrucTreeButton press:2:8 ERROR: GUI page 'page_structree.xml': Failed to call init() functionThe called function does not seem to exist, probably cause of #3393.
Didn't test due to error.
comment:7 by , 8 years ago
Milestone: | Alpha 21 → Alpha 22 |
---|
Moving to alpha 22 as long as #3993 is there as well.
comment:8 by , 8 years ago
Milestone: | Alpha 22 → Alpha 21 |
---|
Perhaps I find time to review it. The tower upgrade should be shown there.
comment:11 by , 8 years ago
s0600204: We can invest that one now. Does it need some rebasing/cleaning before?
by , 8 years ago
Attachment: | upgradeEntity_v2.patch added |
---|
Rebase after Tech Reqs work (#4263) was merged into main trunk
comment:12 by , 8 years ago
Description: | modified (diff) |
---|
Patch ported to Phabricator: D92 Please direct further feedback there.
comment:13 by , 8 years ago
Keywords: | rfc removed |
---|
comment:14 by , 7 years ago
Description: | modified (diff) |
---|---|
Milestone: | Work In Progress → Alpha 22 |
Resolution: | → fixed |
Status: | new → closed |
Committed in r19600
While at it, the resource costs for the gate should be removed as gates can't be placed directly.