BeetleCup

Member
BeetleCup submitted a new resource:

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

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
    View attachment 27764
  • When the dye tub is dyed the hue is appended to its properties
    View attachment 27763
  • Verified to work with Pub58-WIP

Note: Not drop in, requires editing 2 files.

View attachment 27760

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));
                        }

Read more about this resource...
 
Last edited:

Donations

Total amount
$30.00
Goal
$500.00

Shards

Back