Go to Page... |
Updated: | 12-04-16 12:41 PM |
Created: | 10-18-11 07:21 PM |
Downloads: | 10,414 |
Favorites: | 11 |
MD5: |
File Name |
Version |
Size |
Author |
Date |
1.14.4 |
57kB |
doxxx |
11-25-15 05:14 PM |
|
1.14.3 |
55kB |
doxxx |
05-23-15 07:22 AM |
|
1.14.2 |
57kB |
doxxx |
03-02-14 10:15 AM |
|
1.14.1 |
57kB |
doxxx |
04-28-13 11:44 AM |
|
1.14 |
57kB |
doxxx |
04-27-13 07:12 PM |
|
1.13.4 |
55kB |
doxxx |
03-10-13 04:30 PM |
|
1.13.3 |
55kB |
doxxx |
02-28-13 05:47 PM |
|
1.13.2 |
55kB |
doxxx |
02-12-13 06:39 PM |
|
1.13.1 |
55kB |
doxxx |
01-15-13 06:03 PM |
|
1.13 |
55kB |
doxxx |
01-12-13 12:04 AM |
|
1.12 |
50kB |
doxxx |
12-22-12 10:53 AM |
|
1.11.1 |
50kB |
doxxx |
12-18-12 06:07 PM |
|
1.11 |
50kB |
doxxx |
12-09-12 07:54 PM |
|
1.10 |
36kB |
doxxx |
05-03-12 06:42 PM |
|
1.9.5 |
29kB |
doxxx |
04-25-12 07:49 PM |
|
1.9.4 |
24kB |
doxxx |
04-21-12 08:43 AM |
|
1.9.3 |
23kB |
doxxx |
03-08-12 07:01 PM |
|
1.9.2 |
23kB |
doxxx |
03-07-12 07:17 PM |
|
1.9.1 |
23kB |
doxxx |
03-06-12 07:12 PM |
|
1.9.0 |
22kB |
doxxx |
03-04-12 09:44 AM |
|
1.8.3 |
22kB |
doxxx |
02-25-12 12:32 PM |
|
1.8.2 |
22kB |
doxxx |
01-29-12 01:17 PM |
|
1.8.1 |
22kB |
doxxx |
12-14-11 07:44 PM |
|
1.8 |
22kB |
doxxx |
12-11-11 01:30 PM |
|
1.7 |
17kB |
doxxx |
12-08-11 09:27 PM |
|
1.6.1 |
15kB |
doxxx |
12-06-11 05:32 PM |
|
1.6 |
15kB |
doxxx |
12-01-11 09:55 PM |
|
1.5.4 |
14kB |
doxxx |
11-30-11 07:04 PM |
|
1.5.3 |
14kB |
doxxx |
11-30-11 05:55 PM |
|
1.5.2 |
15kB |
doxxx |
11-19-11 05:51 PM |
|
1.5.1 |
20kB |
doxxx |
11-16-11 10:51 PM |
|
1.5 |
20kB |
doxxx |
11-11-11 04:57 PM |
|
1.4 |
19kB |
doxxx |
11-07-11 07:45 PM |
|
1.3.1 |
18kB |
doxxx |
11-05-11 08:13 AM |
|
1.3 |
18kB |
doxxx |
11-04-11 07:06 PM |
|
1.2 |
15kB |
doxxx |
10-25-11 06:10 PM |
|
1.1 |
6kB |
doxxx |
10-22-11 12:34 PM |
|
1.0 |
5kB |
doxxx |
10-18-11 07:21 PM |
Comment Options |
03-02-12, 03:27 PM | |
|
Because I have six groups of sliders and six radiogroups.
|
|
Kreiri |
View Public Profile |
Send a private message to Kreiri |
Find More Posts by Kreiri |
Add Kreiri to Your Buddy List |
doxxx |
View Public Profile |
Send a private message to doxxx |
Find More Posts by doxxx |
Add doxxx to Your Buddy List |
03-02-12, 04:21 PM | |
|
Sometimes I need to set the state of control without triggering change on data which it controls.
|
|
Kreiri |
View Public Profile |
Send a private message to Kreiri |
Find More Posts by Kreiri |
Add Kreiri to Your Buddy List |
03-02-12, 05:46 PM | ||
|
Quote:
I'm assuming you're not using my Layout function. Config panels are one of the intended uses of the Layout function, so if it's missing something to make it usable in that regard, I'd like to know. |
|
|
doxxx |
View Public Profile |
Send a private message to doxxx |
Find More Posts by doxxx |
Add doxxx to Your Buddy List |
03-04-12, 10:03 AM | |
|
I've just uploaded v1.9.0 which allows you to set a SimpleSlider to be editable by the user using a textfield (SetEditable) and adds an optional "silent" parameter to all the various Set* functions that prevents the function from triggering the corresponding change event if true is passed for the silent parameter. Existing code should continue to work as before without changes.
I also added an example for SimpleRadioButtonGroup to the API documentation. I'm considering making the silent mode for Set functions to be the way they always work, since that seems to be the way the Rift standard frames work. i.e. calling SetChecked on a RiftCheckbox does not trigger the CheckboxChange event. This would also solve some infinite recursion problems when a selection event handler updates the widget selection. Since this would be a backwards-incompatible change, I won't do it without ample warning to give you a chance to update your code to match. |
|
doxxx |
View Public Profile |
Send a private message to doxxx |
Find More Posts by doxxx |
Add doxxx to Your Buddy List |
03-06-12, 04:24 PM | |
|
Change to eventproxy?
Hi Doxxx,
I've just updated to the latest xBagSort, this updated libsimplewidgets to 1.9.0. In doing so it appears that it might have broken rift healer, (I'm guessing rift loads the newest library version, rather than lots of copies) It seems that a change in 1.9.0 to eventproxy.lua may have broken rift healer. Grabbing the 1.8.3 version of eventproxy.lua seems to have fixed the issue. It might be that RiftHealer is broken, but I'm not sure, hence not raising a bug. The stack trace was (hmm can't find an addon to copy error text, so screen grab manual typed): Error: LibSimpleWidgets/eventproxy.lua:15: Invalid event: RadioButtonChange In RiftHealer / rhrloadSettings, event Event.Addon.Startup.End stack traceback: [C]: in function 'error' LibSimpleWidgets/eventproxy.lua:15: in function '__index' LibSimpleWidgets/radiobuttongroup.lua:29: in function 'RadioButtonSelect' LibSimpleWidgets/radiobutton.lua:32: in function 'SetSelected' RiftHealer/config.lua:90: in function 'rhrCreateOptions' RiftHealer/main.lua:262: in function <RiftHealer/main.lua:227> The line from riftHealer is: rhr.OptionsRadioA[1]:SetSelected(true) About 2 lines later it then sets up an event handler (I guess it's trying to avoid getting an unwanted event by not having a handler) Thanks, Mere
Last edited by Mere : 03-06-12 at 04:25 PM.
|
|
Mere |
View Public Profile |
Send a private message to Mere |
Find More Posts by Mere |
Add Mere to Your Buddy List |
03-06-12, 06:48 PM | ||
|
Re: Change to eventproxy?
Quote:
|
|
|
doxxx |
View Public Profile |
Send a private message to doxxx |
Find More Posts by doxxx |
Add doxxx to Your Buddy List |
03-07-12, 07:09 AM | |
|
I've uploaded v1.9.1 which fixes the error with EventProxy. Sorry for the trouble, guys.
|
|
doxxx |
View Public Profile |
Send a private message to doxxx |
Find More Posts by doxxx |
Add doxxx to Your Buddy List |
03-07-12, 07:26 PM | |
|
I've uploaded v1.9.2 which fixes a problem with RadioButtonGroup when using SetSelectedIndex in silent mode.
|
|
doxxx |
View Public Profile |
Send a private message to doxxx |
Find More Posts by doxxx |
Add doxxx to Your Buddy List |
03-08-12, 02:35 AM | |
|
Slider's SetEnabled:
Code:
local function SetEnabled(self, enabled) self.enabled = enabled if enabled then self.current:SetFontColor(1, 1, 1, 1) else self.current:SetFontColor(0.5, 0.5, 0.5, 1) end if self.editor then self.editor:SetEnabled(enabled) -- this will throw an error end self.slider:SetEnabled(enabled) end I fixed for myself it by overriding slider's SetEnabled in my MakeSlider helper function: Code:
local function SetSliderEnabled(self, enabled) self.enabled = enabled if enabled then self.current:SetFontColor(1, 1, 1, 1) else self.current:SetFontColor(0.5, 0.5, 0.5, 1) end if self.editor then self.editor:SetVisible(enabled) end self.slider:SetEnabled(enabled) end MakeSlider = function ( -- skip -- skip slider.SetEnabled = SetSliderEnabled --skip end |
|
Kreiri |
View Public Profile |
Send a private message to Kreiri |
Find More Posts by Kreiri |
Add Kreiri to Your Buddy List |
03-08-12, 02:54 AM | |
|
Just FYI, for my convenience, I added the SetSelectionBackgroundColor method to SimpleList.
Allows me to configure the blue background color that is currently fixed when any item is selected in SimpleList. My code w/ the new method: http://pastebin.com/ngtBL2AY Also, bug report: There is a major problem with SimpleCheckbox's SetBackgroundColor method. It stack overflows and errors out. The problem is line 8 in checkbox.lua. Code:
self:SetBackgroundColor(r, g, b, a) Code:
self.check:SetBackgroundColor(r, g, b, a)
Last edited by TimeBomb : 03-08-12 at 04:08 AM.
|
|
TimeBomb |
View Public Profile |
Send a private message to TimeBomb |
Find More Posts by TimeBomb |
Add TimeBomb to Your Buddy List |
03-08-12, 07:18 AM | |
|
Thanks for the reports, I'll look at these this evening.
|
|
doxxx |
View Public Profile |
Send a private message to doxxx |
Find More Posts by doxxx |
Add doxxx to Your Buddy List |
03-08-12, 07:34 PM | |
|
I've uploaded v1.9.3 which should fix all the reported problems so far.
|
|
doxxx |
View Public Profile |
Send a private message to doxxx |
Find More Posts by doxxx |
Add doxxx to Your Buddy List |
03-17-12, 06:10 PM | |
|
FYI, although this wasn't a direct change to LibSimpleWidgets, I did have to do some thing with it to fix a bug in my addon's UI.
When I had a RiftTextfield on top of a SimpleWindow, and the user was focused on the RiftTextfield when using the close button on the SimpleWindow, it bugged out and the user was still focused on [and typing in] the RfitTextfield, and none of the keyboard keys worked unless you clicked outside of the now invisible SimpleWindow frame. This isn't really a specific problem with LibSimpleWidgets, but by modifying SimpleWindow's close functionality in my addon, I fixed it. I set my SimpleWindow frame's Close event to (replace myFrame with the SimpleWindow object, obviously): Code:
myFrame:SetKeyFocus(true) myFrame:SetKeyFocus(false) myFrame:SetVisible(false) |
|
TimeBomb |
View Public Profile |
Send a private message to TimeBomb |
Find More Posts by TimeBomb |
Add TimeBomb to Your Buddy List |
03-17-12, 07:20 PM | ||
|
Quote:
|
|
|
doxxx |
View Public Profile |
Send a private message to doxxx |
Find More Posts by doxxx |
Add doxxx to Your Buddy List |