… | |
… | |
17 | ) |
17 | ) |
18 | } |
18 | } |
19 | |
19 | |
20 | my $TOOLTIP_ALL = "\n\n<small>Left click - ready spell\nMiddle click - invoke spell\nRight click - further options</small>"; |
20 | my $TOOLTIP_ALL = "\n\n<small>Left click - ready spell\nMiddle click - invoke spell\nRight click - further options</small>"; |
21 | |
21 | |
22 | my @TOOLTIP_NAME = (align => -1, can_events => 1, can_hover => 1, tooltip => |
22 | my @TOOLTIP_NAME = (align => 0, can_events => 1, can_hover => 1, tooltip => |
23 | "<b>Name</b>. The name of the spell.$TOOLTIP_ALL"); |
23 | "<b>Name</b>. The name of the spell.$TOOLTIP_ALL"); |
24 | my @TOOLTIP_SKILL = (align => -1, can_events => 1, can_hover => 1, tooltip => |
24 | my @TOOLTIP_SKILL = (align => 0, can_events => 1, can_hover => 1, tooltip => |
25 | "<b>Skill</b>. The skill (or magic school) required to be able to attempt casting this spell.$TOOLTIP_ALL"); |
25 | "<b>Skill</b>. The skill (or magic school) required to be able to attempt casting this spell.$TOOLTIP_ALL"); |
26 | my @TOOLTIP_LVL = (align => 1, can_events => 1, can_hover => 1, tooltip => |
26 | my @TOOLTIP_LVL = (align => 1, can_events => 1, can_hover => 1, tooltip => |
27 | "<b>Level</b>. Minimum level the caster needs in the associated skill to be able to attempt casting this spell.$TOOLTIP_ALL"); |
27 | "<b>Level</b>. Minimum level the caster needs in the associated skill to be able to attempt casting this spell.$TOOLTIP_ALL"); |
28 | my @TOOLTIP_SP = (align => 1, can_events => 1, can_hover => 1, tooltip => |
28 | my @TOOLTIP_SP = (align => 1, can_events => 1, can_hover => 1, tooltip => |
29 | "<b>Spell points / Grace points</b>. Amount of spell or grace points used by each invocation.$TOOLTIP_ALL"); |
29 | "<b>Spell points / Grace points</b>. Amount of spell or grace points used by each invocation.$TOOLTIP_ALL"); |
… | |
… | |
91 | ; |
91 | ; |
92 | |
92 | |
93 | push @add, 1, $row, new DC::UI::Label |
93 | push @add, 1, $row, new DC::UI::Label |
94 | expand => 1, |
94 | expand => 1, |
95 | text => $spell->{name}, |
95 | text => $spell->{name}, |
|
|
96 | align => 0, |
96 | can_hover => 1, |
97 | can_hover => 1, |
97 | can_events => 1, |
98 | can_events => 1, |
98 | tooltip => $tooltip, |
99 | tooltip => $tooltip, |
99 | on_button_down => $spell_cb, |
100 | on_button_down => $spell_cb, |
100 | ; |
101 | ; |