Go to Page... |
Updated: | 12-04-16 12:41 PM |
Created: | 10-18-11 07:21 PM |
Downloads: | 12,237 |
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 |
Aieny |
View Public Profile |
Send a private message to Aieny |
Visit Aieny's homepage! |
Find More Posts by Aieny |
Add Aieny to Your Buddy List |
RagebeastRT |
View Public Profile |
Send a private message to RagebeastRT |
Visit RagebeastRT's homepage! |
Find More Posts by RagebeastRT |
Add RagebeastRT to Your Buddy List |
12-10-11, 11:01 PM | |
|
Any way to get the selected tab index number? I tried frame:GetActiveTab()
Nor did I see any events that I could set when clicking a tab. Guess really dont need an event if there is a way to grab the tab index. Edit: Ahh, had to do a frame:GetVisible() from the Added frame for a psuedo index
Last edited by RagebeastRT : 12-10-11 at 11:09 PM.
|
|
RagebeastRT |
View Public Profile |
Send a private message to RagebeastRT |
Visit RagebeastRT's homepage! |
Find More Posts by RagebeastRT |
Add RagebeastRT to Your Buddy List |
12-10-11, 11:46 PM | |
|
Could you add this to Tabs,
line 146 at the end of the function, add: if self.Event.TabSelect then self.Event.TabSelect(self, index) end and at the end of file before return widget add: Library.LibSimpleWidgets.EventProxy(widget, {"TabSelect"}) This allowed me to capture the tab pressed index so I could make an event. ps. or add whatever you think best as the whole scope of your library is way beyond me :P Also, hope you dont get too offended with me modifying the code but I was stuck with what I was trying to do and this fixed it for me.
Last edited by RagebeastRT : 12-11-11 at 12:38 AM.
|
|
RagebeastRT |
View Public Profile |
Send a private message to RagebeastRT |
Visit RagebeastRT's homepage! |
Find More Posts by RagebeastRT |
Add RagebeastRT to Your Buddy List |
12-11-11, 08:35 AM | |
|
Local modifications are fine just so long as you don't drastically alter existing behaviour, since the library is shared by all addons that embed it. I think Rift will make them use the newest version embedded by any plugin.
I'll add a TabSelect event and GetActiveTab function. |
|
doxxx |
View Public Profile |
Send a private message to doxxx |
Visit doxxx's homepage! |
Find More Posts by doxxx |
Add doxxx to Your Buddy List |
12-11-11, 01:34 PM | |
|
I've uploaded v1.8 which adds the GetActiveTab function and TabSelect event to SimpleTabView, and the SimpleRadioButton frame type and RadioButtonGroup function for creating groups of radio buttons.
|
|
doxxx |
View Public Profile |
Send a private message to doxxx |
Visit doxxx's homepage! |
Find More Posts by doxxx |
Add doxxx to Your Buddy List |
12-11-11, 10:49 PM | ||
|
Quote:
Thanks for the changes just the same! Now...if you want to see all your good work in action, download the mod and check out the options pages. |
|
|
RagebeastRT |
View Public Profile |
Send a private message to RagebeastRT |
Visit RagebeastRT's homepage! |
Find More Posts by RagebeastRT |
Add RagebeastRT to Your Buddy List |
12-12-11, 07:07 AM | ||
|
Quote:
I had a look at the screenshots, and the tabview looks weird... Are you giving a content frame to the tabview for each tab (i.e. AddTab("Abilities", abilitiesFrame))? Or are you switching the content frames yourself? I must update my screenshots... |
|
|
doxxx |
View Public Profile |
Send a private message to doxxx |
Visit doxxx's homepage! |
Find More Posts by doxxx |
Add doxxx to Your Buddy List |
12-14-11, 11:28 AM | |||
|
Quote:
Code:
rhr.WindowOptionsA = UI.CreateFrame("Frame", "OptionsWindowA", rhr.WindowOptions) rhr.WindowOptionsB = UI.CreateFrame("Frame", "OptionsWindowB", rhr.WindowOptions) rhr.WindowOptionsC = UI.CreateFrame("Frame", "OptionsWindowC", rhr.WindowOptions) rhr.WindowOptionsTab = UI.CreateFrame("SimpleTabView", "OptionsWindowFrame", rhr.WindowOptions) rhr.WindowOptionsTab:AddTab("Macros", rhr.WindowOptionsA) rhr.WindowOptionsTab:AddTab("UI Colors", rhr.WindowOptionsB) rhr.WindowOptionsTab:AddTab("UI Elements", rhr.WindowOptionsC) |
||
|
RagebeastRT |
View Public Profile |
Send a private message to RagebeastRT |
Visit RagebeastRT's homepage! |
Find More Posts by RagebeastRT |
Add RagebeastRT to Your Buddy List |
12-14-11, 11:39 AM | |
|
I am completely lost with the radio buttons. Not sure how to use the controller and group. Doesnt work like the Tabs. Could you post a simple example?
|
|
RagebeastRT |
View Public Profile |
Send a private message to RagebeastRT |
Visit RagebeastRT's homepage! |
Find More Posts by RagebeastRT |
Add RagebeastRT to Your Buddy List |
12-14-11, 12:24 PM | ||
|
Quote:
Last edited by doxxx : 12-14-11 at 12:33 PM.
|
|
|
doxxx |
View Public Profile |
Send a private message to doxxx |
Visit doxxx's homepage! |
Find More Posts by doxxx |
Add doxxx to Your Buddy List |
12-14-11, 12:32 PM | ||
|
Quote:
So you would do something like this: Code:
local radioButton1 = UI.CreateFrame("SimpleRadioButton", "MyAddon_RadioButton1", parentFrame) local radioButton2 = UI.CreateFrame("SimpleRadioButton", "MyAddon_RadioButton2", parentFrame) local radioButton3 = UI.CreateFrame("SimpleRadioButton", "MyAddon_RadioButton3", parentFrame) -- layout radioButton1/2/3 however you like, set their text, etc. local group1 = Library.LibSimpleWidgets.RadioButtonGroup("group1") group1.AddRadionButton(radioButton1) group1.AddRadionButton(radioButton2) group1.AddRadionButton(radioButton3) |
|
|
doxxx |
View Public Profile |
Send a private message to doxxx |
Visit doxxx's homepage! |
Find More Posts by doxxx |
Add doxxx to Your Buddy List |
12-14-11, 12:46 PM | |||
|
Quote:
Code:
for i = 1, 5 do rhr.OptionsRadioA[i] = UI.CreateFrame("SimpleRadioButton", "OptionsRadioButtonA", rhr.WindowOptionsC) end rhr.OptionsSetA = Library.LibSimpleWidgets.RadioButtonGroup("rhr.OptionsSetA") for i = 1, 5 do rhr.OptionsSetA:AddRadioButton(rhr.OptionsRadioA[i]) rhr.OptionsRadioA[i]:SetPoint("TOPLEFT", rhr.WindowOptionsC, "TOPLEFT", 20, 30 * i) rhr.OptionsRadioA[i]:SetText(rhr.OptionsText[i]) end
Last edited by RagebeastRT : 12-14-11 at 12:46 PM.
|
||
|
RagebeastRT |
View Public Profile |
Send a private message to RagebeastRT |
Visit RagebeastRT's homepage! |
Find More Posts by RagebeastRT |
Add RagebeastRT to Your Buddy List |
12-14-11, 12:50 PM | ||
|
Quote:
Code:
rhr.OptionsSetA = Library.LibSimpleWidgets.RadioButtonGroup("rhr.OptionsSetA") for i = 1, 5 do rhr.OptionsRadioA[i] = UI.CreateFrame("SimpleRadioButton", "OptionsRadioButtonA", rhr.WindowOptionsC) rhr.OptionsSetA:AddRadioButton(rhr.OptionsRadioA[i]) rhr.OptionsRadioA[i]:SetPoint("TOPLEFT", rhr.WindowOptionsC, "TOPLEFT", 20, 30 * i) rhr.OptionsRadioA[i]:SetText(rhr.OptionsText[i]) end |
|
|
doxxx |
View Public Profile |
Send a private message to doxxx |
Visit doxxx's homepage! |
Find More Posts by doxxx |
Add doxxx to Your Buddy List |
12-14-11, 01:12 PM | |
|
[/quote]
Yeah that little rectangle is supposed to encompass the content frame for each tab. Could you try parenting OptionsWindowA/B/C to WindowOptionsTab? And make sure that you layout WindowOptionsTab so that it fills the area in which you want to display the tab contents.[/quote] Ok, did that and made sure to set each of the tabs setpoints to the tab as well. The 1st tab display like I believe you have it set up for, the 2nd and 3rd tab still display the small rectangle. |
|
RagebeastRT |
View Public Profile |
Send a private message to RagebeastRT |
Visit RagebeastRT's homepage! |
Find More Posts by RagebeastRT |
Add RagebeastRT to Your Buddy List |