Ticket #2389 (closed tweak: obsolete)
hud-tweaks
Reported by: | deyan | Owned by: | stefan |
---|---|---|---|
Priority: | major | Milestone: | X3 |
Component: | uncategorized | Version: | 2.0 |
Keywords: | Cc: | ||
Category: | unknown | Effort: | |
Importance: | Ticket_group: | ||
Estimated Number of Hours: | 0 | Add Hours to Ticket: | 0 |
Billable?: | yes | Total Hours: | 0 |
Analysis_owners: | deyan | Design_owners: | stefan |
Imp._owners: | Test_owners: | ||
Analysis_reviewers: | stefan | Changelog: | Changelog |
Design_reviewers: | kyli | Imp._reviewers: | meddle, todor |
Test_reviewers: | Analysis_score: | 3 | |
Design_score: | 3.5 | Imp._score: | 3.5 |
Test_score: | 0 |
Description (last modified by deyan) (diff)
- Color subhuds appear where they should (vertical), but other subhuds appear at top (aligned with the main HUD). Make them appear aligned with the part of the HUD that is associated with it
- Gradient subhud does not have title
- Color subhud of the gradient HUD does not have close button
- Chaining HUD does not have title and close button
- Media HUD appears behind page resize halo
- Embedded book HUD should have „Embedded book“ title
- Embedded book HUD appears behind page resize halo
Attachments
Change History
comment:1 Changed 15 years ago by deyan
- Status changed from new to s1a_analysis_started
- Description modified (diff)
- Analysis_score set to 0
- Test_score set to 0
- Design_score set to 0
- Owner set to deyan
- Imp._score set to 0
comment:2 Changed 15 years ago by deyan
- Status changed from s1a_analysis_started to s1b_analysis_finished
comment:3 Changed 15 years ago by stefan
- Design_owners set to stefan
- Status changed from s1b_analysis_finished to s1c_analysis_ok
- Analysis_reviewers set to stefan
Analysis seems to be ok.
comment:4 Changed 15 years ago by stefan
- Owner changed from deyan to stefan
- Status changed from s1c_analysis_ok to s2a_design_started
comment:5 Changed 15 years ago by stefan
- Status changed from s2a_design_started to s2b_design_finished
Design (following the analysis):
- Color subhuds appear where they should - the problem is in huds which have parents (hud's buttons) in HudTitleBar - the coordinates of the parent in its parent (hud's grandparent) are (0,0). Thats why the huds are on the top. The solution is in the HudDialog class, in the computeLocation() method (check if the grand parent of the hud is HudTitleBar - if so, take his coordinates):
... JComponent parentComponent = ((SwingVisualElement) parent().get()).swingComponent() .get(); if (parent().get().parent().get() != null && parent().get().parent().get() instanceof HudTitleBar) { parentComponent = ((SwingVisualElement) parent().get().parent().get()).swingComponent().get(); } ...
- Gradient subhud does not have title - title is added
- Color subhud of the gradient HUD does not have close button - I couldn't solve this problem - for unknown (to me) reason, close button doesn't appear on the hud, although on every other place that the same hud is used, it does appear... Even when I hard-code change the visible() property in the close field, it does not have effect.
- Chaining HUD does not have title and close button - tittle and close button are added.
- Media HUD appears behind page resize halo - this is solved via reordering of the sort keys (the hud was also appearing underneath frameZOrderButton's, so that problem is also fixed.
- Embedded book HUD should have „Embedded book“ title - it is fixed.
- Embedded book HUD appears behind page resize halo - same as the media hud.
A patch for the task is uploaded.
comment:6 Changed 15 years ago by kyli
- Status changed from s2b_design_finished to s2c_design_ok
- Design_score changed from 0 to 3.5
- Design_reviewers set to kyli
The design seems OK, just:
- Instead of "parent().get().parent().get() != null && parent().get().parent().get() instanceof HudTitleBar", use "findParentElement(HudTitleBar.class) != null".
- By the way, "null instanceof HudTitleBar" will return false, so the null check in your code is not necessary. However, the solution from the previous point is better :)
- I don't think the problem with the "close" button is unsolvable, but I couldn't find a solution for it. Sorry for that.
3.5p
P.S. Please, add analysis score to this task.
comment:7 Changed 15 years ago by stefan
- Status changed from s2c_design_ok to s3a_implementation_started
- Analysis_score changed from 0 to 3
comment:8 Changed 15 years ago by stefan
- Status changed from s3a_implementation_started to s3b_implementation_finished
implementation score attached as patch.
comment:9 Changed 15 years ago by meddle
- Status changed from s3b_implementation_finished to s3c_implementation_ok
- Imp._score changed from 0 to 3.5
- Imp._reviewers set to meddle, todor
Merged into the trunk at [8961].
- The tool-tip for the embedded books hud was wrong, but that was the case in the trunk.
- The gradient's sub color picker still have no close button.
- Don't leave commented code that will be never used.
3.5p
comment:10 Changed 13 years ago by meddle
- Status changed from s3c_implementation_ok to closed
- Resolution set to obsolete
Closing all the tickets before M Y1
Note: See
TracTickets for help on using
tickets.