• 0

    posted a message on Sushi-3.0
    Quote from kurapica


    I see you put a lot in gui system.If you have interesting for the code in this pic, you can contact me.


    What framework are you using?
    Posted in: Libraries
  • 0

    posted a message on Sushi-3.0
    Quote from Phanx
    The one attached to his post. The link was invisible for some reason; I've fixed it now.


    Not possible to view in fullscreen.

    EDIT: Forget, now I can.
    Posted in: Libraries
  • 0

    posted a message on Sushi-3.0
    Quote from kurapica


    I see you put a lot in gui system.If you have interesting for the code in this pic, you can contact me.


    What pic?
    Posted in: Libraries
  • 0

    posted a message on Sushi-3.0
    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.
    Posted in: Libraries
  • 0

    posted a message on Sushi-3.0
    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.
    Posted in: Libraries
  • 0

    posted a message on UI Screenshots - Show us what you use!
    My UI layout has not changed in years. Colors/fonts have but essentially the same.

    Download: http://www.wowinterface.com/downloads/info18306-BeneaUI1920x1080.html

    Posted in: General Chat
  • 0

    posted a message on PeriodicTable-3.1
    Noticed it before, but the perfect cut gems from cata are not in the PTSet.Tradeskill.Crafted.Jewelcrafting
    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
    Posted in: Libraries
  • 0

    posted a message on Get event that fired AddMessage()
    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.

    Thanks for the help! :-)
    Posted in: Need Help?
  • 0

    posted a message on Get event that fired AddMessage()
    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.
    Posted in: Need Help?
  • 0

    posted a message on Get event that fired AddMessage()
    Hi there,

    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
    Posted in: Need Help?
  • 0

    posted a message on Grid — compact party/raid unit frames
    Phanx, is there a way to contact you somewhat privately? You turned off your PM's :)
    Posted in: Grid & Grid2
  • 0

    posted a message on ButtonFacade (was LibButtonSkin-1.0)
    or does anyone know of a round skin that currently works? thanks
    Posted in: General AddOns
  • 0

    posted a message on ButtonFacade (was LibButtonSkin-1.0)
    what about round button skins? the 'new' ability highlights do not seem to work with the new masqe version?

    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
    Posted in: General AddOns
  • 0

    posted a message on color codes?
    /script print("|cff00ff00green")

    this should print in green? it just shows the code? thanks
    Posted in: Lua Code Discussion
  • 0

    posted a message on what u.token?
    ok, thanks... i actually thought it was part of lua or wow lua because as you said its hard at first to see where its defined...

    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
    Posted in: Lua Code Discussion
  • To post a comment, please or register a new account.