53 | | * Change the hud halo button icon depending on hud visibility: |
| 53 | |
| 54 | * '''The hud appears under the hud halo button it is connected to:''' |
| 55 | * Refactor {{{HudDialog.swingComponent}}}: |
| 56 | * In the {{{setup}}} method: |
| 57 | * Calculate the top left point of the hud - it should be exactly below the bottom left corner of the corresponding button. |
| 58 | * Call {{{res.setLocation}}}. |
| 59 | * Be sure to test the hud location when the zoom level is not 100%. |
| 60 | * Remove the method {{{HaloMenu.syncHud}}} and all calls to it. |
| 61 | |
| 62 | * '''The halo menu can have not more than one active hud:''' |
| 63 | * Create a property {{{RwProp<HudDialog> activeHudDialog}}} that represents currently open hud dialog. |
| 64 | * Its value is null, when no hud is open. |
| 65 | * Refactor the {{{HudDialog.shown}}} property: |
| 66 | * Make it an auto property. |
| 67 | * It should return true if (and only if) the hud dialog is set as current. |
| 68 | |
| 69 | * '''Change the hud halo button icon depending on hud visibility:''' |