I have finally started to write the framework's documentation: class reference.
More than half of the classes are already documented, and all others should be as well in less than a week. I will also add images for the most visual classes.
I have been developing a GUI framework for World of Warcraft. It has been used on several of my addons and, as I've found it a robust concept, decided it was a good time to share it with the community.
Sushi-3.0
Sushi is a library that tries to follow a different approach from most of the current GUI frameworks. It tries to be:
Completely object oriented.
Versatile and easily extendable.
Similar to Blizzard's API and hence, easy to learn.
Wrapped in seaweed for extra flavor. Hey, taste matters!
Documentation can be found at this page. Here are some examples:
1) Simple drop down
local myDropdown = SushiDropdown()
myDropdown:SetPoint('CENTER')
myDropdown:SetLabel('My Awesome Dropdown')
myDropdown:AddLine('Salmon')
myDropdown:AddLine('Grouper')
myDropdown:AddLine('None')
myDropdown:SetCall('OnInput', function(self, v)
if v == 'None' then
print('Not hungry?')
else
print('You cannot have it.')
end
end)
2) Simple group (a container frame that holds other frames and layouts them in place) with two check buttons:
local myGroup = SushiGroup()
group:SetOrientation('HORIZONTAL')
group:SetResizing('VERTICAL') -- not necessary, vertical by default
group:SetChildren(function()
local firstCheck = group:Create('Check')
firstCheck:SetLabel('Banana')
local secondCheck = group:Create('Check')
secondCheck:SetLabel('Orange')
secondCheck:SetCall('OnClick', function()
Eat_Orange = not Eat_Orange
end)
end)
Feel free to post any questions, suggestions or dislikes you might have.
Now I'm parsing the received messages in AddMessages(), but don't care for the event anymore. Instead, I just check in which channel the message was posted (regular, guild, whisper, party) etc, thats sufficient for me, as I found out.
Yes, that would be one possibility. But string-comparing each new message against various patterns is not what I would call "efficient". I just thought that maybe there is some other (better) new method since the release of Cata, after the global "event" is gone.
Although I already searched lots of webpages, I have not found an answer to the following problem so far.
What I'm trying to do is to hook into AddMessage() and modify, e.g., all messages that are received from the guild channel, BattleNet friends, and via whispers.
Now the problem that I have is how to determine if the current AddMessage() call was fired due to, e.g., a MSG_CHAT_WHISPER event (which I want to modify) or due to, e.g., a MSG_CHAT_RAID (which I don't want to modify).
In previous WoW versions there was the global "event" variable that could be checked but that does not work anymore. And I have not found out how it is possible to determine the current event inside of my own hooked AddMessage() function.
I also thought about switching to use ChatFrame_AddMessageEventFilter instead of hooking AddMessage, but then I could only modify the textual part of the message, but not, e.g., anything about the author displayed. Or in shorter form: No, AddMessageEventFilter is no alternative for me.
Anyone knows how to determine the current event? Any help would be gladly appreciated!
0
What framework are you using?
0
Not possible to view in fullscreen.
EDIT: Forget, now I can.
0
What pic?
0
More than half of the classes are already documented, and all others should be as well in less than a week. I will also add images for the most visual classes.
0
Sushi-3.0
Sushi is a library that tries to follow a different approach from most of the current GUI frameworks. It tries to be:
Documentation can be found at this page. Here are some examples:
1) Simple drop down
2) Simple group (a container frame that holds other frames and layouts them in place) with two check buttons:
Feel free to post any questions, suggestions or dislikes you might have.
0
Download: http://www.wowinterface.com/downloads/info18306-BeneaUI1920x1080.html
0
I think they should be.
The next wowhead link will give all the perfect cut cata gems, should make it easier finding the item id's.
http://www.wowhead.com/items?filter=qu=2;na=perfect;cr=166;crs=4;crv=0
0
Thanks for the help! :-)
0
0
Although I already searched lots of webpages, I have not found an answer to the following problem so far.
What I'm trying to do is to hook into AddMessage() and modify, e.g., all messages that are received from the guild channel, BattleNet friends, and via whispers.
Now the problem that I have is how to determine if the current AddMessage() call was fired due to, e.g., a MSG_CHAT_WHISPER event (which I want to modify) or due to, e.g., a MSG_CHAT_RAID (which I don't want to modify).
In previous WoW versions there was the global "event" variable that could be checked but that does not work anymore. And I have not found out how it is possible to determine the current event inside of my own hooked AddMessage() function.
I also thought about switching to use ChatFrame_AddMessageEventFilter instead of hooking AddMessage, but then I could only modify the textual part of the message, but not, e.g., anything about the author displayed. Or in shorter form: No, AddMessageEventFilter is no alternative for me.
Anyone knows how to determine the current event? Any help would be gladly appreciated!
Thanks in advance,
Shardik
0
0
0
http://wow.curse.com/downloads/wow-addons/details/button-facade-trinity.aspx
this has had round highlight on round buttons since highlight were introtoduced... but now not work with masque!?
i tried renaitre but i guess its round buttons never worked with the highlight...
so is there any kind of support for round button highlight? or masque authors each have to do that themselves individually?
thanks
0
this should print in green? it just shows the code? thanks
0
but if he is just using it to save a string for comparison why use a table and a value in that table instead of just a string?
thanks