Ignore:
Timestamp:
01/08/14 10:37:24 (10 years ago)
Author:
jts21
Message:

Add tooltip template to settings, and make _tooltipItem a static variable of the Item class which is set to whichever tooltip needs to be displayed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/settings/UserSettings.java

    r655 r664  
    240240        };
    241241       
     242        private static final Text tooltipTemplate() {
     243                Text t = new Text("@StatsTemplate");
     244                t.setColor(Color.BLACK);
     245                t.setBackgroundColor(new Color(0.7F, 0.7F, 0.9F));
     246                // t.setFamily(Text.MONOSPACED_FONT);
     247                t.setSize(14);
     248                return t;
     249        }
     250        public static final GenericSetting<Text> TooltipTemplate = new GenericSetting<Text>(Text.class, "Template for tooltips", tooltipTemplate()) {
     251                @Override
     252                public boolean setSetting(Text text) {
     253                        _value = text.getTemplateForm();
     254                        return true;
     255                }
     256        };
     257       
    242258        /*
    243259         * Colorwheels
Note: See TracChangeset for help on using the changeset viewer.