![]() ![]() The part you probably care about because there must be something trying to get the colorĮxternal code can use ColorWheel's Color attribute to get (and set!) the color wheel’s selected color. The update function calculates the relative mouse position inside the frame based on the InputObject's Position and Button's AbsolutePosition and AbsoluteSize. This allows the user to click either the square or the hue wheel and drag anywhere, even outside the color wheel, potentially improving the user experience. The initial click determines which part of the color wheel should change whenever the mouse moves. Whenever the user clicks the color wheel, WheelMain starts handling mouse movement. ![]() Button is an ImageButton with the second image and a dynamic ImageColor3.H and SV are Frames indicating the current selection.WheelMain handles mouse input and ColorWheel's Color attribute ( ColorWheel:GetAttribute("Color") and ColorWheel:SetAttribute("Color", Color3.new(1, 1, 1))).The attached place file is just an example. It can be anywhere, with any size (for obvious reasons, it should be a square), and any AnchorPoint. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |