Changes between Version 14 and Version 15 of HALOS_REDESIGN_R0
- Timestamp:
- 07/29/09 18:29:16 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HALOS_REDESIGN_R0
v14 v15 67 67 * Refactor {{{HudDialog.swingComponent}}}: 68 68 * In the {{{setup}}} method: 69 * Calculate the top left point of the hud - it should be exactly below the bottom left corner of the corresponding button . ///////////parent hud???69 * Calculate the top left point of the hud - it should be exactly below the bottom left corner of the corresponding button (get the button with the parent property). 70 70 * Call {{{res.setLocation}}}. 71 71 * Be sure to test the hud location when the zoom level is not equal to 100%. … … 77 77 * Refactor the {{{HudDialog.shown}}} property: 78 78 * Make it an auto property. 79 * It should return true if (and only if) the hud dialog is set as current. 80 * Instead of using {{{shown().set(true)}}}, set the desired hud as active. ///////subHud??? 79 * It should return true if (and only if) the hud dialog is set as current. ////// 80 * Instead of using {{{shown().set(true)}}}, set the desired hud as active. ///////subHud??? extensionHud? 81 81 * Instead of using {{{shown().set(false)}}}, set the {{{activeHud}}} to be null. ////////// 82 82 83 83 * '''Make extensible huds:''' 84 * Extensions should be defined as different huds, whose JPanels are attached to the parent hud. 85 * Make a property {{{RwProp<HudDialog> extensionHud}}} in {{{HudDialog}}}. 86 * ....visibility of extended hud? 84 * Extensions should be defined as different huds, whose {{{JPanel}}}s are attached to the parent hud. 85 * Make a property {{{@Own Prop<HudDialog> extensionHud}}} in {{{HudDialog}}}, analogical to {{{HudHaloButton.hud}}}. 86 * Make a value property {{{RwProp<Boolean> extensionVisible}}} in {{{HudDialog}}}. 87 * Add a resource property {{{extensionShowButton}}} that sets {{{extensionVisible}}} to be true. 88 * Add a resource property {{{extensionHideButton}}} that sets {{{extensionVisible}}} in the parent hud to be false. 89 * Add a resource property {{{extensionShowHidePanel}}}: 90 * If {{{extensionHud}}} is not null and {{{extensionVisible}}} is false, add the show button. 91 * If this hud is an extension hud and the parent's {{{extensionVisible}}} is true, add the hide button. 92 * In {{{HudDialog.swingComponent}}}, {{{setupElements}}}, add the {{{extensionShowHidePanel}}}. 87 93 88 94 * '''The size of the hud depends on the size of its subcomponents:''' … … 90 96 * In all huds remove the skin records with {{{HUD_SIZE_PROP_ID}}}. 91 97 * In {{{HudDialog.computeSize}}} use the sizes of all swing components of the items in the {{{elements}}} list: 92 * The height should be the sum of all heights, plus some margin for each item. 93 * The width should be the maximum width of all elements, plus some margin. 98 * The height should be the sum of all heights, plus the gap from the layout for each item ({{{FlowLayout.getVGap}}}), plus 2*BORDER_SIZE. 99 * Add the height of {{{extensionShowHidePanel}}} too. 100 * The width should be the maximum width of all elements, plus 2*{{{FlowLayout.getHGap}}}, plus 2*BORDER_SIZE. 94 101 95 102 * '''The subhud should align with the sub hud button:''' 96 * ....103 * After implementing previous bullets, huds are aligned with their parent element. That logic will be used here too. 97 104 98 105 * '''Change the hud halo button icon depending on hud visibility:''' … … 106 113 * Use the icons provided by Shift Global. 107 114 108 * Source code: ...109 * Tests: ...115 * Source code: [source:/branches/private/mitex/halos-redesign-r0/] 116 * Tests: [source:/branches/private/mitex/halos-redesign-r0/modules/org.sophie2.base.halos/src/test/java/org/sophie2/base/halos?order=date&desc=1] 110 117 111 118 = Implementation =