Customizable Rune Book and Spell Book Dye Tubs - 16 Preset colors

Customizable Rune Book and Spell Book Dye Tubs - 16 Preset colors 1.0

Author
BeetleCup
Downloads
1
Views
71
First release
Last update

Ratings

0.00 star(s) 0 ratings
No permission to download Join the discussion
Allows the player to dye rune books and spell books and easily chose from palette of favorite hues. Defaults to16-predefined customizable hue.

Features:
  • 16 vibrant hues pre-selected.
  • Allows clearing hue from book, sets hue to 0
  • Rune book dye tub default hue list includes 1121 for Runic Atlas/Rune Book brown
  • Spell book dye tub default hue list includes 2210 for Spellweaving book's default green color
  • Admin context menu interface to directly set hue without using dyes.
  • Restore default hue list with the click of a button
  • Buttons display all 32 colors for each hue. It ramps from 0 to 31 then from 31 back to 0. This gives a reasonable representation of how the hue will look on a dyed item.
  • Tooltip displays the hue of each of the buttons
    1780904068271.png
  • When the dye tub is dyed the hue is appended to its properties
    1780903979434.png
  • Verified to work with Pub58-WIP

Note: Not a drop in script, requires minor edits of 2 files.

1780902402435.png


Installation:
  1. Copy RunebookCustomDyeTub.cs and SpellbookCustomDyeTub.cs wherever you keep customized scripts.
  2. Append the following to ItemInterfaces.cs in Scripts/Items/Internal
    C#:
    Expand Collapse Copy
        public interface IDyesTargetHandler    {
            void OnDyesUsed(Mobile from, DyeTub tub);
        }
  3. Edit Dyes.cs in Scripts/Items/Tools/DyeTubs. Insert the new IDyesTargetHandler, as shown below:
    Code:
    Expand Collapse Copy
                        if (tub.Redyable)
                        {
                            if (tub is IDyesTargetHandler handler)
                                handler.OnDyesUsed(from, tub);
                            else if (tub.CustomHuePicker == null)
                                from.SendHuePicker(new InternalPicker(tub));
                            else
                                from.SendGump(new CustomHuePickerGump(from, tub.CustomHuePicker, SetTubHue, tub));
                        }

Donations

Total amount
$30.00
Goal
$500.00

Shards

Back